Skip to content

Commit

Permalink
xfrm: Pass UDP encapsulation in TX packet offload
Browse files Browse the repository at this point in the history
[ Upstream commit 983a73d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
rleon authored and Sasha Levin committed Mar 15, 2024
1 parent 4aa935c commit 104ecbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/xfrm/xfrm_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 104ecbf

Please sign in to comment.