On Thu, Jun 11, 2015 at 07:35:37PM +0000, Wan, Kaike wrote: > #define RDMA_NLA_F_MANDATORY (1 << 13) > #define RDMA_NLA_TYPE_MASK ~(NLA_F_NESTED | NLA_F_NET_BYTEORDER | > RDMA_NLA_F_MANDATORY) > > In this case, kernel will use (RDMA_NLA_F_MANDATORY | type) to > inform user space that this attribute is mandatory.
That general idea makes sense to me. Then just test RDMA_NLA_F_MANDATORY in the case default: in acm. Fail if set, ignore if unset. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
