diff options
author | Eric Dumazet <[email protected]> | 2024-03-01 19:37:39 +0000 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-03-05 13:30:11 +0100 |
commit | c7583e9f768eeb82f2531c8372584ba89cfade8b (patch) | |
tree | daada686e3890d7c1b85d191bd51140821364e50 /lib/crypto/mpi/mpi-add.c | |
parent | bd56a29c7a4ebcd3ca69505a2e676449e60965f3 (diff) |
net: gro: enable fast path for more cases
Currently the so-called GRO fast path is only enabled for
napi_frags_skb() callers.
After the prior patch, we no longer have to clear frag0 whenever
we pulled bytes to skb->head.
We therefore can initialize frag0 to skb->data so that GRO
fast path can be used in the following additional cases:
- Drivers using header split (populating skb->data with headers,
and having payload in one or more page fragments).
- Drivers not using any page frag (entire packet is in skb->data)
Add a likely() in skb_gro_may_pull() to help the compiler
to generate better code if possible.
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Paolo Abeni <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions