diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-02-08 08:51:50 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-29 16:33:46 -0800 |
commit | 32fa5d83232b026092505e9165e119e5806b930d (patch) | |
tree | 78aea40fbb61a6d746282c56580416a8439ef043 /net/netlabel | |
parent | aca5efd17c1a1ed6303537792517e7352cf74edd (diff) | |
download | kernel_samsung_crespo-32fa5d83232b026092505e9165e119e5806b930d.zip kernel_samsung_crespo-32fa5d83232b026092505e9165e119e5806b930d.tar.gz kernel_samsung_crespo-32fa5d83232b026092505e9165e119e5806b930d.tar.bz2 |
gro: more generic L2 header check
[ Upstream commit 5ca3b72c5da47d95b83857b768def6172fbc080a ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/netlabel')
0 files changed, 0 insertions, 0 deletions