]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netfilter: nf_tables: attach net_device to basechain
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 12 Jun 2015 11:55:41 +0000 (13:55 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Jun 2015 21:02:31 +0000 (23:02 +0200)
commit2cbce139fc57bc2625f88add055d0b94f00c3352
treee2539d8448758cd17d99a15bedfbeddfdb57f9ba
parent711bdde6a884354ddae8da2fcb495b2a9364cc90
netfilter: nf_tables: attach net_device to basechain

The device is part of the hook configuration, so instead of a global
configuration per table, set it to each of the basechain that we create.

This patch reworks ebddf1a8d78a ("netfilter: nf_tables: allow to bind table to
net_device").

Note that this adds a dev_name field in the nft_base_chain structure which is
required the netdev notification subscription that follows up in a patch to
handle gone net_devices.

Suggested-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c