crypto: chelsio - Inline single pdu only
authorAtul Gupta <atul.gupta@chelsio.com>
Thu, 17 Jan 2019 17:19:19 +0000 (09:19 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Jan 2019 10:41:51 +0000 (18:41 +0800)
Inline single pdu else take co-pro path

Signed-off-by: Atul Gupta <atul.gupta@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_ipsec.c

index 4f2464654519ccfb515fe4d331f18b2222d73ea9..0c826d0e1bfcf0fe3c7a700f7ea72d7933e1dd4f 100644 (file)
@@ -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;
 }