summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-05-11 22:45:35 +0200
committerFlorian Westphal <fw@strlen.de>2023-05-18 08:48:54 +0200
commitd4b7f29eb85c93893bc27388b37709efbc3c9a0e (patch)
treee97495a0b3e44403847163bac340eef612ec0f19 /scripts
parenta4878eeae39048e6abe85891c714b49dc13fc08c (diff)
downloadlinux-stable-d4b7f29eb85c93893bc27388b37709efbc3c9a0e.tar.gz
linux-stable-d4b7f29eb85c93893bc27388b37709efbc3c9a0e.tar.bz2
linux-stable-d4b7f29eb85c93893bc27388b37709efbc3c9a0e.zip
netfilter: nf_tables: always increment set element count
At this time, set->nelems counter only increments when the set has a maximum size. All set elements decrement the counter unconditionally, this is confusing. Increment the counter unconditionally to make this symmetrical. This would also allow changing the set maximum size after set creation in a later patch. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions