diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-06-15 10:12:01 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-06-15 21:02:35 (GMT) |
commit | 835b803377f5f11f9ccf234f70ed667a82605c45 (patch) | |
tree | c37020898a8d31211877daef0fc7609bc118c878 /kernel/trace | |
parent | d8ee8f7c56b267751f95a1f0b4a75618909c07ac (diff) | |
download | linux-835b803377f5f11f9ccf234f70ed667a82605c45.tar.xz |
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 'kernel/trace')
0 files changed, 0 insertions, 0 deletions