]> git.proxmox.com Git - mirror_iproute2.git/commit - rdma/link.c
rdma: Fix representation of PortInfo CapabilityMask
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 16 Sep 2018 17:28:13 +0000 (20:28 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 17 Sep 2018 15:59:13 +0000 (08:59 -0700)
commitd090fbf33bd15d82978596920b07616aa119ac2f
treef722f6bed3305e12b953c0e5b5400b00c4427c0d
parentc60389e4f9ea88d7246dbb148d28791d577fe5b4
rdma: Fix representation of PortInfo CapabilityMask

The port capability mask represents IBTA PortInfo specification,
but as it is written in description of kernel commit 2f944c0fbf58
("RDMA: Fix storage of PortInfo CapabilityMask in the kernel"),
the bit 26 was mistakenly overwritten.

The rdmatool followed it too and mislead users by presenting wrong
value. Since it never showed proper value, we update the whole
port_cap_mask to comply with IBTA and show real HW values.

Fixes: da990ab40a92 ("rdma: Add link object")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/link.c