diff options
author | Neale Ranns <nranns@cisco.com> | 2018-02-27 03:45:38 -0800 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-03-16 20:28:50 +0000 |
commit | 039cbfe254be998f7311bc4638bb262b44efac19 (patch) | |
tree | cc75e6130f3fdbdd1dbfe48669e6c17534240e11 /src/vnet/buffer.c | |
parent | 0d65d11053395bde7bd8c36439e9025e50ea8028 (diff) |
QoS recording and marking
Change-Id: Ie5a50def4ec1e4a3b3404a8b6ab9ec248bc16744
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/buffer.c')
-rw-r--r-- | src/vnet/buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/buffer.c b/src/vnet/buffer.c index f12adf7eb64..f793fb4fc03 100644 --- a/src/vnet/buffer.c +++ b/src/vnet/buffer.c @@ -38,6 +38,10 @@ format_vnet_buffer (u8 * s, va_list * args) if (b->flags & VNET_BUFFER_F_L4_HDR_OFFSET_VALID) a = format (a, "l4-hdr-offset %d ", vnet_buffer (b)->l4_hdr_offset); + if (b->flags & VNET_BUFFER_F_QOS_DATA_VALID) + a = format (a, "qos %d.%d ", + vnet_buffer2 (b)->qos.bits, vnet_buffer2 (b)->qos.source); + s = format (s, "%U", format_vlib_buffer, b); if (a) s = format (s, "\n%U%v", format_white_space, indent, a); |