We don't set transport header for untrusted packets in the past, but for the follwoing reasons, we need to do it now.
- Better packet length estimation (introduced in 1def9238) needs l4 header for gso packets to compute the header length. - Some driver needs l4 header (e.g. ixgbe needs tcp header to do atr). So this patches tries to set transport header for packets from untrusted source (netback, packet, tuntap, macvtap). Plus a fix for better estimation on packet length for DODGY packet. Tested on tun/macvtap/packet, compile test on netback. Jason Wang (5): macvtap: set transport header before passing skb to lower device tuntap: set transport header before passing it to kernel packet: set transport header before doing xmit netback: set transport header before passing it to kernel net_sched: better precise estimation on packet length for untrusted packets drivers/net/macvtap.c | 9 +++++++++ drivers/net/tun.c | 10 ++++++++++ drivers/net/xen-netback/netback.c | 12 ++++++++++++ net/core/dev.c | 8 +++++++- net/packet/af_packet.c | 21 +++++++++++++++++++++ 5 files changed, 59 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/