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

Configure Feed

Select the types of activity you want to include in your feed.

net: netpoll: remove unused netpoll pointer from netpoll_info

The netpoll_info structure contains an useless pointer back to its
associated netpoll. This field is never used, and the assignment in
__netpoll_setup() is does not comtemplate multiple instances, as
reported by Jay[1].

Drop both the member and its initialization to simplify the structure.

Link: https://lore.kernel.org/all/2930648.1757463506@famine/ [1]
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250918-netpoll_jv-v1-1-67d50eeb2c26@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Breno Leitao and committed by
Jakub Kicinski
b34df17d 4d3c5db4

-2
-1
include/linux/netpoll.h
··· 55 55 56 56 struct delayed_work tx_work; 57 57 58 - struct netpoll *netpoll; 59 58 struct rcu_head rcu; 60 59 }; 61 60
-1
net/core/netpoll.c
··· 591 591 592 592 np->dev = ndev; 593 593 strscpy(np->dev_name, ndev->name, IFNAMSIZ); 594 - npinfo->netpoll = np; 595 594 596 595 /* fill up the skb queue */ 597 596 refill_skbs(np);