crypto: chelsio - Inline single pdu only

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>
This commit is contained in:
Atul Gupta 2019-01-17 09:19:19 -08:00 committed by Herbert Xu
parent 4da66b758b
commit 27c6feb0fb

View 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;
}