Message ID | 20240319110151.409825-3-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 773bb766ca4a05bf363203030b72b10088869224 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/2] net: esp: fix bad handling of pages from page_pool | expand |
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 653e51ae3964..6346690d5c69 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -407,7 +407,8 @@ bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) struct xfrm_dst *xdst = (struct xfrm_dst *)dst; struct net_device *dev = x->xso.dev; - if (!x->type_offload) + if (!x->type_offload || + (x->xso.type == XFRM_DEV_OFFLOAD_UNSPECIFIED && x->encap)) return false; if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET ||