Commit 4cc7f68d authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

net: Reexport sock_alloc_send_pskb

The function sock_alloc_send_pskb is completely useless if not
exported since most of the code in it won't be used as is.  In
fact, this code has already been duplicated in the tun driver.

Now that we need accounting in the tun driver, we can in fact
use this function as is.  So this patch marks it for export again.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9a279bcb
...@@ -945,6 +945,11 @@ extern struct sk_buff *sock_alloc_send_skb(struct sock *sk, ...@@ -945,6 +945,11 @@ extern struct sk_buff *sock_alloc_send_skb(struct sock *sk,
unsigned long size, unsigned long size,
int noblock, int noblock,
int *errcode); int *errcode);
extern struct sk_buff *sock_alloc_send_pskb(struct sock *sk,
unsigned long header_len,
unsigned long data_len,
int noblock,
int *errcode);
extern void *sock_kmalloc(struct sock *sk, int size, extern void *sock_kmalloc(struct sock *sk, int size,
gfp_t priority); gfp_t priority);
extern void sock_kfree_s(struct sock *sk, void *mem, int size); extern void sock_kfree_s(struct sock *sk, void *mem, int size);
......
...@@ -1254,10 +1254,9 @@ static long sock_wait_for_wmem(struct sock * sk, long timeo) ...@@ -1254,10 +1254,9 @@ static long sock_wait_for_wmem(struct sock * sk, long timeo)
* Generic send/receive buffer handlers * Generic send/receive buffer handlers
*/ */
static struct sk_buff *sock_alloc_send_pskb(struct sock *sk, struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
unsigned long header_len, unsigned long data_len, int noblock,
unsigned long data_len, int *errcode)
int noblock, int *errcode)
{ {
struct sk_buff *skb; struct sk_buff *skb;
gfp_t gfp_mask; gfp_t gfp_mask;
...@@ -1337,6 +1336,7 @@ static struct sk_buff *sock_alloc_send_pskb(struct sock *sk, ...@@ -1337,6 +1336,7 @@ static struct sk_buff *sock_alloc_send_pskb(struct sock *sk,
*errcode = err; *errcode = err;
return NULL; return NULL;
} }
EXPORT_SYMBOL(sock_alloc_send_pskb);
struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size,
int noblock, int *errcode) int noblock, int *errcode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment