Skip to content

Commit b9495b5

Browse files
edumazetdavem330
authored andcommitted
net: move kick_defer_list_purge() to net/core/dev.h
kick_defer_list_purge() is defined in net/core/dev.c and used from net/core/skubff.c Because we need softnet_data, include <linux/netdevice.h> from net/core/dev.h Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d823265 commit b9495b5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/linux/netdevice.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3288,7 +3288,6 @@ static inline void dev_xmit_recursion_dec(void)
32883288
__this_cpu_dec(softnet_data.xmit.recursion);
32893289
}
32903290

3291-
void kick_defer_list_purge(struct softnet_data *sd, unsigned int cpu);
32923291
void __netif_schedule(struct Qdisc *q);
32933292
void netif_schedule_queue(struct netdev_queue *txq);
32943293

net/core/dev.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44

55
#include <linux/types.h>
66
#include <linux/rwsem.h>
7+
#include <linux/netdevice.h>
78

89
struct net;
9-
struct net_device;
10-
struct netdev_bpf;
11-
struct netdev_phys_item_id;
1210
struct netlink_ext_ack;
1311
struct cpumask;
1412

@@ -150,4 +148,6 @@ static inline void xdp_do_check_flushed(struct napi_struct *napi) { }
150148
#endif
151149

152150
struct napi_struct *napi_by_id(unsigned int napi_id);
151+
void kick_defer_list_purge(struct softnet_data *sd, unsigned int cpu);
152+
153153
#endif

0 commit comments

Comments
 (0)