diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-02-08 12:51:50 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-09 00:50:01 +0400 |
commit | 43480aecb1f538d4f6dd8b2c5d2b71fb98659072 (patch) | |
tree | 11e3720c45cccc5696744c8e0743edd3d53d84c4 /net/ipv4/udp.c | |
parent | 377cb4f9e763465984b9bb5187747fd9b02a14c0 (diff) | |
download | linux-43480aecb1f538d4f6dd8b2c5d2b71fb98659072.tar.xz |
gro: more generic L2 header check
Shlomo Pongratz reported GRO L2 header check was suited for Ethernet
only, and failed on IB/ipoib traffic.
He provided a patch faking a zeroed header to let GRO aggregates frames.
Roland Dreier, Herbert Xu, and others suggested we change GRO L2 header
check to be more generic, ie not assuming L2 header is 14 bytes, but
taking into account hard_header_len.
__napi_gro_receive() has special handling for the common case (Ethernet)
to avoid a memcmp() call and use an inline optimized function instead.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Reported-by: Shlomo Pongratz <shlomop@mellanox.com>
Cc: Roland Dreier <roland@kernel.org>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
0 files changed, 0 insertions, 0 deletions