> From: Hefty, Sean > Sent: Tuesday, June 30, 2015 1:17 PM > To: Wan, Kaike; linux-rdma@xxxxxxxxxxxxxxx > Cc: Wan, Kaike; Fleck, John; Weiny, Ira > Subject: RE: [PATCH v7 1/4] IB/netlink: Add defines for local service requests > through netlink > > > include/uapi/rdma/rdma_netlink.h | 87 > > ++++++++++++++++++++++++++++++++++++++ > > 1 files changed, 87 insertions(+), 0 deletions(-) > > > > diff --git a/include/uapi/rdma/rdma_netlink.h > > b/include/uapi/rdma/rdma_netlink.h > > index 6e4bb42..d2c50e9 100644 > > --- a/include/uapi/rdma/rdma_netlink.h > > +++ b/include/uapi/rdma/rdma_netlink.h > > @@ -7,12 +7,14 @@ enum { > > RDMA_NL_RDMA_CM = 1, > > RDMA_NL_NES, > > RDMA_NL_C4IW, > > + RDMA_NL_SA, > > RDMA_NL_NUM_CLIENTS > > }; > > > > enum { > > RDMA_NL_GROUP_CM = 1, > > RDMA_NL_GROUP_IWPM, > > + RDMA_NL_GROUP_LS, > > RDMA_NL_NUM_GROUPS > > }; > > > > @@ -128,5 +130,90 @@ enum { > > IWPM_NLA_ERR_MAX > > }; > > > > +/* Local service group opcodes */ > > +enum { > > + RDMA_NL_LS_OP_RESOLVE = 0, > > + RDMA_NL_LS_OP_SET_TIMEOUT, > > + RDMA_NL_LS_NUM_OPS > > +}; > > + > > +/* Local service netlink message flags */ > > +#define RDMA_NL_LS_F_OK 0x0100 /* Success response */ > > +#define RDMA_NL_LS_F_ERR 0x0200 /* Failed response */ > > Is there a reason for these odd values? Yes, the lower byte (0x00xx) is used by generic netlink messages and the higher byte can be used for specific request (eg, RESOLVE). Kaike -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html