Go to file
Jiri Pirko 4cb0bec374 devlink: add support for linecard show and type set
Introduce a new object "lc" to add devlink support for line cards with
two commands:
show - to get the info about the line card state, list of supported
       types as reported by kernel/driver.
set - to set/clear the line card type.

Example:
$ devlink lc
pci/0000:01:00.0:
  lc 1 state unprovisioned
    supported_types:
       16x100G
  lc 2 state unprovisioned
    supported_types:
       16x100G
  lc 3 state unprovisioned
    supported_types:
       16x100G
  lc 4 state unprovisioned
    supported_types:
       16x100G
  lc 5 state unprovisioned
    supported_types:
       16x100G
  lc 6 state unprovisioned
    supported_types:
       16x100G
  lc 7 state unprovisioned
    supported_types:
       16x100G
  lc 8 state unprovisioned
    supported_types:
       16x100G

To provision the slot #8:

$ devlink lc set pci/0000:01:00.0 lc 8 type 16x100G
$ devlink lc show pci/0000:01:00.0 lc 8
pci/0000:01:00.0:
  lc 8 state active type 16x100G
    supported_types:
       16x100G

To uprovision the slot #8:

$ devlink lc set pci/0000:01:00.0 lc 8 notype

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
2022-07-21 09:19:40 -06:00
bash-completion devlink: add support for linecard show and type set 2022-07-21 09:19:40 -06:00
bridge bridge: fdb: add flush [no]offloaded entry matching 2022-06-10 09:02:00 -06:00
dcb Makefile: move HAVE_MNL check to top-level Makefile 2022-03-12 09:00:56 -07:00
devlink devlink: add support for linecard show and type set 2022-07-21 09:19:40 -06: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 genl: fix duplicate include guard 2022-06-17 10:08:19 -07:00
include Update kernel headers 2022-07-21 09:16:51 -06:00
ip libbpf: add xdp program name support 2022-07-08 09:09:13 -06:00
lib libbpf: add xdp program name support 2022-07-08 09:09:13 -06:00
man devlink: add support for linecard show and type set 2022-07-21 09:19:40 -06:00
misc ss: Shorter display format for TLS zerocopy sendfile 2022-06-12 09:51:34 -06:00
netem doc: remove trailing whitespace 2018-12-19 12:02:38 -08:00
rdma Makefile: move HAVE_MNL check to top-level Makefile 2022-03-12 09:00:56 -07:00
schema bridge: add json schema for bridge fdb show 2016-07-20 12:02:02 -07:00
tc tc: declaration hides parameter 2022-06-17 10:14:40 -07:00
testsuite testsuite: link xfrm delete no if_id test 2022-03-15 11:35:03 -07:00
tipc tipc: fix keylen check 2022-05-17 12:57:45 -07:00
vdpa vdpa: Add support for reading vdpa device statistics 2022-06-19 10:09:32 -06: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: add check_libtirpc() 2022-03-23 21:24:18 -06:00
COPYING Update address of FSF in license 2008-03-08 13:31:03 -08:00
Makefile Makefile: move HAVE_MNL check to top-level Makefile 2022-03-12 09:00:56 -07:00
README README: remove doc instructions 2021-03-20 09:29:02 -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

Alexey Kuznetsov
kuznet@ms2.inr.ac.ru