diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2021-01-20 01:31:28 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-20 01:31:28 +0300 |
| commit | 9f23de418f7e999cc48be915c514db9c54166c0e (patch) | |
| tree | e84d8d9c2583cc9e7764991f71c3b978f65c7e2e /include/linux | |
| parent | 7eab14de73a8028f770e703962c5437a2b0dda82 (diff) | |
| parent | fc186d0a4ef8cc493a04895e620c7d55052a9d93 (diff) | |
| download | linux-9f23de418f7e999cc48be915c514db9c54166c0e.tar.xz | |
Merge branch 'net-support-sctp-crc-csum-offload-for-tunneling-packets-in-some-drivers'
Xin Long says:
====================
net: support SCTP CRC csum offload for tunneling packets in some drivers
This patchset introduces inline function skb_csum_is_sctp(), and uses it
to validate it's a sctp CRC csum offload packet, to make SCTP CRC csum
offload for tunneling packets supported in some HW drivers.
====================
Link: https://lore.kernel.org/r/cover.1610777159.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
| -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) { |
