bnxt_en: Change sp events definitions to represent bit position.
authorJeffrey Huang <huangjw@broadcom.com>
Thu, 5 Nov 2015 21:25:47 +0000 (16:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Nov 2015 21:33:08 +0000 (16:33 -0500)
Fix the sp event bits to be bit positions instead of bit values since
the bit helper functions are expecting the former.

Signed-off-by: Jeffrey Huang <huangjw@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.h

index 4f2267ca482d1d7fcf2d32efbcccf966e5089445..4cae4928b27c16cba206b62dcc7008fee6adb537 100644 (file)
@@ -959,11 +959,11 @@ struct bnxt {
 #define BNXT_RX_MASK_SP_EVENT          0
 #define BNXT_RX_NTP_FLTR_SP_EVENT      1
 #define BNXT_LINK_CHNG_SP_EVENT                2
-#define BNXT_HWRM_EXEC_FWD_REQ_SP_EVENT        4
-#define BNXT_VXLAN_ADD_PORT_SP_EVENT   8
-#define BNXT_VXLAN_DEL_PORT_SP_EVENT   16
-#define BNXT_RESET_TASK_SP_EVENT       32
-#define BNXT_RST_RING_SP_EVENT         64
+#define BNXT_HWRM_EXEC_FWD_REQ_SP_EVENT        3
+#define BNXT_VXLAN_ADD_PORT_SP_EVENT   4
+#define BNXT_VXLAN_DEL_PORT_SP_EVENT   5
+#define BNXT_RESET_TASK_SP_EVENT       6
+#define BNXT_RST_RING_SP_EVENT         7
 
        struct bnxt_pf_info     pf;
 #ifdef CONFIG_BNXT_SRIOV