gso: fix the number of buffers required for segmentation
Ticket: VPPSUPP-51 Type: fix Change-Id: I34d4237eb0644705ce0f523fdd0d6b70308e8bcd Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:
parent
775d5b1e22
commit
a82f590c03
@ -237,7 +237,8 @@ tso_alloc_tx_bufs (vlib_main_t * vm,
|
||||
u16 gso_size)
|
||||
{
|
||||
u16 size =
|
||||
clib_min (gso_size, vlib_buffer_get_default_data_size (vm) - l234_sz);
|
||||
clib_min (gso_size, vlib_buffer_get_default_data_size (vm) - l234_sz
|
||||
- b0->current_data);
|
||||
|
||||
/* rounded-up division */
|
||||
u16 n_bufs = (n_bytes_b0 - l234_sz + (size - 1)) / size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user