]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nf_tables: Use stored ifname in netdev hook dumps
authorPhil Sutter <phil@nwl.cc>
Thu, 9 Jan 2025 17:31:34 +0000 (18:31 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 19 Jan 2025 15:41:53 +0000 (16:41 +0100)
commit880ccec0d02efb24900f589d0cac826af1d91523
tree34fd0f71e4d56d70d2303d4fd61b2ae6cd05fcf7
parentb7c2d793c28cda7dbb67d6b427e3280b7c1e601a
netfilter: nf_tables: Use stored ifname in netdev hook dumps

The stored ifname and ops.dev->name may deviate after creation due to
interface name changes. Prefer the more deterministic stored name in
dumps which also helps avoiding inadvertent changes to stored ruleset
dumps.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c