summaryrefslogtreecommitdiff
path: root/net/packet
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-03-25 20:19:56 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-26 12:44:43 -0400
commit38502af77e07b5d6650b9ff99a0b482d86366592 (patch)
treefa2164acb8ee8d57d8134af49296b80801ff0e66 /net/packet
parent9b4d669bc06c215d64f56f1eb0d4eb96e14d689d (diff)
tuntap: set transport header before passing it to kernel
Currently, for the packets receives from tuntap, before doing header check, kernel just reset the transport header in netif_receive_skb() which pretends no l4 header. This is suboptimal for precise packet length estimation (introduced in 1def9238) which needs correct l4 header for gso packets. So this patch set the transport header to csum_start for partial checksum packets, otherwise it first try skb_flow_dissect(), if it fails, just reset the transport header. Cc: Eric Dumazet <edumazet@google.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions