net: veth: Disable netpoll support
authorBreno Leitao <leitao@debian.org>
Mon, 5 Aug 2024 09:40:11 +0000 (02:40 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 6 Aug 2024 19:18:30 +0000 (12:18 -0700)
commit45160cebd6ac84fe8cc2b7f6fec2550398e144cd
tree523fc48382acaf1bd4e7816e7d4aa2d8adadbfa6
parentedfa53dd617f682cb43a1488bf08aca9a3e4236c
net: veth: Disable netpoll support

The current implementation of netpoll in veth devices leads to
suboptimal behavior, as it triggers warnings due to the invocation of
__netif_rx() within a softirq context. This is not compliant with
expected practices, as __netif_rx() has the following statement:

lockdep_assert_once(hardirq_count() | softirq_count());

Given that veth devices typically do not benefit from the
functionalities provided by netpoll, Disable netpoll for veth
interfaces.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20240805094012.1843247-1-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/veth.c