Skip to content

Commit 983a73d

Browse files
rleonklassert
authored andcommitted
xfrm: Pass UDP encapsulation in TX packet offload
In addition to citied commit in Fixes line, allow UDP encapsulation in TX path too. Fixes: 89edf40 ("xfrm: Support UDP encapsulation in packet offload mode") CC: Steffen Klassert <steffen.klassert@secunet.com> Reported-by: Mike Yu <yumike@google.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
1 parent 1982a2a commit 983a73d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/xfrm/xfrm_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x)
407407
struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
408408
struct net_device *dev = x->xso.dev;
409409

410-
if (!x->type_offload || x->encap)
410+
if (!x->type_offload)
411411
return false;
412412

413413
if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET ||

0 commit comments

Comments
 (0)