]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: better precise estimation on packet length for untrusted packets
authorJason Wang <jasowang@redhat.com>
Mon, 25 Mar 2013 20:19:59 +0000 (20:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Mar 2013 16:44:44 +0000 (12:44 -0400)
commit40d1f085afbb5dfb5d93597de9a70f843fc09b91
tree59a450599ed491e4bd117ea56a60f5ab79821586
parente1297ffe5ea2a83b86eec66b6bb17958a5ee87c3
net_sched: better precise estimation on packet length for untrusted packets

gso_segs were reset to zero when kernel receive packets from untrusted
source. But we use this zero value to estimate precise packet len which is
wrong. So this patch tries to estimate the correct gso_segs value before using
it in qdisc_pkt_len_init().

Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c