]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Add option to provide "-" sign for the port number
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 31 Jan 2018 08:11:47 +0000 (10:11 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Feb 2018 01:23:52 +0000 (17:23 -0800)
commit6416d1a01f5b3ac4a7ba62e22b6ec9534736594e
treed70942e4541c60d21d4e61b8b7a4dd2788b0c803
parentc30c7b6e351edabf6e64487125393df0d857f99b
rdma: Add option to provide "-" sign for the port number

According to the IBTA spec [1], the physical connected port is provided
for the QP in RTR-to-INIT stage performed by modify_qp(). It causes
to do not have port number for newly created QPs.

The following patch adds "-" sign to present absence of port, because
QPs are going to be associated with rdmatool link object, which needs
port number as an index.

[1] InfiniBand Architecture Release 1.3 -
"Table 96 QP State Transition Properties"

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/link.c
rdma/rdma.h
rdma/utils.c