From: Patrick McHardy Date: Sun, 5 Apr 2015 12:41:06 +0000 (+0200) Subject: netfilter: nf_tables: prepare set element accounting for async updates X-Git-Tag: omap-for-v4.2/o2_dc~131^2~38^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dd0673ac3cd7d05cde103396ec7ec410a901de2;p=pandora-kernel.git netfilter: nf_tables: prepare set element accounting for async updates Use atomic operations for the element count to avoid races with async updates. To properly handle the transactional semantics during netlink updates, deleted but not yet committed elements are accounted for seperately and are treated as being already removed. This means for the duration of a netlink transaction, the limit might be exceeded by the amount of elements deleted. Set implementations must be prepared to handle this. Signed-off-by: Patrick McHardy Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed