Skip to content

ipsec interfaces: fix sending with bpf_redirect() / AF_PACKET sockets

Nicolas Dichtel netdev 3 versions – Applied

Status from this message: Applied to the ipsec tree, thanks a lot!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesApplied
  2. v22 patches 1 replySuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- fix flowi info for the route lookup

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2vti[6]: fix packet tx through bpf_redirect()net/ipv4/ip_vti.c net/ipv6/ip6_vti.c+22 -40 replies
2/2xfrm interface: fix packet tx through bpf_redirect()net/xfrm/xfrm_interface.c+25 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH ipsec v3 0/2] ipsec interfaces: fix sending with bpf_redirect() / AF_PACKET sockets

Before those patches, packets sent to a vti[6]/xfrm interface via bpf_redirect() or via an AF_PACKET socket were dropped, mostly because no dst was attached.

v2 -> v3:
- fix flowi info for the route lookup

v1 -> v2:
- remove useless check against skb_dst() in xfrmi_xmit2()
- keep incrementing tx_carrier_errors in case of route lookup failure

 net/ipv4/ip_vti.c         | 13 +++++++++++--
 net/ipv6/ip6_vti.c        | 13 +++++++++++--
 net/xfrm/xfrm_interface.c | 32 +++++++++++++++++++++++++-------
 3 files changed, 47 insertions(+), 11 deletions(-)

Regards,
Nicolas