diff options
| author | David S. Miller <davem@davemloft.net> | 2013-11-07 19:29:06 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-11-07 19:29:06 -0500 |
| commit | 0b2e2d36d152a94082f05ad226a290d765ffb7d2 (patch) | |
| tree | e4db3f844522adf5a62a7ce1fc3cee5cd177673a /include | |
| parent | b5ad795e52dae6e9f88b193a5e779b70005d005c (diff) | |
| parent | bc32383cd6496d595e6a25cdc7cff1da6b694462 (diff) | |
Merge branch 'pskb_put'
Mathias Krause says:
====================
move pskb_put (was: IPsec improvements)
This series moves pskb_put() to the core code, making the code
duplication in caif obsolete (patches 1 and 2).
Patch 3 fixes a few kernel-doc issues.
v2 of this series does no longer contain the skb_cow_data() patch and
therefore no performance improvements for IPsec. The change is still
under discussion, but otherwise independent from the above changes.
Please apply!
v2:
- kernel-doc fixes for pskb_put, as noticed by Ben
- dropped skb_cow_data patch as it's still discussed
- added a kernel-doc fixes patch (patch 3)
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/skbuff.h | 3 | ||||
| -rw-r--r-- | include/net/esp.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 2e153b69d318..036ec7d8a83a 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -1357,7 +1357,7 @@ static inline void __skb_fill_page_desc(struct sk_buff *skb, int i, | |||
| 1357 | * @size: the length of the data | 1357 | * @size: the length of the data |
| 1358 | * | 1358 | * |
| 1359 | * As per __skb_fill_page_desc() -- initialises the @i'th fragment of | 1359 | * As per __skb_fill_page_desc() -- initialises the @i'th fragment of |
| 1360 | * @skb to point to &size bytes at offset @off within @page. In | 1360 | * @skb to point to @size bytes at offset @off within @page. In |
| 1361 | * addition updates @skb such that @i is the last fragment. | 1361 | * addition updates @skb such that @i is the last fragment. |
| 1362 | * | 1362 | * |
| 1363 | * Does not take any additional reference on the fragment. | 1363 | * Does not take any additional reference on the fragment. |
| @@ -1417,6 +1417,7 @@ static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) | |||
| 1417 | /* | 1417 | /* |
| 1418 | * Add data to an sk_buff | 1418 | * Add data to an sk_buff |
| 1419 | */ | 1419 | */ |
| 1420 | unsigned char *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len); | ||
| 1420 | unsigned char *skb_put(struct sk_buff *skb, unsigned int len); | 1421 | unsigned char *skb_put(struct sk_buff *skb, unsigned int len); |
| 1421 | static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len) | 1422 | static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len) |
| 1422 | { | 1423 | { |
diff --git a/include/net/esp.h b/include/net/esp.h index c92213c38312..a43be85aedc4 100644 --- a/include/net/esp.h +++ b/include/net/esp.h | |||
| @@ -3,8 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/skbuff.h> | 4 | #include <linux/skbuff.h> |
| 5 | 5 | ||
| 6 | void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len); | ||
| 7 | |||
| 8 | struct ip_esp_hdr; | 6 | struct ip_esp_hdr; |
| 9 | 7 | ||
| 10 | static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb) | 8 | static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb) |
