From: Atul Gupta Date: Thu, 17 Jan 2019 17:19:19 +0000 (-0800) Subject: crypto: chelsio - Inline single pdu only X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=27c6feb0fb33a665a746346e76714826a5be5d10;p=linux.git crypto: chelsio - Inline single pdu only Inline single pdu else take co-pro path Signed-off-by: Atul Gupta Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/chelsio/chcr_ipsec.c b/drivers/crypto/chelsio/chcr_ipsec.c index 4f2464654519c..0c826d0e1bfcf 100644 --- a/drivers/crypto/chelsio/chcr_ipsec.c +++ b/drivers/crypto/chelsio/chcr_ipsec.c @@ -303,6 +303,9 @@ static bool chcr_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x) if (ipv6_ext_hdr(ipv6_hdr(skb)->nexthdr)) return false; } + /* Inline single pdu */ + if (skb_shinfo(skb)->gso_size) + return false; return true; }