]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ice: Minor cleanup in ice_switch.h
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tue, 16 Apr 2019 17:30:48 +0000 (10:30 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 29 May 2019 09:55:34 +0000 (02:55 -0700)
Remove duplicate define for ICE_INVAL_Q_HANDLE. Move defines to the
top of the file.

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.h

index 732b0b9b2e156616c984763f41490ef607dc446a..cb123fbe30bea501e2ee20df6d95e72dd11c3486 100644 (file)
@@ -8,9 +8,11 @@
 
 #define ICE_SW_CFG_MAX_BUF_LEN 2048
 #define ICE_DFLT_VSI_INVAL 0xff
+#define ICE_FLTR_RX BIT(0)
+#define ICE_FLTR_TX BIT(1)
+#define ICE_FLTR_TX_RX (ICE_FLTR_RX | ICE_FLTR_TX)
 #define ICE_VSI_INVAL_ID 0xffff
 #define ICE_INVAL_Q_HANDLE 0xFFFF
-#define ICE_INVAL_Q_HANDLE 0xFFFF
 
 /* VSI queue context structure */
 struct ice_q_ctx {
@@ -69,9 +71,6 @@ struct ice_fltr_info {
        /* rule ID returned by firmware once filter rule is created */
        u16 fltr_rule_id;
        u16 flag;
-#define ICE_FLTR_RX            BIT(0)
-#define ICE_FLTR_TX            BIT(1)
-#define ICE_FLTR_TX_RX         (ICE_FLTR_RX | ICE_FLTR_TX)
 
        /* Source VSI for LOOKUP_TX or source port for LOOKUP_RX */
        u16 src;