Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95bff4b5 authored by Steffen Klassert's avatar Steffen Klassert
Browse files

xfrm: Allow to use the layer2 IPsec GSO codepath for software crypto.



We now have support for asynchronous crypto operations in the layer 2 TX
path. This was the missing part to allow the GSO codepath for software
crypto, so allow this codepath now.

Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent f53c7239
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -202,8 +202,8 @@ bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x)
	if (!x->type_offload || x->encap)
		return false;

	if ((x->xso.offload_handle && (dev == xfrm_dst_path(dst)->dev)) &&
	     !xdst->child->xfrm && x->type->get_mtu) {
	if ((!dev || (x->xso.offload_handle && (dev == xfrm_dst_path(dst)->dev))) &&
	     (!xdst->child->xfrm && x->type->get_mtu)) {
		mtu = x->type->get_mtu(x, xdst->child_mtu_cached);

		if (skb->len <= mtu)