diff options
author | David S. Miller <davem@davemloft.net> | 2017-06-13 13:52:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-13 13:52:37 -0400 |
commit | 0e74008b668febb7ae024c7ee04b30dcbd1f1efd (patch) | |
tree | 5855fc175486d4f4b1a79cbaaf26b5967569e584 /include/linux/skbuff.h | |
parent | 5952b0200e9a0b0bfcc367d03a8caeb53e42545e (diff) | |
parent | 4524667b1e6801a92a4de066788e558b71fe323a (diff) | |
download | lwn-0e74008b668febb7ae024c7ee04b30dcbd1f1efd.tar.gz lwn-0e74008b668febb7ae024c7ee04b30dcbd1f1efd.zip |
Merge tag 'mac80211-next-for-davem-2017-06-13' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Johannes Berg says:
====================
A couple of weeks worth of updates - looks like things are quiet:
* merged net-next back to get a patch from net that another patch
here depends on
* various small improvements/cleanups across the board
* 4-way handshake offload (many thanks to Arend for shepherding that)
* mesh CSA/DFS support in mac80211
* the skb_put_zero() we discussed previously
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index d66d4feaac86..1151b50892d1 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1904,6 +1904,15 @@ static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len) return tmp; } +static inline unsigned char *skb_put_zero(struct sk_buff *skb, unsigned int len) +{ + unsigned char *tmp = skb_put(skb, len); + + memset(tmp, 0, len); + + return tmp; +} + unsigned char *skb_push(struct sk_buff *skb, unsigned int len); static inline unsigned char *__skb_push(struct sk_buff *skb, unsigned int len) { |