From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matan Barak Subject: Re: [PATCH libibverbs V4 1/5] Add ibv_port_cap_flags Date: Tue, 20 May 2014 09:41:20 +0300 Message-ID: <537AF910.3020707@mellanox.com> References: <1400405929-14313-1-git-send-email-ogerlitz@r-vnc04.mtr.labs.mlnx> <1400405929-14313-2-git-send-email-ogerlitz@r-vnc04.mtr.labs.mlnx> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400405929-14313-2-git-send-email-ogerlitz-lZu6o6FoHf8DyJZ7l8Lk7nI+JuX82XLG@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Or Gerlitz , roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On 18/5/2014 12:38 PM, Or Gerlitz wrote: > From: Matan Barak > > Add an enum that describes ibv_port_cap_flags that complies > with the respective kernel enum. > > This value could be fetched when using ibv_query_port in > port_cap_flags. > > Signed-off-by: Matan Barak > Signed-off-by: Or Gerlitz > --- > include/infiniband/verbs.h | 26 ++++++++++++++++++++++++++ > 1 files changed, 26 insertions(+), 0 deletions(-) > > diff --git a/include/infiniband/verbs.h b/include/infiniband/verbs.h > index 9826b72..71adf2a 100644 > --- a/include/infiniband/verbs.h > +++ b/include/infiniband/verbs.h > @@ -191,6 +191,32 @@ enum { > IBV_LINK_LAYER_ETHERNET, > }; > > +enum ibv_port_cap_flags { > + IBV_PORT_SM = 1 << 1, > + IBV_PORT_NOTICE_SUP = 1 << 2, > + IBV_PORT_TRAP_SUP = 1 << 3, > + IBV_PORT_OPT_IPD_SUP = 1 << 4, > + IBV_PORT_AUTO_MIGR_SUP = 1 << 5, > + IBV_PORT_SL_MAP_SUP = 1 << 6, > + IBV_PORT_MKEY_NVRAM = 1 << 7, > + IBV_PORT_PKEY_NVRAM = 1 << 8, > + IBV_PORT_LED_INFO_SUP = 1 << 9, > + IBV_PORT_SYS_IMAGE_GUID_SUP = 1 << 11, > + IBV_PORT_PKEY_SW_EXT_PORT_TRAP_SUP = 1 << 12, > + IBV_PORT_EXTENDED_SPEEDS_SUP = 1 << 14, > + IBV_PORT_CM_SUP = 1 << 16, > + IBV_PORT_SNMP_TUNNEL_SUP = 1 << 17, > + IBV_PORT_REINIT_SUP = 1 << 18, > + IBV_PORT_DEVICE_MGMT_SUP = 1 << 19, > + IB_PORT_VENDOR_CLASS_SUP = 1 << 20, > + IB_PORT_DR_NOTICE_SUP = 1 << 21, > + IB_PORT_CAP_MASK_NOTICE_SUP = 1 << 22, > + IB_PORT_BOOT_MGMT_SUP = 1 << 23, > + IB_PORT_LINK_LATENCY_SUP = 1 << 24, > + IB_PORT_CLIENT_REG_SUP = 1 << 25, > + IBV_PORT_IP_BASED_GIDS = 1 << 26 > +}; > + The last few values miss the IBV_ prefix. We'll issue a V5 to fix that soon. Matan > struct ibv_port_attr { > enum ibv_port_state state; > enum ibv_mtu max_mtu; > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html