summaryrefslogtreecommitdiffstats
path: root/src/plugins/unittest/gso_test.c
diff options
context:
space:
mode:
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;