diff options
author | 2025-05-21 22:44:30 +0200 | |
---|---|---|
committer | 2025-05-23 13:57:13 +0200 | |
commit | 7b4856493d7801018c48bab6f8ab8482aba8be76 (patch) | |
tree | f75c1559dc170e612ca4c244afc9df4bcce16818 /drivers/usb/cdns3/cdns3-debug.h | |
parent | netfilter: nf_tables: Wrap netdev notifiers (diff) | |
download | wireguard-linux-7b4856493d7801018c48bab6f8ab8482aba8be76.tar.xz wireguard-linux-7b4856493d7801018c48bab6f8ab8482aba8be76.zip |
netfilter: nf_tables: Handle NETDEV_CHANGENAME events
For the sake of simplicity, treat them like consecutive NETDEV_REGISTER
and NETDEV_UNREGISTER events. If the new name matches a hook spec and
registration fails, escalate the error and keep things as they are.
To avoid unregistering the newly registered hook again during the
following fake NETDEV_UNREGISTER event, leave hooks alone if their
interface spec matches the new name.
Note how this patch also skips for NETDEV_REGISTER if the device is
already registered. This is not yet possible as the new name would have
to match the old one. This will change with wildcard interface specs,
though.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions