Re: [PATCH net v2 1/2] net: netem: fix backlog accounting for corrupted GSO frames

2019-06-17 Thread Cong Wang
On Mon, Jun 17, 2019 at 11:11 AM Jakub Kicinski wrote: > > When GSO frame has to be corrupted netem uses skb_gso_segment() > to produce the list of frames, and re-enqueues the segments one > by one. The backlog length has to be adjusted to account for > new frames. > > The current calculation is

[PATCH net v2 1/2] net: netem: fix backlog accounting for corrupted GSO frames

2019-06-17 Thread Jakub Kicinski
When GSO frame has to be corrupted netem uses skb_gso_segment() to produce the list of frames, and re-enqueues the segments one by one. The backlog length has to be adjusted to account for new frames. The current calculation is incorrect, leading to wrong backlog lengths in the parent qdisc (both