]> git.baikalelectronics.ru Git - kernel.git/commit
fq_impl: Properly enforce memory limit
authorToke Høiland-Jørgensen <toke@toke.dk>
Mon, 16 Oct 2017 15:05:57 +0000 (17:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 18 Oct 2017 07:40:35 +0000 (09:40 +0200)
commitc27781526798524970743ffef6c798181e1a6fff
treed265ad908ee854eb7ceb1dfc34040e4dbe8e00d8
parent14523eb212fb566fe1873bf43396d1e6dab87143
fq_impl: Properly enforce memory limit

The fq structure would fail to properly enforce the memory limit in the case
where the packet being enqueued was bigger than the packet being removed to
bring the memory usage down. So keep dropping packets until the memory usage is
back below the limit. Also, fix the statistics for memory limit violations.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/fq_impl.h