]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'gro-micro-optimize-dev_gro_receive'
authorDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 21:41:09 +0000 (14:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 21:41:09 +0000 (14:41 -0700)
commit8c6d7d88c42a1ab7b10abedc0cf627e056499892
tree57a6dcdf4a37a94ac324b1decda99ac841e6e34d
parentfb309806fea08e3321333885c3c0c7bfd431f51f
parente302a7d5625d1f3e0f360244ddbd807fd70489ec
Merge branch 'gro-micro-optimize-dev_gro_receive'

Alexander Lobakin says:

====================
gro: micro-optimize dev_gro_receive()

This random series addresses some of suboptimal constructions used
in the main GRO entry point.
The main body is gro_list_prepare() simplification and pointer usage
optimization in dev_gro_receive() itself. Being mostly cosmetic, it
gives like +10 Mbps on my setup to both TCP and UDP (both single- and
multi-flow).

Since v1 [0]:
 - drop the replacement of bucket index calculation with
   reciprocal_scale() since it makes absolutely no sense (Eric);
 - improve stack usage in dev_gro_receive() (Eric);
 - reverse the order of patches to avoid changes superseding.

[0] https://lore.kernel.org/netdev/20210312162127.239795-1-alobakin@pm.me
====================

Signed-off-by: David S. Miller <davem@davemloft.net>