developer | 4f0d2ba | 2023-08-21 17:33:25 +0800 | [diff] [blame] | 1 | --- a/net/xfrm/xfrm_output.c |
| 2 | +++ b/net/xfrm/xfrm_output.c |
| 3 | @@ -410,7 +410,7 @@ static int xfrm_output_one(struct sk_buf |
| 4 | struct xfrm_state *x = dst->xfrm; |
| 5 | struct net *net = xs_net(x); |
| 6 | |
| 7 | - if (err <= 0 || x->xso.type == XFRM_DEV_OFFLOAD_PACKET) |
| 8 | + if (err <= 0) |
| 9 | goto resume; |
| 10 | |
| 11 | do { |
| 12 | @@ -568,16 +568,6 @@ int xfrm_output(struct sock *sk, struct |
| 13 | struct xfrm_state *x = skb_dst(skb)->xfrm; |
| 14 | int err; |
| 15 | |
| 16 | - if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET) { |
| 17 | - if (!xfrm_dev_offload_ok(skb, x)) { |
| 18 | - XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); |
| 19 | - kfree_skb(skb); |
| 20 | - return -EHOSTUNREACH; |
| 21 | - } |
| 22 | - |
| 23 | - return xfrm_output_resume(skb, 0); |
| 24 | - } |
| 25 | - |
| 26 | secpath_reset(skb); |
| 27 | |
| 28 | if (xfrm_dev_offload_ok(skb, x)) { |