Skip to content

net: convert ipv6_stub to ip6_dst_lookup_flow

Sabrina Dubroca netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: ipv6: add net argument to ip6_dst_lookup_flowinclude/net/ipv6.h net/dccp/ipv6.c net/ipv6/af_inet6.c +8 more+19 -190 replies
2/2net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookupdrivers/infiniband/core/addr.c drivers/infiniband/sw/rxe/rxe_net.c drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c +8 more+39 -350 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH net 0/2] net: convert ipv6_stub to ip6_dst_lookup_flow

Xiumei Mu reported a bug in a VXLAN over IPsec setup:

IPv6 | ESP | VXLAN

Using this setup, packets go out unencrypted, because VXLAN over IPv6 gets its route from ipv6_stub->ipv6_dst_lookup (in vxlan6_get_route), which doesn't perform an XFRM lookup.

This patchset first makes ip6_dst_lookup_flow suitable for some existing users of ipv6_stub->ipv6_dst_lookup by adding a 'net' argument, then converts all those users.

Sabrina Dubroca (2):
net: ipv6: add net argument to ip6_dst_lookup_flow
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup

 drivers/infiniband/core/addr.c                      |  7 +++----
 drivers/infiniband/sw/rxe/rxe_net.c                 |  8 +++++---
 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c |  8 ++++----
 drivers/net/geneve.c                                |  4 +++-
 drivers/net/vxlan.c                                 |  8 +++-----
 include/net/ipv6.h                                  |  2 +-
 include/net/ipv6_stubs.h                            |  6 ++++--
 net/core/lwt_bpf.c                                  |  4 +---
 net/dccp/ipv6.c                                     |  6 +++---
 net/ipv6/addrconf_core.c                            | 11 ++++++-----
 net/ipv6/af_inet6.c                                 |  4 ++--
 net/ipv6/datagram.c                                 |  2 +-
 net/ipv6/inet6_connection_sock.c                    |  4 ++--
 net/ipv6/ip6_output.c                               |  8 ++++----
 net/ipv6/raw.c                                      |  2 +-
 net/ipv6/syncookies.c                               |  2 +-
 net/ipv6/tcp_ipv6.c                                 |  4 ++--
 net/l2tp/l2tp_ip6.c                                 |  2 +-
 net/mpls/af_mpls.c                                  |  7 +++----
 net/sctp/ipv6.c                                     |  4 ++--
 net/tipc/udp_media.c                                |  9 ++++++---
 21 files changed, 58 insertions(+), 54 deletions(-)
Signature · 1 line
2.23.0