diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-09-03 01:09:27 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-09-03 18:19:40 +0200 |
commit | 8bfb74ae12fa4cd3c9b49bb5913610b5709bffd7 (patch) | |
tree | b332bc3bfad842bc828db94e067c21b6d9ff8e6d /include/sound/hda_chmap.h | |
parent | 4c5daea9af4fce6628b8ca9e6a332529bbf26809 (diff) |
netfilter: nf_tables: zero timeout means element never times out
This patch uses zero as timeout marker for those elements that never expire
when the element is created.
If userspace provides no timeout for an element, then the default set
timeout applies. However, if no default set timeout is specified and
timeout flag is set on, then timeout extension is allocated and timeout
is set to zero to allow for future updates.
Use of zero a never timeout marker has been suggested by Phil Sutter.
Note that, in older kernels, it is already possible to define elements
that never expire by declaring a set with the set timeout flag set on
and no global set timeout, in this case, new element with no explicit
timeout never expire do not allocate the timeout extension, hence, they
never expire. This approach makes it complicated to accomodate element
timeout update, because element extensions do not support reallocations.
Therefore, allocate the timeout extension and use the new marker for
this case, but do not expose it to userspace to retain backward
compatibility in the set listing.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/sound/hda_chmap.h')
0 files changed, 0 insertions, 0 deletions