linux/net/core
John Fastabend 6afff0caa7 net: consolidate netif_needs_gso() checks
netif_needs_gso() is checked twice in the TX path once,
before submitting the skb to the qdisc and once after
it is dequeued from the qdisc just before calling
ndo_hard_start().  This opens a window for a user to
change the gso/tso or tx checksum settings that can
cause netif_needs_gso to be true in one check and false
in the other.

Specifically, changing TX checksum setting may cause
the warning in skb_gso_segment() to be triggered if
the checksum is calculated earlier.

This consolidates the netif_needs_gso() calls so that
the stack only checks if gso is needed in
dev_hard_start_xmit().

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-06-23 12:58:41 -07:00
..
datagram.c
dev_addr_lists.c
dev.c net: consolidate netif_needs_gso() checks 2010-06-23 12:58:41 -07:00
drop_monitor.c
dst.c
ethtool.c
fib_rules.c
filter.c
flow.c
gen_estimator.c pkt_sched: gen_kill_estimator() rcu fixes 2010-06-11 18:37:08 -07:00
gen_stats.c
iovec.c
kmap_skb.h
link_watch.c
Makefile
neighbour.c
net_namespace.c
net-sysfs.c net: Enable 64-bit net device statistics on 32-bit architectures 2010-06-12 15:51:22 -07:00
net-sysfs.h
net-traces.c
netevent.c
netpoll.c netpoll: Allow netpoll_setup/cleanup recursion 2010-06-15 10:58:40 -07:00
pktgen.c pktgen: increasing transmission granularity 2010-06-11 18:37:09 -07:00
request_sock.c
rtnetlink.c net: Enable 64-bit net device statistics on 32-bit architectures 2010-06-12 15:51:22 -07:00
scm.c scm: Capture the full credentials of the scm sender. 2010-06-16 14:55:56 -07:00
skbuff.c net: rxhash already set in __copy_skb_header 2010-06-13 17:16:54 -07:00
sock.c net: Export cred_to_ucred to modules. 2010-06-16 16:18:25 -07:00
stream.c
sysctl_net_core.c
user_dma.c
utils.c