napi: unexport napi_reuse_skb
Subsystems (2)
PATCH 1/1 napi: unexport napi_reuse_skb
The function napi_reuse_skb is only used inside core.
Signed-off-by Stephen Hemminger <[email protected]>
--- include/linux/netdevice.h | 2 -- net/core/dev.c | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-)
include/linux/netdevice.h +0 -2
@@ -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,
net/core/dev.c +1 -2
@@ -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) {
From: Stephen Hemminger <[email protected]>
Date: Tue, 19 Oct 2010 10:12:10 -0700
Quoted 3 lines
The function
napi_reuse_skbis only used inside core.Signed-off-by Stephen Hemminger <[email protected]>
Applied.