Skip to content

RFC Support for fdb ECMP nexthop groups

Roopa Prabhu netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5nexthop: support for fdb ecmp nexthopsinclude/net/nexthop.h include/uapi/linux/nexthop.h net/ipv4/nexthop.c+93 -233 replies
2/5vxlan: ecmp support for mac fdb entriesdrivers/net/vxlan.c include/uapi/linux/neighbour.h+227 -602 replies
3/5nexthop: add support for notifiersinclude/net/netns/nexthop.h include/net/nexthop.h net/ipv4/nexthop.c+40 -00 replies
4/5vxlan: support for nexthop notifiersdrivers/net/vxlan.c+33 -30 replies
5/5selftests: net: add fdb nexthop teststools/testing/selftests/net/fib_nexthops.sh+75 -21 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH net-next 0/5] Support for fdb ECMP nexthop groups

From: Roopa Prabhu <[email protected]>

This series introduces ecmp nexthops and nexthop groups for mac fdb entries. In subsequent patches this is used by the vxlan driver fdb entries. The use case is E-VPN multihoming [1,2,3] which requires bridged vxlan traffic to be load balanced to remote switches (vteps) belonging to the same multi-homed ethernet segment (This is analogous to a multi-homed LAG but over vxlan).

Changes include new nexthop flag NHA_FDB for nexthops referenced by fdb entries. These nexthops only have ip. The patches make sure that routes dont reference such nexthops.

example:
$ip nexthop add id 12 via 172.16.1.2 fdb
$ip nexthop add id 13 via 172.16.1.3 fdb
$ip nexthop add id 102 group 12/13 fdb

$bridge fdb add 02:02:00:00:00:13 dev vxlan1000 nhid 101 self

[1] E-VPN https://tools.ietf.org/html/rfc7432
[2] E-VPN VxLAN: https://tools.ietf.org/html/rfc8365
[3] LPC talk with mention of nexthop groups for L2 ecmp
http://vger.kernel.org/lpc_net2018_talks/scaling_bridge_fdb_database_slidesV3.pdf

Roopa Prabhu (5):
nexthop: support for fdb ecmp nexthops
vxlan: ecmp support for mac fdb entries
nexthop: add support for notifiers
vxlan: support for nexthop notifiers
selftests: net: add fdb nexthop tests

 drivers/net/vxlan.c                         | 319 ++++++++++++++++++++++------
 include/net/netns/nexthop.h                 |   1 +
 include/net/nexthop.h                       |  26 +++
 include/uapi/linux/neighbour.h              |   1 +
 include/uapi/linux/nexthop.h                |   1 +
 net/ipv4/nexthop.c                          | 127 +++++++++--
 tools/testing/selftests/net/fib_nexthops.sh |  77 ++++++-
 7 files changed, 464 insertions(+), 88 deletions(-)
Signature · 1 line
2.1.4