]> Git Repo - linux.git/commit
net: netem: correct the parent's backlog when corrupted packet was dropped
authorJakub Kicinski <[email protected]>
Fri, 18 Oct 2019 16:16:58 +0000 (09:16 -0700)
committerDavid S. Miller <[email protected]>
Sat, 19 Oct 2019 19:12:36 +0000 (12:12 -0700)
commite0ad032e144731a5928f2d75e91c2064ba1a764c
tree0251c77f78c0d1b52918b25f3ab5141643474db8
parenta7fa12d15855904aff1716e1fc723c03ba38c5cc
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: 6071bd1aa13e ("netem: Segment GSO packets on enqueue")
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/sched/sch_netem.c
This page took 0.038769 seconds and 4 git commands to generate.