From: Roland Dreier Correct defines of port capability mask enum values (bits were ordered backwards) and add new capability bits from IBA spec version 1.2. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton --- 25-akpm/drivers/infiniband/include/ib_verbs.h | 41 +++++++++++++------------- 1 files changed, 22 insertions(+), 19 deletions(-) diff -puN drivers/infiniband/include/ib_verbs.h~infiniband-core-fix-port-capability-enums-bit-order drivers/infiniband/include/ib_verbs.h --- 25/drivers/infiniband/include/ib_verbs.h~infiniband-core-fix-port-capability-enums-bit-order 2005-01-23 22:24:58.261866408 -0800 +++ 25-akpm/drivers/infiniband/include/ib_verbs.h 2005-01-23 22:24:58.265865800 -0800 @@ -154,25 +154,28 @@ enum ib_port_state { }; enum ib_port_cap_flags { - IB_PORT_SM = (1<<31), - IB_PORT_NOTICE_SUP = (1<<30), - IB_PORT_TRAP_SUP = (1<<29), - IB_PORT_AUTO_MIGR_SUP = (1<<27), - IB_PORT_SL_MAP_SUP = (1<<26), - IB_PORT_MKEY_NVRAM = (1<<25), - IB_PORT_PKEY_NVRAM = (1<<24), - IB_PORT_LED_INFO_SUP = (1<<23), - IB_PORT_SM_DISABLED = (1<<22), - IB_PORT_SYS_IMAGE_GUID_SUP = (1<<21), - IB_PORT_PKEY_SW_EXT_PORT_TRAP_SUP = (1<<20), - IB_PORT_CM_SUP = (1<<16), - IB_PORT_SNMP_TUNNEL_SUP = (1<<15), - IB_PORT_REINIT_SUP = (1<<14), - IB_PORT_DEVICE_MGMT_SUP = (1<<13), - IB_PORT_VENDOR_CLASS_SUP = (1<<12), - IB_PORT_DR_NOTICE_SUP = (1<<11), - IB_PORT_PORT_NOTICE_SUP = (1<<10), - IB_PORT_BOOT_MGMT_SUP = (1<<9) + IB_PORT_SM = 1 << 1, + IB_PORT_NOTICE_SUP = 1 << 2, + IB_PORT_TRAP_SUP = 1 << 3, + IB_PORT_OPT_IPD_SUP = 1 << 4, + IB_PORT_AUTO_MIGR_SUP = 1 << 5, + IB_PORT_SL_MAP_SUP = 1 << 6, + IB_PORT_MKEY_NVRAM = 1 << 7, + IB_PORT_PKEY_NVRAM = 1 << 8, + IB_PORT_LED_INFO_SUP = 1 << 9, + IB_PORT_SM_DISABLED = 1 << 10, + IB_PORT_SYS_IMAGE_GUID_SUP = 1 << 11, + IB_PORT_PKEY_SW_EXT_PORT_TRAP_SUP = 1 << 12, + IB_PORT_CM_SUP = 1 << 16, + IB_PORT_SNMP_TUNNEL_SUP = 1 << 17, + IB_PORT_REINIT_SUP = 1 << 18, + IB_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 }; enum ib_port_width { _