diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-05-26 20:50:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-05-27 12:25:57 +0200 |
commit | 78d3fd0b7de844a6dad56e9620fc9d2271b32ab9 (patch) | |
tree | e79c910646deccc50f5a108782f66cebffafa4d8 /include/trace | |
parent | gro: Localise offset/headlen in skb_gro_offset (diff) | |
download | linux-78d3fd0b7de844a6dad56e9620fc9d2271b32ab9.tar.xz linux-78d3fd0b7de844a6dad56e9620fc9d2271b32ab9.zip |
gro: Only use skb_gro_header for completely non-linear packets
Currently skb_gro_header is used for packets which put the hardware
header in skb->data with the rest in frags. Since the drivers that
need this optimisation all provide completely non-linear packets,
we can gain extra optimisations by only performing the frag0
optimisation for completely non-linear packets.
In particular, we can simply test frag0 (instead of skb_headlen)
to see whether the optimisation is in force.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions