summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-05-15 20:15:32 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-22 08:09:08 +0200
commit4e7ec2e90f45e85f69179658576e322f0b261403 (patch)
tree9041e5e8d868b358d72cfa5263e8e56ffabc691a /include
parenteaa5eb41f71600172ed1e76de26b7fe0a6902ad0 (diff)
netfilter: nft_fib: Fix existence check support
[ Upstream commit e633508a95289489d28faacb68b32c3e7e68ef6f ] NFTA_FIB_F_PRESENT flag was not always honored since eval functions did not call nft_fib_store_result in all cases. Given that in all callsites there is a struct net_device pointer available which holds the interface data to be stored in destination register, simplify nft_fib_store_result() to just accept that pointer instead of the nft_pktinfo pointer and interface index. This also allows to drop the index to interface lookup previously needed to get the name associated with given index. Fixes: 055c4b34b94f6 ("netfilter: nft_fib: Support existence check") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/netfilter/nft_fib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nft_fib.h b/include/net/netfilter/nft_fib.h
index a88f92737308..e4c4d8eaca8c 100644
--- a/include/net/netfilter/nft_fib.h
+++ b/include/net/netfilter/nft_fib.h
@@ -34,5 +34,5 @@ void nft_fib6_eval(const struct nft_expr *expr, struct nft_regs *regs,
const struct nft_pktinfo *pkt);
void nft_fib_store_result(void *reg, const struct nft_fib *priv,
- const struct nft_pktinfo *pkt, int index);
+ const struct net_device *dev);
#endif