RDMA/IWPM: refactor the IWPM message attribute names
authorSteve Wise <swise@opengridcomputing.com>
Tue, 29 Jan 2019 21:33:11 +0000 (13:33 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Feb 2019 23:26:02 +0000 (16:26 -0700)
commitf76903d574b26bc596951a5c5e757eb02c67abbd
tree1a2889f83888d9b251c66832568d4280ca426545
parent95b8e384d8c44c6be590636608f61ac7b39101ec
RDMA/IWPM: refactor the IWPM message attribute names

In order to add new IWPM_NL attributes, the enums for the IWPM commands
attributes are refactored such that a new attribute can be added without
breaking ABI version 3. Instead of sharing nl attribute enums for both
request and response messages, we create separate enums for each IWPM
message request and reply.  This allows us to extend any given IWPM
message by adding new attributes for just that message.  These new enums
are created, though, in a way to avoid breaking ABI version 3.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/iwpm_msg.c
include/uapi/rdma/rdma_netlink.h