]> Git Repo - linux.git/commitdiff
netkit: Disable netpoll support
authorDaniel Borkmann <[email protected]>
Fri, 23 Aug 2024 12:00:53 +0000 (14:00 +0200)
committerMartin KaFai Lau <[email protected]>
Tue, 27 Aug 2024 18:37:45 +0000 (11:37 -0700)
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 <[email protected]>
Cc: Breno Leitao <[email protected]>
Cc: Nikolay Aleksandrov <[email protected]>
Acked-by: Nikolay Aleksandrov <[email protected]>
Reviewed-by: Breno Leitao <[email protected]>
Link: https://lore.kernel.org/r/eab2d69ba2f4c260aef62e4ff0d803e9f60c2c5d.1724414250.git.daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <[email protected]>
drivers/net/netkit.c

index 16789cd446e9e47fd738f12a9cde4e1eeef55fcf..0681cf86284df77351da28c895bf401845967824 100644 (file)
@@ -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;
This page took 0.059248 seconds and 4 git commands to generate.