summaryrefslogtreecommitdiffstats
path: root/drivers/net/netkit.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2024-08-23 14:00:53 +0200
committerMartin KaFai Lau <martin.lau@kernel.org>2024-08-27 20:37:45 +0200
commitd96608794889d5a2419fb4077fa5d5bbffea07bc (patch)
tree605c4bb5b52b92a50051985c3193d33aef6bc244 /drivers/net/netkit.c
parentMerge branch 'tc-adjust-network-header-after-2nd-vlan-push' (diff)
downloadlinux-d96608794889d5a2419fb4077fa5d5bbffea07bc.tar.xz
linux-d96608794889d5a2419fb4077fa5d5bbffea07bc.zip
netkit: Disable netpoll support
Follow-up to 45160cebd6ac ("net: veth: Disable netpoll support") to also disable netpoll for netkit interfaces. Same conditions apply here as well. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Cc: Breno Leitao <leitao@debian.org> Cc: Nikolay Aleksandrov <razor@blackwall.org> Acked-by: Nikolay Aleksandrov <razor@blackwall.org> Reviewed-by: Breno Leitao <leitao@debian.org> Link: https://lore.kernel.org/r/eab2d69ba2f4c260aef62e4ff0d803e9f60c2c5d.1724414250.git.daniel@iogearbox.net Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'drivers/net/netkit.c')
-rw-r--r--drivers/net/netkit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/netkit.c b/drivers/net/netkit.c
index 16789cd446e9..0681cf86284d 100644
--- a/drivers/net/netkit.c
+++ b/drivers/net/netkit.c
@@ -255,6 +255,7 @@ static void netkit_setup(struct net_device *dev)
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
dev->priv_flags |= IFF_PHONY_HEADROOM;
dev->priv_flags |= IFF_NO_QUEUE;
+ dev->priv_flags |= IFF_DISABLE_NETPOLL;
dev->ethtool_ops = &netkit_ethtool_ops;
dev->netdev_ops = &netkit_netdev_ops;