aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-06-15 12:12:01 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-06-15 23:02:35 +0200
commit835b803377f5f11f9ccf234f70ed667a82605c45 (patch)
treec37020898a8d31211877daef0fc7609bc118c878 /tools/perf/scripts/python
parentnetfilter: nf_tables: add nft_register_basechain() and nft_unregister_basecha... (diff)
downloadlinux-835b803377f5f11f9ccf234f70ed667a82605c45.tar.gz
linux-835b803377f5f11f9ccf234f70ed667a82605c45.zip
netfilter: nf_tables_netdev: unregister hooks on net_device removal
In case the net_device is gone, we have to unregister the hooks and put back the reference on the net_device object. Once it comes back, register them again. This also covers the device rename case. This patch also adds a new flag to indicate that the basechain is disabled, so their hooks are not registered. This flag is used by the netdev family to handle the case where the net_device object is gone. Currently this flag is not exposed to userspace. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions