diff --git a/net/netfilter/core.c b/net/netfilter/core.c index 11a702065bab..0eccc8d0f2f1 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -500,6 +500,7 @@ static void __nf_unregister_net_hook(struct net *net, int pf, return; } + printk(KERN_INFO "%s: removing pf %d num %d", pf, reg->hooknum); if (nf_remove_net_hook(p, reg)) { #ifdef CONFIG_NETFILTER_INGRESS if (nf_ingress_hook(reg, pf)) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index eed434e0a970..956c92692a1d 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -9744,6 +9744,8 @@ static int nft_flowtable_event(unsigned long event, struct net_device *dev, struct nft_hook *hook; bool match; + printk(KERN_INFO "%s: called for event %lu in flowtable %s %s, device %s\n", + __func__, event, flowtable->table->name, flowtable->name, dev->name); list_for_each_entry(hook, &flowtable->hook_list, list) { ops = nft_hook_find_ops(hook, dev); match = !strncmp(hook->ifname, dev->name, hook->ifnamelen); @@ -9755,6 +9757,7 @@ static int nft_flowtable_event(unsigned long event, struct net_device *dev, continue; /* flow_offload_netdev_event() cleans up entries for us. */ + printk(KERN_INFO "%s: unregistering for ops at %p\n", __func__, ops); nft_unregister_flowtable_ops(dev_net(dev), flowtable, ops); list_del_rcu(&ops->list);