diff options
| author | David S. Miller <davem@davemloft.net> | 2023-05-19 08:37:37 +0100 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2023-05-19 08:37:37 +0100 |
| commit | 2897041ea094f1eaf49d6b9f765c11a91c0d5dbf (patch) | |
| tree | 94335ef569a05c1ab02491164be8c3ba19500053 /include/linux | |
| parent | 7e01c7f7046efc2c7c192c3619db43292b98e997 (diff) | |
| parent | 74836ec828fe17b63f2006fdbf53311d691396bf (diff) | |
Merge branch 'tls-fixes'
Jakub Kicinski says:
====================
tls: rx: strp: fix inline crypto offload
The local strparser version I added to TLS does not preserve
decryption status, which breaks inline crypto (NIC offload).
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/skbuff.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 738776ab8838..0b40417457cd 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1587,6 +1587,16 @@ static inline void skb_copy_hash(struct sk_buff *to, const struct sk_buff *from) to->l4_hash = from->l4_hash; }; +static inline int skb_cmp_decrypted(const struct sk_buff *skb1, + const struct sk_buff *skb2) +{ +#ifdef CONFIG_TLS_DEVICE + return skb2->decrypted - skb1->decrypted; +#else + return 0; +#endif +} + static inline void skb_copy_decrypted(struct sk_buff *to, const struct sk_buff *from) { |
