gso: Fix the l3 packet gso segment size
Type: fix Ticket: VPP-1721 Change-Id: I7a5d4f1440048ddc9f599ac11d06e5a7df20440e Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:

committed by
Andrew Yourtchenko

parent
fcdade1f87
commit
0f09a47f10
@ -173,6 +173,11 @@ M: Florin Coras <fcoras@cisco.com>
|
||||
F: src/vnet/lisp-cp/
|
||||
F: src/vnet/lisp-gpe/
|
||||
|
||||
VNET GSO
|
||||
I: gso
|
||||
M: Andrew Yourtchenko <ayourtch@gmail.com>
|
||||
F: src/vnet/interface_output.c
|
||||
|
||||
Plugin - MAP
|
||||
I: map
|
||||
Y: src/plugins/map/FEATURE.yaml
|
||||
|
@ -427,7 +427,10 @@ STATIC_ASSERT (sizeof (vnet_buffer_opaque2_t) <=
|
||||
STRUCT_SIZE_OF (vlib_buffer_t, opaque2),
|
||||
"VNET buffer opaque2 meta-data too large for vlib_buffer");
|
||||
|
||||
#define gso_mtu_sz(b) (vnet_buffer2(b)->gso_size + vnet_buffer2(b)->gso_l4_hdr_sz + vnet_buffer(b)->l4_hdr_offset)
|
||||
#define gso_mtu_sz(b) (vnet_buffer2(b)->gso_size + \
|
||||
vnet_buffer2(b)->gso_l4_hdr_sz + \
|
||||
vnet_buffer(b)->l4_hdr_offset - \
|
||||
vnet_buffer (b)->l3_hdr_offset)
|
||||
|
||||
|
||||
format_function_t format_vnet_buffer;
|
||||
|
Reference in New Issue
Block a user