Skip to content

net: Add saddr op to l3mdev and vrf

David Ahern netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v15 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: Rename FLOWI_FLAG_VRFSRC to FLOWI_FLAG_L3MDEV_SRCdrivers/net/vrf.c include/net/flow.h include/net/route.h +1 more+5 -50 replies
2/5net: Add netif_is_l3_slavedrivers/net/vrf.c include/linux/netdevice.h net/l3mdev/l3mdev.c+15 -100 replies
3/5net: Refactor path selection in __ip_route_output_key_hashinclude/net/ip_fib.h net/ipv4/fib_semantics.c net/ipv4/route.c+24 -150 replies
4/5net: Add source address lookup op for VRFdrivers/net/vrf.c include/net/l3mdev.h include/net/route.h +1 more+69 -220 replies
5/5net: Add l3mdev saddr lookup to raw_sendmsgnet/ipv4/raw.c+6 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net-next 0/5 v2] net: Add saddr op to l3mdev and vrf

First 2 patches are re-sends of patches that got lost in the ethosphere Tuesday; they were part of the first round of l3mdev conversions. Next 3 handle the source address lookup for raw and datagram sockets bound to a VRF device.

The conversion to the get_saddr op also fixes locally originated TCP packets showing up at the VRF device. The use of the FLOWI_FLAG_L3MDEV_SRC flag in ip_route_connect_init was causing locally generated packets to skip the VRF device.

v2
- rebased to top of net-next per device delete fix and hash based multipath patches

David Ahern (5):
net: Rename FLOWI_FLAG_VRFSRC to FLOWI_FLAG_L3MDEV_SRC
net: Add netif_is_l3_slave
net: Refactor path selection in __ip_route_output_key_hash
net: Add source address lookup op for VRF
net: Add l3mdev saddr lookup to raw_sendmsg

 drivers/net/vrf.c         | 49 +++++++++++++++++++++++++++++++++++++++--------
 include/linux/netdevice.h |  7 +++++++
 include/net/flow.h        |  2 +-
 include/net/ip_fib.h      |  2 ++
 include/net/l3mdev.h      | 27 ++++++++++++++++++++++++++
 include/net/route.h       |  7 ++++---
 net/ipv4/fib_semantics.c  | 21 ++++++++++++++++++++
 net/ipv4/raw.c            |  8 ++++++--
 net/ipv4/route.c          | 16 +---------------
 net/ipv4/udp.c            | 22 +++------------------
 net/l3mdev/l3mdev.c       |  8 ++++----
 11 files changed, 117 insertions(+), 52 deletions(-)
Signature · 1 line
1.9.1