Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: nf_tables: remove NETDEV_CHANGENAME from netdev chain event handler

Originally, device name used to be stored in the basechain, but it is
not the case anymore. Remove check for NETDEV_CHANGENAME.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

+1 -5
+1 -5
net/netfilter/nft_chain_filter.c
··· 325 325 struct nft_hook *hook, *found = NULL; 326 326 int n = 0; 327 327 328 - if (event != NETDEV_UNREGISTER) 329 - return; 330 - 331 328 list_for_each_entry(hook, &basechain->hook_list, list) { 332 329 if (hook->ops.dev == dev) 333 330 found = hook; ··· 364 367 .net = dev_net(dev), 365 368 }; 366 369 367 - if (event != NETDEV_UNREGISTER && 368 - event != NETDEV_CHANGENAME) 370 + if (event != NETDEV_UNREGISTER) 369 371 return NOTIFY_DONE; 370 372 371 373 nft_net = nft_pernet(ctx.net);