mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
netconsole: move refill_skbs_work_handler() from netpoll
The work handler is wired via INIT_WORK() in netconsole_skb_pool_init() and has no other callers since the previous patch took the skb pool lifecycle out of __netpoll_setup(). Move the function body into drivers/net/netconsole.c as a file-static helper, drop EXPORT_SYMBOL_GPL() and remove the prototype from <linux/netpoll.h>. Pure code motion: the body is unchanged and still calls the exported refill_skbs() in net/core/netpoll.c. Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20260710-netconsole_move_more-v3-4-6f63f76b28bc@debian.org Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
1fee9a9c59
commit
2851128908
|
|
@ -292,6 +292,14 @@ static void netcons_release_dev(struct netconsole_target *nt)
|
|||
memset(&nt->np.dev_name, 0, IFNAMSIZ);
|
||||
}
|
||||
|
||||
static void refill_skbs_work_handler(struct work_struct *work)
|
||||
{
|
||||
struct netpoll *np =
|
||||
container_of(work, struct netpoll, refill_wq);
|
||||
|
||||
refill_skbs(np);
|
||||
}
|
||||
|
||||
/* Seed the per-target skb pool that find_skb() falls back to. The queue
|
||||
* head and refill work are set up once in alloc_and_init(); this only
|
||||
* (re)fills the pool. Pair with netconsole_skb_pool_flush().
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@ void do_netpoll_cleanup(struct netpoll *np);
|
|||
netdev_tx_t netpoll_send_skb(struct netpoll *np, struct sk_buff *skb);
|
||||
void netpoll_zap_completion_queue(void);
|
||||
void refill_skbs(struct netpoll *np);
|
||||
void refill_skbs_work_handler(struct work_struct *work);
|
||||
void skb_pool_flush(struct netpoll *np);
|
||||
|
||||
#ifdef CONFIG_NETPOLL
|
||||
|
|
|
|||
|
|
@ -362,15 +362,6 @@ void skb_pool_flush(struct netpoll *np)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(skb_pool_flush);
|
||||
|
||||
void refill_skbs_work_handler(struct work_struct *work)
|
||||
{
|
||||
struct netpoll *np =
|
||||
container_of(work, struct netpoll, refill_wq);
|
||||
|
||||
refill_skbs(np);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(refill_skbs_work_handler);
|
||||
|
||||
int __netpoll_setup(struct netpoll *np, struct net_device *ndev)
|
||||
{
|
||||
struct netpoll_info *npinfo;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user