]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sif: Redefine IB_QP_CREATE_ flags
authorHans Westgaard Ry <hans.westgaard.ry@oracle.com>
Tue, 28 Jun 2016 08:33:00 +0000 (10:33 +0200)
committerKnut Omang <knut.omang@oracle.com>
Sun, 3 Jul 2016 14:44:13 +0000 (16:44 +0200)
Redefine sif-spesific IB_QP_CREATE_ flags to avoid conflict with flags defined in ib_verbs.h
Flags moved to range defined by IB_QP_CREATE_RESERVED_START and IB_QP_CREATE_RESERVED_END

Note that we define more flags than fit the range and that some are defined below _RESERVED_START.

Signed-off-by: Hans Westgaard Ry <hans.westgaard.ry@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
drivers/infiniband/hw/sif/sif_verbs.h

index 1614e6a95ea126b3ef6aa910baf139817ded184d..bdc659da9e9fd79af43bc3ced0e4a77bcc26b56a 100644 (file)
@@ -51,19 +51,18 @@ struct sif_device_modify {
 };
 
 
-/* Extension bits in the qp create mask to ib_create_qp
- */
+/* Extension bits in the qp create mask to ib_create_qp    */
+/* Note that we use bits below IB_QP_CREATE_RESERVED_START */
 enum sif_qp_create_flags {
-       IB_QP_CREATE_EOIB            = 1 << 4,  /* Indicate that this is an Ethernet over IB QP */
-       IB_QP_CREATE_RSS             = 1 << 5,  /* Enable receive side scaling */
-       IB_QP_CREATE_HDR_SPLIT       = 1 << 6,  /* Enable header/data split for offloading */
-       IB_QP_CREATE_RCV_DYNAMIC_MTU = 1 << 7,  /* Enable receive side dynamic mtu */
-       IB_QP_CREATE_PROXY           = 1 << 8,  /* Enable a special EPSA proxy */
-       IB_QP_NO_CSUM                = 1 << 9,  /* No csum for qp, wqe.wr.csum = qp.magic */
-       IB_QP_CREATE_SND_DYNAMIC_MTU = 1 << 10,  /* Enable receive side dynamic mtu */
+       IB_QP_CREATE_EOIB            = IB_QP_CREATE_RESERVED_END     ,  /* Indicate that this is an Ethernet over IB QP */
+       IB_QP_CREATE_RSS             = IB_QP_CREATE_RESERVED_END >> 1,  /* Enable receive side scaling */
+       IB_QP_CREATE_HDR_SPLIT       = IB_QP_CREATE_RESERVED_END >> 2,  /* Enable header/data split for offloading */
+       IB_QP_CREATE_RCV_DYNAMIC_MTU = IB_QP_CREATE_RESERVED_END >> 3,  /* Enable receive side dynamic mtu */
+       IB_QP_CREATE_PROXY           = IB_QP_CREATE_RESERVED_END >> 4,  /* Enable a special EPSA proxy */
+       IB_QP_NO_CSUM                = IB_QP_CREATE_RESERVED_END >> 5,  /* No csum for qp, wqe.wr.csum = qp.magic */
+       IB_QP_CREATE_SND_DYNAMIC_MTU = IB_QP_CREATE_RESERVED_END >> 6,  /* Enable receive side dynamic mtu */
 };
 
-
 /* Extension bits in the qp attr mask to ib_modify_qp
  * TBD: Not implemented yet
  */