mbox series

[0/4] ibacm: Replace ioctl with netlink and fix inablity to resurrect an interface

Message ID 20190124144738.7961-1-haakon.bugge@oracle.com (mailing list archive)
Headers show
Series ibacm: Replace ioctl with netlink and fix inablity to resurrect an interface | expand

Message

Haakon Bugge Jan. 24, 2019, 2:47 p.m. UTC
The first commit in this series re-factors the code which iterates
through the system interfaces. The code used the ioctl SIOCGIFCONF,
which only returns "running" interfaces. Restricting the enumeration
to only "running" interfaces poses several problems. The problems are
not solved by the first commit, but the third commit, "ibacm: Unable
to resurrect an interface".

As such, the first commit does not alter any functionality.

The second commit is small fix in a debug print.

The third commit is the new implementation of
https://patchwork.kernel.org/patch/10748357, which was NAKed. This
commit is now based on the netlink re-factoring from commit one.

The forth commit aligns the use of interface names vs. interface
aliases (label) with how the ip utility works.


HÃ¥kon Bugge (4):
  ibacm: Replace ioctl with netlink
  ibacm: Print correct pkey
  ibacm: Unable to resurrect an interface
  ibacm: Use alias name when possible

 ibacm/CMakeLists.txt |   2 +
 ibacm/src/acm.c      |   9 +-
 ibacm/src/acm_util.c | 262 ++++++++++++++++++++++++-------------------
 ibacm/src/acm_util.h |   5 +-
 4 files changed, 161 insertions(+), 117 deletions(-)

--
2.20.1