summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2020-05-07 09:32:18 -0700
committerDavid S. Miller <davem@davemloft.net>2020-05-07 18:11:07 -0700
commit307f660d056b5eb8f5bb2328fac3915ab75b5007 (patch)
tree4f2d48317d2254f85732d2bb3be89c46eb95e649 /include
parent3a13f98b4c16fb3489bdfd7550fcaa333ee69850 (diff)
downloadlinux-307f660d056b5eb8f5bb2328fac3915ab75b5007.tar.bz2
netpoll: remove dev argument from netpoll_send_skb_on_dev()
netpoll_send_skb_on_dev() can get the device pointer directly from np->dev Rename it to __netpoll_send_skb() Following patch will move netpoll_send_skb() out-of-line. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netpoll.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h
index 676f1ff161a9..00e0bae3d402 100644
--- a/include/linux/netpoll.h
+++ b/include/linux/netpoll.h
@@ -63,13 +63,12 @@ int netpoll_setup(struct netpoll *np);
void __netpoll_cleanup(struct netpoll *np);
void __netpoll_free(struct netpoll *np);
void netpoll_cleanup(struct netpoll *np);
-void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb,
- struct net_device *dev);
+void __netpoll_send_skb(struct netpoll *np, struct sk_buff *skb);
static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)
{
unsigned long flags;
local_irq_save(flags);
- netpoll_send_skb_on_dev(np, skb, np->dev);
+ __netpoll_send_skb(np, skb);
local_irq_restore(flags);
}