net: gro: do not keep too many GRO packets in napi->rx_list
stable inclusion from stable-5.10.17 commit 9e6ce473e96ba0ad63820325892373d24c1aa8aa bugzilla: 48169 -------------------------------- commit 8dc1c444 upstream. Commit c8079432 ("net: Fix packet reordering caused by GRO and listified RX cooperation") had the unfortunate effect of adding latencies in common workloads. Before the patch, GRO packets were immediately passed to upper stacks. After the patch, we can accumulate quite a lot of GRO packets (depdending on NAPI budget). My fix is counting in napi->rx_count number of segments instead of number of logical packets. Fixes: c8079432 ("net: Fix packet reordering caused by GRO and listified RX cooperation") Signed-off-by:Eric Dumazet <edumazet@google.com> Bisected-by:
John Sperbeck <jsperbeck@google.com> Tested-by:
Jian Yang <jianyang@google.com> Cc: Maxim Mikityanskiy <maximmi@mellanox.com> Reviewed-by:
Saeed Mahameed <saeedm@nvidia.com> Reviewed-by:
Edward Cree <ecree.xilinx@gmail.com> Reviewed-by:
Alexander Lobakin <alobakin@pm.me> Link: https://lore.kernel.org/r/20210204213146.4192368-1-eric.dumazet@gmail.com Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com>
Loading
Please sign in to comment