- 15 Oct, 2020 1 commit
-
-
zhangkaiheb@126.com authored
Signed-off-by:
kai zhang <zhangkaiheb@126.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 12 Oct, 2020 3 commits
-
-
Jan Engelhardt authored
`ip addr` when run under qemu-user-riscv64, fails. This likely is due to qemu-5.1 not doing translation of RTM_GETNSID calls. Aborting ip completely is not helpful for the user however. This patch reworks the error handling. Before: rtest:/ # ip a 2: host0@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 request send failed: Operation not supported link/ether 46:3f:2d:88:3d:db brd ff:ff:ff:ff:ff:ffrtest:/ # Afterwards: rtest:/ # ip a 2: host0@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 rtnl_send(RTM_GETNSID): Operation not supported. Continuing anyway. link/ether 46:3f:2d:88:3d:db brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 192.168.72.147/28 brd 192.168.72.159 scope global host0 valid_lft forever preferred_lft forever inet6 fe80::443f:2dff:fe88:3ddb/64 scope link valid_lft forever preferred_lft forever Signed-off-by:
Jan Engelhardt <jengelh@inai.de> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Dmitry Yakunin authored
In case of bad entries in /proc/mounts just skip cgroup cache initialization. Cgroups in output will be shown as "unreachable:cgroup_id". Fixes: d5e6ee0d ("ss: introduce cgroup2 cache and helper functions") Signed-off-by:
Dmitry Yakunin <zeil@yandex-team.ru> Reported-by:
Donald Sharp <sharpd@nvidia.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Stephen Hemminger authored
Update to snmp.h from 5.9 Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 06 Oct, 2020 2 commits
-
-
Stephen Hemminger authored
These were reported as IPv6-only and ignored: # ip address add 192.0.2.2/24 dev dummy5 noprefixroute Warning: noprefixroute option can be set only for IPv6 addresses # ip address add 224.1.1.10/24 dev dummy5 autojoin Warning: autojoin option can be set only for IPv6 addresses This enables them back for IPv4. Fixes: 9d59c86e ("iproute2: ip addr: Organize flag properties structurally") Signed-off-by:
Adel Belhouane <bugs.a.b@free.fr> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Eyal Birger authored
Used for tracking neighbour table overflows. Signed-off-by:
Eyal Birger <eyal.birger@gmail.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 01 Oct, 2020 1 commit
-
-
Kamal Heib authored
Remove the extra space between the reported ipoib attrs - use only one space instead of two. Fixes: de038993 ("iplink: Added support for the kernel IPoIB RTNL ops") Signed-off-by:
Kamal Heib <kamalheib1@gmail.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 28 Sep, 2020 2 commits
-
-
Stephen Hemminger authored
Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Jan Engelhardt authored
I observe: » make -j8 CCOPTS=-ggdb3 lib make[1]: warning: -j8 forced in submake: resetting jobserver mode. make[1]: Nothing to be done for 'all'. ip make[1]: warning: -j8 forced in submake: resetting jobserver mode. CC ipntable.o MFLAGS is a historic variable of some kind; removing it fixes the jobserver issue. Signed-off-by:
Jan Engelhardt <jengelh@inai.de> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 15 Sep, 2020 1 commit
-
-
Roman Mashak authored
Added description of link flags allmulticast, promisc and trailers. Signed-off-by:
Roman Mashak <mrv@mojatatu.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 31 Aug, 2020 1 commit
-
-
Phil Sutter authored
Indenting of 'ip link set' options below 'link-netns' was wrong, they should be on the same level as the above. While being at it, fix closing brackets in vf-specific options. Also write node/port_guid parameters in upper-case without curly braces: They are supposed to be replaced by values, not put literally. Fixes: 8589eb4e ("treewide: refactor help messages") Fixes: 5a3ec4ba ("iplink: Update usage in help message") Signed-off-by:
Phil Sutter <phil@nwl.cc> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 23 Aug, 2020 4 commits
-
-
Murali Karicheri authored
PRP support requires a proto parameter which is 0 for hsr and 1 for prp. Default is hsr and is backward compatible. Signed-off-by:
Murali Karicheri <m-karicheri2@ti.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Murali Karicheri authored
This patch enhances the iplink command to add a proto parameters to create PRP device/interface similar to HSR. Both protocols are quite similar and requires a pair of Ethernet interfaces. So re-use the existing HSR iplink command to create PRP device/interface as well. Use proto parameter to differentiate the two protocols. Signed-off-by:
Murali Karicheri <m-karicheri2@ti.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Amit Cohen authored
Similar to other print functions we need to flush buffered data in order to work with pipes and output redirects. Without it, stdout output is buffered and not written to the disk. This is useful when writing scripts that rely on devlink-monitor output. Signed-off-by:
Amit Cohen <amcohen@nvidia.com> Reviewed-by:
Ido Schimmel <idosch@nvidia.com> Reviewed-by:
Jiri Pirko <jiri@nvidia.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Sascha Hauer authored
ip maddress add|del takes a MAC address as argument, so insist on getting a length of ETH_ALEN bytes. This makes sure the passed argument is actually a MAC address and especially not an IPv4 address which was previously accepted and silently taken as a MAC address. While at it, do not print *argv in the error path as this has been modified by ll_addr_a2n() and doesn't contain the full string anymore, which can lead to misleading error messages. Also while at it, replace the hardcoded buffer size with the actual buffer size using sizeof(). Signed-off-by:
Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 16 Aug, 2020 3 commits
-
-
Stephen Hemminger authored
Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Leon Romanovsky authored
The citied commit broke the CLI output and printed ifindex/ifname instead of dev/link. Before: [leonro@vm ~]$ rdma res show qp link mlx5_0/lqpn 1 type GSI state RTS sq-psn 0 comm ib_core [leonro@vm ~]$ rdma res show cq ifindex 0 ifname rocep0s9 cqn 0 cqe 1023 users 2 poll-ctx WORKQUEUE adaptive-moderation on comm ib_core After: [leonro@vm ~]$ rdma res show qp link mlx5_0/- lqpn 1 type GSI state RTS sq-psn 0 comm [ib_core] [leonro@vm ~]$ rdma res show cq dev rocep0s9 cqn 0 cqe 1023 users 2 poll-ctx WORKQUEUE adaptive-moderation on comm [ib_core] It was missed because rdmatool mostly used in JSON mode. Fixes: b0a688a5 ("rdma: Rewrite custom JSON and prints logic to use common API") Signed-off-by:
Leon Romanovsky <leonro@nvidia.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Leon Romanovsky authored
Owner of kernel resources is printed in different format than user resources to easy with the reader by simply looking on the name. The kernel owner will have "[ ]" around the name. Before this change: [leonro@vm ~]$ rdma res show qp link rocep0s9/1 lqpn 1 type GSI state RTS sq-psn 58 comm ib_core After this change: [leonro@vm ~]$ rdma res show qp link rocep0s9/1 lqpn 1 type GSI state RTS sq-psn 58 comm [ib_core] Fixes: b0a688a5 ("rdma: Rewrite custom JSON and prints logic to use common API") Signed-off-by:
Leon Romanovsky <leonro@nvidia.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 11 Aug, 2020 1 commit
-
-
Stephen Hemminger authored
pre-rc1 version of Linux kernel headers. Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 06 Aug, 2020 4 commits
-
-
Mark Zhang authored
Document the new supported criteria of auto mode. Examples: $ rdma statistic qp set link mlx5_2/1 auto pid on $ rdma statistic qp set link mlx5_2/1 auto pid,type on Signed-off-by:
Mark Zhang <markz@mellanox.com> Reviewed-by:
Ido Kalir <idok@mellanox.com> Signed-off-by:
Leon Romanovsky <leonro@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
Mark Zhang authored
With this new criteria, QPs have different PIDs will be bound to different counters in auto mode. This can be used in combination with other criteria like "type". Examples: $ rdma statistic qp set link mlx5_2/1 auto pid on $ rdma statistic qp set link mlx5_2/1 auto type,pid on $ rdma statistic qp set link mlx5_2/1 auto off $ rdma statistic qp show link mlx5_0 qp-type UD Signed-off-by:
Mark Zhang <markz@mellanox.com> Reviewed-by:
Ido Kalir <idok@mellanox.com> Signed-off-by:
Leon Romanovsky <leonro@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
Mark Zhang authored
Update rdma_netlink.h file upto kernel commit 76251e15ea73 ("RDMA/counter: Add PID category support in auto mode") Signed-off-by:
Mark Zhang <markz@mellanox.com> Reviewed-by:
Ido Kalir <idok@mellanox.com> Signed-off-by:
Leon Romanovsky <leonro@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
David Ahern authored
Conflicts: bridge/fdb.c man/man8/bridge.8 Signed-off-by:
David Ahern <dsahern@kernel.org>
-
- 03 Aug, 2020 8 commits
-
-
Stephen Hemminger authored
-
Stephen Hemminger authored
Lnstat was trying to be different and have its own version. Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Stephen Hemminger authored
Replace the iproute2 snapshot with a version string which is autogenerated as part of the build process using git describe. This will also allow seeing if the version of the command is built from the same sources is as upstream. Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Vasundhara Volam authored
Add support for reading board serial_number to devlink info subcommand. Example: $ devlink dev info pci/0000:af:00.0 -jp { "info": { "pci/0000:af:00.0": { "driver": "bnxt_en", "serial_number": "00-10-18-FF-FE-AD-1A-00", "board.serial_number": "433551F+172300000", "versions": { "fixed": { "board.id": "7339763 Rev 0.", "asic.id": "16D7", "asic.rev": "1" }, "running": { "fw": "216.1.216.0", "fw.psid": "0.0.0", "fw.mgmt": "216.1.192.0", "fw.mgmt.api": "1.10.1", "fw.ncsi": "0.0.0.0", "fw.roce": "216.1.16.0" } } } } } Signed-off-by:
Vasundhara Volam <vasundhara-v.volam@broadcom.com> Reviewed-by:
Jiri Pirko <jiri@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
Petr Vaněk authored
This flag allows to create SA where sequence number can cycle in outbound packets if set. Signed-off-by:
Petr Vaněk <pv@excello.cz> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
David Ahern authored
Update kernel headers to commit: bd0b33b24897 ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net" ) Signed-off-by:
David Ahern <dsahern@kernel.org>
-
Danielle Ratson authored
Add a new attribute that indicates the port split ability to devlink port. Expose the attribute to user space as RO value, for example: $devlink port show swp1 pci/0000:03:00.0/61: type eth netdev swp1 flavour physical port 1 splittable false lanes 1 Signed-off-by:
Danielle Ratson <danieller@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
Danielle Ratson authored
Add a new attribute that indicates the port's number of lanes to devlink port. Expose the attribute to user space as RO value, for example: $devlink port show swp1 pci/0000:03:00.0/61: type eth netdev swp1 flavour physical port 1 lanes 1 Signed-off-by:
Danielle Ratson <danieller@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
- 30 Jul, 2020 1 commit
-
-
Julien Fortin authored
bridge json fdb show is printing an incorrect / non-machine readable value, when using -j (json output) we are expecting machine readable data that shouldn't require special handling/parsing. $ bridge -j fdb show | \ python -c \ 'import sys,json;print(json.dumps(json.loads(sys.stdin.read()),indent=4))' [ { "master": "br0", "mac": "56:23:28:4f:4f:e5", "flags": [], "ifname": "vx0", "state": "state=0x80" <<<<<<<<< with the patch: "state": "0x80" } ] Fixes: c7c1a1ef ("bridge: colorize output and use JSON print library") Signed-off-by:
Julien Fortin <julien@cumulusnetworks.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 29 Jul, 2020 1 commit
-
-
Briana Oursler authored
Add space after format specifier in print_string call. Fixes broken qdisc tests within tdc testing suite. Per suggestion from Petr Machata, remove a space and change spacing in tc/q_event.c to complete the fix. Tested fix in tdc using: ./tdc.py -c qdisc All qdisc RED tests return ok. Fixes: d0e45043 ("tc: q_red: Add support for qevents "mark" and "early_drop") Signed-off-by:
Briana Oursler <briana.oursler@gmail.com> Tested-by:
Petr Machata <petrm@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
- 27 Jul, 2020 2 commits
-
-
Anton Danilov authored
In most of cases a user wants to see only the dynamic mac addresses in the fdb output. But currently the 'fdb show' displays tons of various self entries, those only waste the output without any useful goal. New option 'dynamic' for 'show' and 'get' commands forces display only relevant records. Signed-off-by:
Anton Danilov <littlesmilingcloud@gmail.com> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
Matthieu Baerts authored
According to 'ip mptcp help', 'endpoint show' can accept no argument: ip mptcp endpoint show [ id ID ] It makes sense to print all endpoints when no filter is used. So here if the following command is used, all endpoints are printed: ip mptcp endpoint show Same as: ip mptcp endpoint Fixes: 7e0767cd ("add support for mptcp netlink interface") Signed-off-by:
Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-
- 23 Jul, 2020 4 commits
-
-
David Ahern authored
Moshe Shemesh says: ==================== Implement commands for interaction with per-port devlink health reporters. To do this, adapt devlink-health for usage of port handles with any existing devlink-health subcommands. Add devlink-port health subcommand as an alias for devlink-health. ==================== Signed-off-by:
David Ahern <dsahern@kernel.org>
-
Vladyslav Tarasiuk authored
Describe support for per-port reporters in devlink-health and devlink-port commands. Signed-off-by:
Vladyslav Tarasiuk <vladyslavt@mellanox.com> Reviewed-by:
Moshe Shemesh <moshe@mellanox.com> Reviewed-by:
Jiri Pirko <jiri@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
Vladyslav Tarasiuk authored
Add devlink port health show subcommand which displays information about specified port reporter or all present port reporters as in the example. Device and port reporters can be distinguished by a handle being used. Make other devlink-health subcommands be aliased by devlink port health. Refactor devlink-health commands for usage of port handles in order to interact with port reporters. Change devlink health show output to dump information about both device and port reporters with correct handles. Example: $ devlink health show pci/0000:00:0b.0: reporter fw state healthy error 0 recover 0 auto_dump true reporter fw_fatal state healthy error 0 recover 0 grace_period 1200000 auto_recover true auto_dump true pci/0000:00:0b.0/1: reporter tx state healthy error 0 recover 0 grace_period 10000 auto_recover true auto_dump true reporter rx state healthy error 0 recover 0 grace_period 10000 auto_recover true auto_dump true $ devlink health show pci/0000:00:0b.0/1 reporter rx Which is equivalent to: $ devlink port health show pci/0000:00:0b.0/1 reporter rx pci/0000:00:0b.0/1: reporter rx state healthy error 0 recover 0 grace_period 10000 auto_recover true auto_dump true $ devlink port health show pci/0000:00:0b.0/1 reporter rx -j --pretty { "health": { "pci/0000:00:0b.0/1": [ { "reporter": "rx", "state": "healthy", "error": 0, "recover": 0, "grace_period": 500, "auto_recover": true, "auto_dump": true } ] } } $ devlink health set pci/0000:00:0b.0/1 reporter rx grace_period 5000 Which is equivalent to: $ devlink port health set pci/0000:00:0b.0/1 reporter rx grace_period 5000 $ devlink port health show pci/0000:00:0b.0/1 reporter rx pci/0000:00:0b.0/1: reporter rx state healthy error 0 recover 0 grace_period 5000 auto_recover true auto_dump true Signed-off-by:
Vladyslav Tarasiuk <vladyslavt@mellanox.com> Reviewed-by:
Moshe Shemesh <moshe@mellanox.com> Reviewed-by:
Jiri Pirko <jiri@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
Vladyslav Tarasiuk authored
Add a capability of printing port handles for arrays in non-JSON format in devlink-health manner. Signed-off-by:
Vladyslav Tarasiuk <vladyslavt@mellanox.com> Reviewed-by:
Jiri Pirko <jiri@mellanox.com> Signed-off-by:
David Ahern <dsahern@kernel.org>
-
- 21 Jul, 2020 1 commit
-
-
Stephen Hemminger authored
Upstrean 5.8-rc6 changes. Signed-off-by:
Stephen Hemminger <stephen@networkplumber.org>
-