public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta•com>
To: David Miller <davem@davemloft•net>
Cc: netdev@vger•kernel.org
Subject: [PATCH net-next] napi: unexport napi_reuse_skb
Date: Tue, 19 Oct 2010 10:12:10 -0700	[thread overview]
Message-ID: <20101019101210.1bcff4af@nehalam> (raw)

The function napi_reuse_skb is only used inside core.

Signed-off-by: Stephen Hemminger <shemminger@vyatta•com>

---
 include/linux/netdevice.h |    2 --
 net/core/dev.c            |    3 +--
 2 files changed, 1 insertion(+), 4 deletions(-)

--- a/include/linux/netdevice.h	2010-10-19 09:03:13.211106810 -0700
+++ b/include/linux/netdevice.h	2010-10-19 09:03:24.568216914 -0700
@@ -1745,8 +1745,6 @@ extern gro_result_t	napi_skb_finish(gro_
 extern gro_result_t	napi_gro_receive(struct napi_struct *napi,
 					 struct sk_buff *skb);
 extern void		napi_gro_flush(struct napi_struct *napi);
-extern void		napi_reuse_skb(struct napi_struct *napi,
-				       struct sk_buff *skb);
 extern struct sk_buff *	napi_get_frags(struct napi_struct *napi);
 extern gro_result_t	napi_frags_finish(struct napi_struct *napi,
 					  struct sk_buff *skb,
--- a/net/core/dev.c	2010-10-19 09:03:13.235109156 -0700
+++ b/net/core/dev.c	2010-10-19 09:03:58.839566666 -0700
@@ -3287,14 +3287,13 @@ gro_result_t napi_gro_receive(struct nap
 }
 EXPORT_SYMBOL(napi_gro_receive);
 
-void napi_reuse_skb(struct napi_struct *napi, struct sk_buff *skb)
+static void napi_reuse_skb(struct napi_struct *napi, struct sk_buff *skb)
 {
 	__skb_pull(skb, skb_headlen(skb));
 	skb_reserve(skb, NET_IP_ALIGN - skb_headroom(skb));
 
 	napi->skb = skb;
 }
-EXPORT_SYMBOL(napi_reuse_skb);
 
 struct sk_buff *napi_get_frags(struct napi_struct *napi)
 {

             reply	other threads:[~2010-10-19 17:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19 17:12 Stephen Hemminger [this message]
2010-10-21 11:31 ` [PATCH net-next] napi: unexport napi_reuse_skb David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101019101210.1bcff4af@nehalam \
    --to=shemminger@vyatta$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox