Kaike Wan [Mon, 4 Jan 2016 18:36:33 +0000 (13:36 -0500)]
Ibacm: Check the presence of header files for netlink support
It was found that the latest ibacm will not build in old distros that
don't have the two header files rdma/rdma_netlink.h and rdma/ib_user_sa.h.
To be backward compatible, the netlink support should be disabled if
the header files were absent. This patch will address the issue.
Reported-by: Hal Rosenstock <hal@mellanox.com> Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Kaike Wan [Mon, 4 Jan 2016 18:36:33 +0000 (13:36 -0500)]
Ibacm: Check the presence of header files for netlink support
It was found that the latest ibacm will not build in old distros that
don't have the two header files rdma/rdma_netlink.h and rdma/ib_user_sa.h.
To be backward compatible, the netlink support should be disabled if
the header files were absent. This patch will address the issue.
Reported-by: Hal Rosenstock <hal@mellanox.com> Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Kaike Wan [Wed, 9 Dec 2015 18:48:11 +0000 (13:48 -0500)]
ibacm: Change default pkey for partitioned fabrics to pkey[0]
In an insecure IB fabric, the default pkey in a port is 0xffff, where each
node is allowed to talk to any other node in the fabric, including the SA
node. However, in a secure fabric, to limit member access, not all nodes
can have the full-member default pkey 0xffff. A typical configuration is
to let SA node have pkey 0xffff while all other nodes have pkey 0x7fff; in
addition, each node can be assigned some other full-member pkeys, such as
0x8001 and 0x8002, so that it can be assigned to different partitions.
In this case, each node can access SA, and yet limits its other access to
only those nodes in its assigned partitions. In such a secure fabric,
however, ibacm will not work by interpreting "default" in its default
address file as 0xffff.
To solve the problem, we will use pkey 0 as the default pkey, in
line with ipoib convention.
Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Kaike Wan [Wed, 9 Dec 2015 18:48:11 +0000 (13:48 -0500)]
[PATCH 1/1] Ibacm: default pkey for partitioned fabrics
In an insecure IB fabric, the default pkey in a port is 0xffff, where each
node is allowed to talk to any other node in the fabric, including the SA
node. However, in a secure fabric, to limit member access, not all nodes
can have the full-member default pkey 0xffff. A typical configuration is
to let SA node have pkey 0xffff while all other nodes have pkey 0x7fff; in
addition, each node can be assigned some other full-member pkeys, such as
0x8001 and 0x8002, so that it can be assigned to different partitions.
In this case, each node can access SA, and yet limits its other access to
only those nodes in its assigned partitions. In such a secure fabric,
however, ibacm will not work by interpreting "default" in its default
address file as 0xffff.
To solve the problem, we will use pkey 0 as the default pkey, in
line with ipoib convention.
Kaike Wan [Tue, 10 Nov 2015 12:10:27 +0000 (07:10 -0500)]
ibacm: Add support for pathrecord query through netlink
This patch enables ibacm to process pathrecord queries through netlink.
Since ibacm can cache pathrecords, this implementation provides an easy
pathrecord cache for kernel components and therefore offers great
performance advantage on large fabric systems.
Signed-off-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: John Fleck <john.fleck@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com>