position refers to the rule handle, it has similar cache requirements as
replace rule command, relax cache requirements.
Commit
e5382c0d08e3 ("src: Support intra-transaction rule references")
uses position.id for index support which requires a full cache, but
only in such case.
Fixes: 01e5c6f0ed03 ("src: add cache level flags")
Tested-by: Eric Garver <eric@garver.life>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
flags |= NFT_CACHE_TABLE |
NFT_CACHE_SET;
- if (cmd->handle.index.id ||
- cmd->handle.position.id)
+ if (cmd->handle.index.id)
flags |= NFT_CACHE_FULL | NFT_CACHE_UPDATE;
break;
default: