Skip to contentSkip to conversation

xfrm: Pass UDP encapsulation in TX packet offload

PATCH Applied Saeed Mahameed 2 participants 2 messages Jan 24, 2024 – Jan 26, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfrm: Pass UDP encapsulation in TX packet offload

From: Leon Romanovsky <[email protected]>

In addition to citied commit in Fixes line, allow UDP encapsulation in TX path too.

Fixes 89edf40220be ("xfrm: Support UDP encapsulation in packet offload mode")
CC Steffen Klassert <[email protected]>
---
 net/xfrm/xfrm_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/xfrm/xfrm_device.c +1 -1
index 3784534c9185..653e51ae3964 100644
@@ -407,7 +407,7 @@ 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 || x->encap)
+	if (!x->type_offload)
 		return false;
 
 	if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET ||
Signature · 1 line
2.43.0
maintainer Applied
#1 lore raw
Quoted 10 lines · Saeed Mahameed

From: Leon Romanovsky <[email protected]>

In addition to citied commit in Fixes line, allow UDP encapsulation in TX path too.

Fixes 89edf40220be ("xfrm: Support UDP encapsulation in packet offload mode")
CC Steffen Klassert <[email protected]>

Applied, thanks everyone!