summaryrefslogtreecommitdiff
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorTim Gardner <tim.gardner@canonical.com>2010-03-16 18:53:13 (GMT)
committerPatrick McHardy <kaber@trash.net>2010-03-17 14:53:12 (GMT)
commit0079c5aee34880bcee7feee9960f0502c73dc5fa (patch)
treea828b04c52f6650cbd654ca7b7de5ccdab5762c7 /drivers/usb/host
parent5be4a4f589841ef06fd79b241de3d5353a6c5efa (diff)
downloadlinux-fsl-qoriq-0079c5aee34880bcee7feee9960f0502c73dc5fa.tar.xz
netfilter: xt_recent: add an entry reaper
One of the problems with the way xt_recent is implemented is that there is no efficient way to remove expired entries. Of course, one can write a rule '-m recent --remove', but you have to know beforehand which entry to delete. This commit adds reaper logic which checks the head of the LRU list when a rule is invoked that has a '--seconds' value and XT_RECENT_REAP set. If an entry ceases to accumulate time stamps, then it will eventually bubble to the top of the LRU list where it is then reaped. Signed-off-by: Tim Gardner <tim.gardner@canonical.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'drivers/usb/host')
0 files changed, 0 insertions, 0 deletions