diff options
author | Mathias Krause <mathias.krause@secunet.com> | 2013-11-07 08:18:24 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-07 19:28:58 -0500 |
commit | 0c7ddf36c29c3ce12f2d2931a357ccaa0861035a (patch) | |
tree | 98d09efb875438c09ba8eea351e11c15eff7cc59 /net/xfrm | |
parent | b5ad795e52dae6e9f88b193a5e779b70005d005c (diff) |
net: move pskb_put() to core code
This function has usage beside IPsec so move it to the core skbuff code.
While doing so, give it some documentation and change its return type to
'unsigned char *' to be in line with skb_put().
Signed-off-by: Mathias Krause <mathias.krause@secunet.com>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_algo.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index ab4ef72f0b1d..debe733386f8 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c | |||
@@ -802,17 +802,4 @@ int xfrm_count_pfkey_enc_supported(void) | |||
802 | } | 802 | } |
803 | EXPORT_SYMBOL_GPL(xfrm_count_pfkey_enc_supported); | 803 | EXPORT_SYMBOL_GPL(xfrm_count_pfkey_enc_supported); |
804 | 804 | ||
805 | #if defined(CONFIG_INET_ESP) || defined(CONFIG_INET_ESP_MODULE) || defined(CONFIG_INET6_ESP) || defined(CONFIG_INET6_ESP_MODULE) | ||
806 | |||
807 | void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len) | ||
808 | { | ||
809 | if (tail != skb) { | ||
810 | skb->data_len += len; | ||
811 | skb->len += len; | ||
812 | } | ||
813 | return skb_put(tail, len); | ||
814 | } | ||
815 | EXPORT_SYMBOL_GPL(pskb_put); | ||
816 | #endif | ||
817 | |||
818 | MODULE_LICENSE("GPL"); | 805 | MODULE_LICENSE("GPL"); |