On 5 December 2016 at 14:56, Johannes Berg <[email protected]> wrote: > On Tue, 2016-11-29 at 10:05 -0800, [email protected] wrote: >> From: Ben Greear <[email protected]> >> >> This fixes OOM when using pktgen to drive a wifi station at more than >> the station can transmit. pktgen uses ndo_start_xmit instead of >> going >> through the queue layer, so it will not back off when the queues are >> stopped, and would thus cause packets to be added to the txqi->queue >> until the system goes OOM and crashes. >> >> Signed-off-by: Ben Greear <[email protected]> >> --- >> >> This is against 4.7.10+, not sure if it is actually needed in latest >> kernel. > > One would hope that fq_tin_enqueue() does something like that, but > anyway the patch doesn't apply so I'm dropping it.
fq_tin_enqueue() drops "fat" flow head packet upon reaching packet count limit (8192) or memory limit (4 or 16 mbytes depending on vht availability) whichever is hit first. MichaĆ
