]> git.baikalelectronics.ru Git - kernel.git/commit
net: netem: correct the parent's backlog when corrupted packet was dropped
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 18 Oct 2019 16:16:58 +0000 (09:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2019 19:12:36 +0000 (12:12 -0700)
commit9918fbb5f436ee231834cc4f4dd10f30606796a0
tree0251c77f78c0d1b52918b25f3ab5141643474db8
parent4b1f7c06eb04583725cbd33256151aac4875cf36
net: netem: correct the parent's backlog when corrupted packet was dropped

If packet corruption failed we jump to finish_segs and return
NET_XMIT_SUCCESS. Seeing success will make the parent qdisc
increment its backlog, that's incorrect - we need to return
NET_XMIT_DROP.

Fixes: 46e48adc14a3 ("netem: Segment GSO packets on enqueue")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_netem.c