]> git.baikalelectronics.ru Git - kernel.git/commit
net: optimize GRO for the common case.
authorPaolo Abeni <pabeni@redhat.com>
Wed, 28 Jul 2021 16:24:02 +0000 (18:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jul 2021 11:18:12 +0000 (12:18 +0100)
commitfb238ad08b57a8295aa2df03351bf3f25c2c6df8
treeaab2e005f5c5566917a80cae3349dceae7d26572
parentaec48a49a2e33fc7548e7f83f10bf0ab84c4f1aa
net: optimize GRO for the common case.

After the previous patches, at GRO time, skb->slow_gro is
usually 0, unless the packets comes from some H/W offload
slowpath or tunnel.

We can optimize the GRO code assuming !skb->slow_gro is likely.
This remove multiple conditionals in the most common path, at the
price of an additional one when we hit the above "slow-paths".

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/skbuff.c