Commit 983a73da authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Steffen Klassert

xfrm: Pass UDP encapsulation in TX packet offload

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

Fixes: 89edf402 ("xfrm: Support UDP encapsulation in packet offload mode")
CC: Steffen Klassert <steffen.klassert@secunet.com>
Reported-by: default avatarMike Yu <yumike@google.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 1982a2a0
...@@ -407,7 +407,7 @@ bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) ...@@ -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 xfrm_dst *xdst = (struct xfrm_dst *)dst;
struct net_device *dev = x->xso.dev; struct net_device *dev = x->xso.dev;
if (!x->type_offload || x->encap) if (!x->type_offload)
return false; return false;
if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET || if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment