diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2021-05-05 16:25:39 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-05-10 09:08:12 +0000 |
commit | 9314ed82155637d39e50a68c3119cd09dce8b0c3 (patch) | |
tree | ff4d1f3ed58891f6e351ae7d6e411e47764c24b4 | |
parent | 9f42fff3efef2aa715c3d8a070f3ddc9106adfc8 (diff) |
gso: fix the gro coalesced chain len
Type: fix
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: I86b940384a6898d4cb04f3decf30996c94b43d07
-rw-r--r-- | src/vnet/gso/gro_func.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/gso/gro_func.h b/src/vnet/gso/gro_func.h index 239009d680b..af1e1a9264b 100644 --- a/src/vnet/gso/gro_func.h +++ b/src/vnet/gso/gro_func.h @@ -514,7 +514,8 @@ vnet_gro_flow_table_inline (vlib_main_t * vm, gro_flow_table_t * flow_table, if (PREDICT_TRUE (action == GRO_PACKET_ACTION_ENQUEUE)) { - if (PREDICT_TRUE ((pkt_len_s + payload_len0) < TCP_MAX_GSO_SZ)) + if (PREDICT_TRUE (((pkt_len_s + payload_len0) < TCP_MAX_GSO_SZ) && + gro_flow->n_buffers < GRO_FLOW_N_BUFFERS)) { flow_table->total_vectors++; gro_merge_buffers (vm, b_s, b0, bi0, payload_len0, l234_sz0); |