diff options
author | Xin Long <lucien.xin@gmail.com> | 2021-01-16 14:13:37 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-19 14:31:25 -0800 |
commit | fa82117010430aff2ce86400f7328f55a31b48a6 (patch) | |
tree | de95fed2c5d6ed2760f4cf362ce9941ee2d1fc6c /include/linux/skbuff.h | |
parent | 7eab14de73a8028f770e703962c5437a2b0dda82 (diff) | |
download | linux-stable-fa82117010430aff2ce86400f7328f55a31b48a6.tar.gz linux-stable-fa82117010430aff2ce86400f7328f55a31b48a6.tar.bz2 linux-stable-fa82117010430aff2ce86400f7328f55a31b48a6.zip |
net: add inline function skb_csum_is_sctp
This patch is to define a inline function skb_csum_is_sctp(), and
also replace all places where it checks if it's a SCTP CSUM skb.
This function would be used later in many networking drivers in
the following patches.
Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index c9568cf60c2a..46f901adf1a8 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -4621,6 +4621,11 @@ static inline void skb_reset_redirect(struct sk_buff *skb) #endif } +static inline bool skb_csum_is_sctp(struct sk_buff *skb) +{ + return skb->csum_not_inet; +} + static inline void skb_set_kcov_handle(struct sk_buff *skb, const u64 kcov_handle) { |