]> git.baikalelectronics.ru Git - kernel.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)
commit79eb45fff73831ba11d0e1170002a41825ec3f5f
treee2539d8448758cd17d99a15bedfbeddfdb57f9ba
parent78687d1135d63254052dad3f9fe10c287c72f29f
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 08a5235133a3 ("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