diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2019-07-12 13:18:16 +0200 |
---|---|---|
committer | Mohsin Kazmi <sykazmi@cisco.com> | 2019-07-22 13:10:33 +0000 |
commit | 4df8ab00dbcaf95f2f1a826ba4420087fb3f9be4 (patch) | |
tree | d5efba3f9586b48ca2a8a1a9fddd6c2e15297525 /src/vnet/buffer.h | |
parent | e3613e4d655928358f9d3b6d32934621b3fa5ecd (diff) |
gso: Fix the l3 packet gso segment size
Type: fix
Ticket: VPP-1721
Change-Id: I7a5d4f1440048ddc9f599ac11d06e5a7df20440e
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
(cherry picked from commit 0f09a47f10e29cabeb98f571e5c4f0c18a54564d)
Diffstat (limited to 'src/vnet/buffer.h')
-rw-r--r-- | src/vnet/buffer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/buffer.h b/src/vnet/buffer.h index 2144ed3a9df..2f643b78d7e 100644 --- a/src/vnet/buffer.h +++ b/src/vnet/buffer.h @@ -435,7 +435,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; |