commit | 15e5a030716468dce4032fa0f398d840fa2756f6 | [log] [tgz] |
---|---|---|
author | Jason Wang <jasowang@redhat.com> | Mon Mar 25 20:19:59 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Mar 26 12:44:44 2013 -0400 |
tree | 59a450599ed491e4bd117ea56a60f5ab79821586 | |
parent | f9ca8f74399f9195fd8e01f67a8424a8d33efa55 [diff] |
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>