Go to file
Ido Schimmel 77430db000 bridge: Add backup nexthop ID support
Extend the bridge and ip utilities to set and show the backup nexthop ID
bridge port attribute. A value of 0 (default) disables the feature, in
which case the attribute is not printed since it is not emitted by the
kernel.

Example:

 # bridge -d link show dev swp1 | grep -o "backup_nhid [0-9]*"
 # bridge -d -j -p link show dev swp1 | jq '.[]["backup_nhid"]'
 null

 # bridge link set dev swp1 backup_nhid 10
 # bridge -d link show dev swp1 | grep -o "backup_nhid [0-9]*"
 backup_nhid 10
 # bridge -d -j -p link show dev swp1 | jq '.[]["backup_nhid"]'
 10

 # bridge link set dev swp1 backup_nhid 0
 # bridge -d link show dev swp1 | grep -o "backup_nhid [0-9]*"
 # bridge -d -j -p link show dev swp1 | jq '.[]["backup_nhid"]'
 null

 # ip -d link show dev swp1 | grep -o "backup_nhid [0-9]*"
 # ip -d -j -p lin show dev swp1 | jq '.[]["linkinfo"]["info_slave_data"]["backup_nhid"]'
 null

 # ip link set dev swp1 type bridge_slave backup_nhid 10
 # ip -d link show dev swp1 | grep -o "backup_nhid [0-9]*"
 backup_nhid 10
 # ip -d -j -p lin show dev swp1 | jq '.[]["linkinfo"]["info_slave_data"]["backup_nhid"]'
 10

 # ip link set dev swp1 type bridge_slave backup_nhid 0
 # ip -d link show dev swp1 | grep -o "backup_nhid [0-9]*"
 # ip -d -j -p lin show dev swp1 | jq '.[]["linkinfo"]["info_slave_data"]["backup_nhid"]'
 null

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
2023-08-04 09:09:43 -06:00
bash-completion tc: remove support for rr qdisc 2023-01-11 09:14:29 -08:00
bridge bridge: Add backup nexthop ID support 2023-08-04 09:09:43 -06:00
dcb dcb: fully initialize flag table 2023-06-28 16:31:33 -07:00
devlink iproute2: optimize code and fix some mem-leak risk 2023-05-11 14:15:12 -07:00
doc/actions doc: fix 'infact' --> 'in fact' typo 2022-05-13 16:34:09 -07:00
etc/iproute2 Add Open/R to rt_protos 2021-03-30 03:04:09 +00:00
examples/bpf examples/bpf: add bpf examples with BTF defined maps 2020-11-24 22:14:08 -07:00
genl treewide: fix indentation 2023-06-05 12:49:34 -06:00
include Merge remote-tracking branch 'main/main' into next 2023-08-02 09:28:53 -06:00
ip bridge: Add backup nexthop ID support 2023-08-04 09:09:43 -06:00
lib Read configuration files from /etc and /usr 2023-07-26 09:06:03 -07:00
man bridge: Add backup nexthop ID support 2023-08-04 09:09:43 -06:00
misc misc/ifstat: fix incorrect output data in json mode 2023-07-24 18:23:48 -07:00
netem netem: add SPDX license header 2023-01-14 09:00:34 -08:00
rdma Merge git://git.kernel.org/pub/scm/network/iproute2/iproute2-next 2023-06-28 08:20:57 -07:00
schema bridge: add json schema for bridge fdb show 2016-07-20 12:02:02 -07:00
tc Read configuration files from /etc and /usr 2023-07-26 09:06:03 -07:00
testsuite testsuite: fix testsuite build failure when iproute build without libcap-devel 2023-02-17 17:40:42 -08:00
tipc tipc: use SPDX 2023-01-14 09:00:34 -08:00
vdpa vdpa: propagate error from cmd_dev_vstats_show() 2023-05-30 12:25:13 -07:00
.clang-format clang-format: add configuration file 2019-01-17 13:38:23 -08:00
.gitignore Remove leftovers from removed Latex documentation 2018-02-13 16:43:19 -08:00
.mailmap mailmap: map David's mail address 2019-05-15 09:50:42 -07:00
configure configure: Remove include <sys/stat.h> 2022-12-29 08:43:52 -08:00
COPYING Update address of FSF in license 2008-03-08 13:31:03 -08:00
CREDITS CREDITS: add file 2023-05-13 19:25:04 -07:00
MAINTAINERS Add MAINTAINERS file 2023-05-12 15:51:53 -07:00
Makefile Read configuration files from /etc and /usr 2023-07-26 09:06:03 -07:00
README CREDITS: add file 2023-05-13 19:25:04 -07:00
README.devel README: update location of git repositories, remove broken info link 2018-02-13 16:42:51 -08:00

This is a set of utilities for Linux networking.

Information:
    https://wiki.linuxfoundation.org/networking/iproute2

Download:
    http://www.kernel.org/pub/linux/utils/net/iproute2/

Stable version repository:
    git://git.kernel.org/pub/scm/network/iproute2/iproute2.git

Development repository:
    git://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git

How to compile this.
--------------------
1. libdbm

arpd needs to have the berkeleydb development libraries. For Debian
users this is the package with a name like libdbX.X-dev.
DBM_INCLUDE points to the directory with db_185.h which
is the include file used by arpd to get to the old format Berkeley
database routines.  Often this is in the db-devel package.

2. make

The makefile will automatically build a config.mk file which
contains definitions of libraries that may or may not be available
on the system such as: ATM, ELF, MNL, and SELINUX.

3. include/uapi

This package includes matching sanitized kernel headers because
the build environment may not have up to date versions. See Makefile
if you have special requirements and need to point at different
kernel include files.

Stephen Hemminger
stephen@networkplumber.org

David Ahern
dsahern@gmail.com