aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/buffer.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2021-06-17 14:33:03 +0200
committerDamjan Marion <dmarion@me.com>2021-07-16 12:02:53 +0000
commit537e955545c54820e9a6a54225bfb280f7cd7763 (patch)
treea0e421b92d1b9357e8a1b2e9b6010ec9b2ef14f2 /src/vnet/buffer.c
parent9a554eea0e5b3e2b36c30ce2725f364380bdd55c (diff)
vlib: add tunnel offload flags for vlib_buffer_t
Type: improvement Change-Id: Iaad50b2044702c46eff287708dfcb24e61022104 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/buffer.c')
-rw-r--r--src/vnet/buffer.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/vnet/buffer.c b/src/vnet/buffer.c
index 545018a79e9..ef93185b2c1 100644
--- a/src/vnet/buffer.c
+++ b/src/vnet/buffer.c
@@ -26,6 +26,14 @@ format_vnet_buffer_offload (u8 *s, va_list *args)
s = format (s, "%s ", ss);
foreach_vnet_buffer_offload_flag
#undef _
+
+ if (vnet_buffer (b)->oflags & VNET_BUFFER_OFFLOAD_F_TNL_MASK)
+ {
+ s = format (s, "outer-l3-hdr-offset %d ",
+ vnet_buffer2 (b)->outer_l3_hdr_offset);
+ s = format (s, "outer-l4-hdr-offset %d ",
+ vnet_buffer2 (b)->outer_l4_hdr_offset);
+ }
return s;
}
@@ -54,7 +62,8 @@ format_vnet_buffer (u8 * s, va_list * args)
a = format (a, "l4-hdr-offset %d ", vnet_buffer (b)->l4_hdr_offset);
if (b->flags & VNET_BUFFER_F_GSO)
- a = format (a, "gso gso-size %d", vnet_buffer2 (b)->gso_size);
+ a = format (a, "gso l4-hdr-len %d gso-size %d",
+ vnet_buffer2 (b)->gso_l4_hdr_sz, vnet_buffer2 (b)->gso_size);
if (b->flags & VNET_BUFFER_F_QOS_DATA_VALID)
a = format (a, "qos %d.%d ",