summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-07-15 20:03:19 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-28 16:30:04 -0700
commitb3923f8211bc60ff3b4567fafe0814beb6bc5a50 (patch)
treeb3489b0700b3468fa4a3a2901bc66ea8104594eb /drivers
parentda7e35cee6bf8aae938baa597863691bfffc26eb (diff)
downloadlinux-3.10-b3923f8211bc60ff3b4567fafe0814beb6bc5a50.tar.gz
linux-3.10-b3923f8211bc60ff3b4567fafe0814beb6bc5a50.tar.bz2
linux-3.10-b3923f8211bc60ff3b4567fafe0814beb6bc5a50.zip
ipv4: set transport header earlier
[ Upstream commit 21d1196a35f5686c4323e42a62fdb4b23b0ab4a3 ] commit 45f00f99d6e ("ipv4: tcp: clean up tcp_v4_early_demux()") added a performance regression for non GRO traffic, basically disabling IP early demux. IPv6 stack resets transport header in ip6_rcv() before calling IP early demux in ip6_rcv_finish(), while IPv4 does this only in ip_local_deliver_finish(), _after_ IP early demux. GRO traffic happened to enable IP early demux because transport header is also set in inet_gro_receive() Instead of reverting the faulty commit, we can make IPv4/IPv6 behave the same : transport_header should be set in ip_rcv() instead of ip_local_deliver_finish() ip_local_deliver_finish() can also use skb_network_header_len() which is faster than ip_hdrlen() Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Neal Cardwell <ncardwell@google.com> Cc: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions