summaryrefslogtreecommitdiffstats
path: root/src/plugins/unittest/gso_test.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2021-10-21 20:20:24 +0000
committerBeno�t Ganne <bganne@cisco.com>2021-11-22 10:26:14 +0000
commitd431d7404d0bf8568e86f145288ed5d76ce40530 (patch)
treef1864246d94df5e310f8d69df63eea7eb61d8530 /src/plugins/unittest/gso_test.c
parentbd46907b3f27b480e5f8b0be9cb4c5b5f1fa08ab (diff)
gso: implement gso segementation copy with checksum
Type: improvement Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: Iec9dacde170533ca16e8117787e62da8af69ae96
Diffstat (limited to 'src/plugins/unittest/gso_test.c')
-rw-r--r--src/plugins/unittest/gso_test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/unittest/gso_test.c b/src/plugins/unittest/gso_test.c
index c7b047f7bff..54eb7422c87 100644
--- a/src/plugins/unittest/gso_test.c
+++ b/src/plugins/unittest/gso_test.c
@@ -170,14 +170,12 @@ gso_segment_buffer_test (vlib_main_t *vm, u32 bi,
{
vlib_buffer_t *b = vlib_get_buffer (vm, bi);
generic_header_offset_t gho = { 0 };
- u32 n_bytes_b = vlib_buffer_length_in_chain (vm, b);
u32 n_tx_bytes = 0;
if (PREDICT_TRUE (b->flags & VNET_BUFFER_F_GSO))
{
vnet_generic_header_offset_parser (b, &gho, is_l2, !is_ip6, is_ip6);
- n_tx_bytes =
- gso_segment_buffer (vm, ptd, bi, b, &gho, n_bytes_b, is_l2, is_ip6);
+ n_tx_bytes = gso_segment_buffer_inline (vm, ptd, b, &gho, is_l2, is_ip6);
}
return n_tx_bytes;