Florian Westphal
b87a2f9199
netfilter: conntrack: add gc worker to remove timed-out entries
...
Conntrack gc worker to evict stale entries.
GC happens once every 5 seconds, but we only scan at most 1/64th of the
table (and not more than 8k) buckets to avoid hogging cpu.
This means that a complete scan of the table will take several minutes
of wall-clock time.
Considering that the gc run will never have to evict any entries
during normal operation because those will happen from packet path
this should be fine.
We only need gc to make sure userspace (conntrack event listeners)
eventually learn of the timeout, and for resource reclaim in case the
system becomes idle.
We do not disable BH and cond_resched for every bucket so this should
not introduce noticeable latencies either.
A followup patch will add a small change to speed up GC for the extreme
case where most entries are timed out on an otherwise idle system.
v2: Use cond_resched_rcu_qs & add comment wrt. missing restart on
nulls value change in gc worker, suggested by Eric Dumazet.
v3: don't call cancel_delayed_work_sync twice (again, Eric).
Signed-off-by: Florian Westphal <[email protected] >
Acked-by: Eric Dumazet <[email protected] >
Signed-off-by: Pablo Neira Ayuso <[email protected] >
2016-08-30 11:43:09 +02:00
..
6lowpan
6lowpan: ndisc: set invalid unicast short addr to unspec
2016-07-08 13:23:12 +02:00
9p
802
8021q
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-07-24 00:53:32 -04:00
appletalk
atm
net: add dev arg to ndo_neigh_construct/destroy
2016-07-05 09:06:28 -07:00
ax25
batman-adv
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-07-24 00:53:32 -04:00
bluetooth
Bluetooth: Add debugfs fields for hardware and firmware info
2016-07-18 09:33:28 +03:00
bridge
bridge: Fix incorrect re-injection of LLDP packets
2016-07-25 10:53:34 -07:00
caif
caif: Remove unneeded header file
2016-06-28 05:26:14 -04:00
can
ceph
libceph: fsmap.user subscription support
2016-07-28 03:00:40 +02:00
core
rps: Inspect PPTP encapsulated by GRE to get flow hash
2016-08-10 17:22:14 -07:00
dcb
dccp
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2016-07-29 17:38:46 -07:00
decnet
net: fix decnet rtnexthop parsing
2016-07-05 14:08:47 -07:00
dns_resolver
dsa
net: dsa: support switchdev ageing time attr
2016-07-19 19:42:01 -07:00
ethernet
hsr
ieee802154
ieee802154: 6lowpan: fix intra pan id check
2016-07-08 13:23:12 +02:00
ipv4
netfilter: remove ip_conntrack* sysctl compat code
2016-08-13 13:27:13 +02:00
ipv6
net: resolve symbol conflicts with generic hashtable.h
2016-08-10 17:18:52 -07:00
ipx
irda
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2016-07-27 12:03:20 -07:00
iucv
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2016-07-29 17:38:46 -07:00
kcm
kcm: remove redundant -ve error check and return path
2016-07-25 11:17:16 -07:00
key
l2tp
l2tp: Correctly return -EBADF from pppol2tp_getname.
2016-07-26 15:19:46 -07:00
l3mdev
lapb
llc
mac80211
mac80211: Add ieee80211_hw pointer to get_expected_throughput
2016-08-05 14:23:25 +02:00
mac802154
mpls
mpls: allow routes on ipip and sit devices
2016-07-09 17:45:56 -04:00
ncsi
net/ncsi: avoid maybe-uninitialized warning
2016-07-25 10:32:59 -07:00
netfilter
netfilter: conntrack: add gc worker to remove timed-out entries
2016-08-30 11:43:09 +02:00
netlabel
netlabel: Implement CALIPSO config functions for SMACK.
2016-06-27 15:06:18 -04:00
netlink
netrom
nfc
NFC: digital: Fix RTOX supervisor PDU handling
2016-07-11 02:02:03 +02:00
openvswitch
OVS: Ignore negative headroom value
2016-08-06 00:06:11 -04:00
packet
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-07-24 00:53:32 -04:00
phonet
qrtr
rds
RDS: add __printf format attribute to error reporting functions
2016-08-08 16:16:21 -07:00
rfkill
rose
rose: limit sk_filter trim to payload
2016-07-13 11:53:40 -07:00
rxrpc
rxrpc: Fix races between skb free, ACK generation and replying
2016-08-06 00:08:40 -04:00
sched
net: sched: convert qdisc linked list to hashtable
2016-08-10 17:19:02 -07:00
sctp
sctp: use event->chunk when it's valid
2016-08-08 14:31:23 -07:00
sunrpc
NFS client updates for Linux 4.8
2016-07-30 16:33:25 -07:00
switchdev
net/switchdev: Export the same parent ID service function
2016-07-14 13:34:29 -07:00
tipc
tipc: fix imbalance read_unlock_bh in __tipc_nl_add_monitor()
2016-07-30 20:38:22 -07:00
unix
af_unix: charge buffers to kmemcg
2016-07-26 16:19:19 -07:00
vmw_vsock
wimax
wireless
nl80211: correct checks for NL80211_MESHCONF_HT_OPMODE value
2016-08-05 14:14:54 +02:00
x25
xfrm
compat.c
Kconfig
net/ncsi: Resource management
2016-07-19 20:49:16 -07:00
Makefile
net/ncsi: Resource management
2016-07-19 20:49:16 -07:00
socket.c
sysctl_net.c