net/iavf/base: adjust indentation
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 3 Dec 2019 07:03:10 +0000 (15:03 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
Adjust the indent in function and macro definition.

Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/iavf/base/iavf_alloc.h
drivers/net/iavf/base/iavf_common.c
drivers/net/iavf/base/iavf_prototype.h
drivers/net/iavf/base/iavf_type.h

index da872bd..a409bb0 100644 (file)
@@ -22,15 +22,15 @@ enum iavf_memory_type {
 
 /* prototype for functions used for dynamic memory allocation */
 enum iavf_status iavf_allocate_dma_mem(struct iavf_hw *hw,
-                                           struct iavf_dma_mem *mem,
-                                           enum iavf_memory_type type,
-                                           u64 size, u32 alignment);
+                                      struct iavf_dma_mem *mem,
+                                      enum iavf_memory_type type,
+                                      u64 size, u32 alignment);
 enum iavf_status iavf_free_dma_mem(struct iavf_hw *hw,
-                                       struct iavf_dma_mem *mem);
+                                  struct iavf_dma_mem *mem);
 enum iavf_status iavf_allocate_virt_mem(struct iavf_hw *hw,
-                                            struct iavf_virt_mem *mem,
-                                            u32 size);
+                                       struct iavf_virt_mem *mem,
+                                       u32 size);
 enum iavf_status iavf_free_virt_mem(struct iavf_hw *hw,
-                                        struct iavf_virt_mem *mem);
+                                   struct iavf_virt_mem *mem);
 
 #endif /* _IAVF_ALLOC_H_ */
index b6e8754..c2c1fd1 100644 (file)
@@ -346,7 +346,7 @@ bool iavf_check_asq_alive(struct iavf_hw *hw)
  * or not the driver is unloading as well.
  **/
 enum iavf_status iavf_aq_queue_shutdown(struct iavf_hw *hw,
-                                            bool unloading)
+                                       bool unloading)
 {
        struct iavf_aq_desc desc;
        struct iavf_aqc_queue_shutdown *cmd =
@@ -375,9 +375,9 @@ enum iavf_status iavf_aq_queue_shutdown(struct iavf_hw *hw,
  * Internal function to get or set RSS look up table
  **/
 STATIC enum iavf_status iavf_aq_get_set_rss_lut(struct iavf_hw *hw,
-                                                    u16 vsi_id, bool pf_lut,
-                                                    u8 *lut, u16 lut_size,
-                                                    bool set)
+                                               u16 vsi_id, bool pf_lut,
+                                               u8 *lut, u16 lut_size,
+                                               bool set)
 {
        enum iavf_status status;
        struct iavf_aq_desc desc;
@@ -428,7 +428,7 @@ STATIC enum iavf_status iavf_aq_get_set_rss_lut(struct iavf_hw *hw,
  * get the RSS lookup table, PF or VSI type
  **/
 enum iavf_status iavf_aq_get_rss_lut(struct iavf_hw *hw, u16 vsi_id,
-                                         bool pf_lut, u8 *lut, u16 lut_size)
+                                    bool pf_lut, u8 *lut, u16 lut_size)
 {
        return iavf_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size,
                                       false);
@@ -445,7 +445,7 @@ enum iavf_status iavf_aq_get_rss_lut(struct iavf_hw *hw, u16 vsi_id,
  * set the RSS lookup table, PF or VSI type
  **/
 enum iavf_status iavf_aq_set_rss_lut(struct iavf_hw *hw, u16 vsi_id,
-                                         bool pf_lut, u8 *lut, u16 lut_size)
+                                    bool pf_lut, u8 *lut, u16 lut_size)
 {
        return iavf_aq_get_set_rss_lut(hw, vsi_id, pf_lut, lut, lut_size, true);
 }
@@ -500,8 +500,8 @@ STATIC enum iavf_status iavf_aq_get_set_rss_key(struct iavf_hw *hw,
  *
  **/
 enum iavf_status iavf_aq_get_rss_key(struct iavf_hw *hw,
-                                     u16 vsi_id,
-                                     struct iavf_aqc_get_set_rss_key_data *key)
+                                    u16 vsi_id,
+                                    struct iavf_aqc_get_set_rss_key_data *key)
 {
        return iavf_aq_get_set_rss_key(hw, vsi_id, key, false);
 }
@@ -515,8 +515,8 @@ enum iavf_status iavf_aq_get_rss_key(struct iavf_hw *hw,
  * set the RSS key per VSI
  **/
 enum iavf_status iavf_aq_set_rss_key(struct iavf_hw *hw,
-                                     u16 vsi_id,
-                                     struct iavf_aqc_get_set_rss_key_data *key)
+                                    u16 vsi_id,
+                                    struct iavf_aqc_get_set_rss_key_data *key)
 {
        return iavf_aq_get_set_rss_key(hw, vsi_id, key, true);
 }
@@ -1012,7 +1012,7 @@ enum iavf_status iavf_vf_reset(struct iavf_hw *hw)
 * Get information for the reason of a Wake Up event
 **/
 enum iavf_status iavf_aq_clear_all_wol_filters(struct iavf_hw *hw,
-       struct iavf_asq_cmd_details *cmd_details)
+                       struct iavf_asq_cmd_details *cmd_details)
 {
        struct iavf_aq_desc desc;
        enum iavf_status status;
index 36b5a17..a5d0b00 100644 (file)
@@ -31,8 +31,8 @@ void iavf_free_adminq_arq(struct iavf_hw *hw);
 enum iavf_status iavf_validate_mac_addr(u8 *mac_addr);
 void iavf_adminq_init_ring_data(struct iavf_hw *hw);
 enum iavf_status iavf_clean_arq_element(struct iavf_hw *hw,
-                                            struct iavf_arq_event_info *e,
-                                            u16 *events_pending);
+                                       struct iavf_arq_event_info *e,
+                                       u16 *events_pending);
 enum iavf_status iavf_asq_send_command(struct iavf_hw *hw,
                                struct iavf_aq_desc *desc,
                                void *buff, /* can be NULL */
@@ -49,9 +49,9 @@ bool iavf_check_asq_alive(struct iavf_hw *hw);
 enum iavf_status iavf_aq_queue_shutdown(struct iavf_hw *hw, bool unloading);
 
 enum iavf_status iavf_aq_get_rss_lut(struct iavf_hw *hw, u16 seid,
-                                         bool pf_lut, u8 *lut, u16 lut_size);
+                                    bool pf_lut, u8 *lut, u16 lut_size);
 enum iavf_status iavf_aq_set_rss_lut(struct iavf_hw *hw, u16 seid,
-                                         bool pf_lut, u8 *lut, u16 lut_size);
+                                    bool pf_lut, u8 *lut, u16 lut_size);
 enum iavf_status iavf_aq_get_rss_key(struct iavf_hw *hw,
                                     u16 seid,
                                     struct iavf_aqc_get_set_rss_key_data *key);
@@ -85,10 +85,10 @@ enum iavf_status iavf_aq_send_msg_to_pf(struct iavf_hw *hw,
                                u8 *msg, u16 msglen,
                                struct iavf_asq_cmd_details *cmd_details);
 enum iavf_status iavf_aq_debug_dump(struct iavf_hw *hw, u8 cluster_id,
-                               u8 table_id, u32 start_index, u16 buff_size,
-                               void *buff, u16 *ret_buff_size,
-                               u8 *ret_next_table, u32 *ret_next_index,
-                               struct iavf_asq_cmd_details *cmd_details);
+                                   u8 table_id, u32 start_index, u16 buff_size,
+                                   void *buff, u16 *ret_buff_size,
+                                   u8 *ret_next_table, u32 *ret_next_index,
+                                   struct iavf_asq_cmd_details *cmd_details);
 enum iavf_status iavf_aq_clear_all_wol_filters(struct iavf_hw *hw,
                        struct iavf_asq_cmd_details *cmd_details);
 #endif /* _IAVF_PROTOTYPE_H_ */
index c1910ff..6d63f43 100644 (file)
@@ -11,7 +11,7 @@
 #include "iavf_adminq.h"
 #include "iavf_devids.h"
 
-#define IAVF_RXQ_CTX_DBUFF_SHIFT        7
+#define IAVF_RXQ_CTX_DBUFF_SHIFT       7
 
 #define UNREFERENCED_XPARAMETER
 #define UNREFERENCED_1PARAMETER(_p) (_p);
@@ -467,20 +467,20 @@ enum iavf_rx_desc_status_bits {
        IAVF_RX_DESC_STATUS_FLTSTAT_SHIFT       = 12, /* 2 BITS */
        IAVF_RX_DESC_STATUS_LPBK_SHIFT          = 14,
        IAVF_RX_DESC_STATUS_IPV6EXADD_SHIFT     = 15,
-       IAVF_RX_DESC_STATUS_RESERVED2_SHIFT     = 16, /* 2 BITS */
+       IAVF_RX_DESC_STATUS_RESERVED_SHIFT      = 16, /* 2 BITS */
        IAVF_RX_DESC_STATUS_INT_UDP_0_SHIFT     = 18,
        IAVF_RX_DESC_STATUS_LAST /* this entry must be last!!! */
 };
 
 #define IAVF_RXD_QW1_STATUS_SHIFT      0
-#define IAVF_RXD_QW1_STATUS_MASK       ((BIT(IAVF_RX_DESC_STATUS_LAST) - 1) << \
-                                        IAVF_RXD_QW1_STATUS_SHIFT)
+#define IAVF_RXD_QW1_STATUS_MASK       ((BIT(IAVF_RX_DESC_STATUS_LAST) - 1) \
+                                        << IAVF_RXD_QW1_STATUS_SHIFT)
 
-#define IAVF_RXD_QW1_STATUS_TSYNINDX_SHIFT   IAVF_RX_DESC_STATUS_TSYNINDX_SHIFT
-#define IAVF_RXD_QW1_STATUS_TSYNINDX_MASK      (0x3UL << \
-                                            IAVF_RXD_QW1_STATUS_TSYNINDX_SHIFT)
+#define IAVF_RXD_QW1_STATUS_TSYNINDX_SHIFT IAVF_RX_DESC_STATUS_TSYNINDX_SHIFT
+#define IAVF_RXD_QW1_STATUS_TSYNINDX_MASK  (0x3UL << \
+                                           IAVF_RXD_QW1_STATUS_TSYNINDX_SHIFT)
 
-#define IAVF_RXD_QW1_STATUS_TSYNVALID_SHIFT  IAVF_RX_DESC_STATUS_TSYNVALID_SHIFT
+#define IAVF_RXD_QW1_STATUS_TSYNVALID_SHIFT IAVF_RX_DESC_STATUS_TSYNVALID_SHIFT
 #define IAVF_RXD_QW1_STATUS_TSYNVALID_MASK   BIT_ULL(IAVF_RXD_QW1_STATUS_TSYNVALID_SHIFT)
 
 #define IAVF_RXD_QW1_STATUS_UMBCAST_SHIFT      IAVF_RX_DESC_STATUS_UMBCAST
@@ -892,7 +892,8 @@ enum iavf_tx_ctx_desc_eipt_offload {
 #define IAVF_TXD_CTX_GRE_TUNNELING     (0x2ULL << IAVF_TXD_CTX_QW0_NATT_SHIFT)
 
 #define IAVF_TXD_CTX_QW0_EIP_NOINC_SHIFT       11
-#define IAVF_TXD_CTX_QW0_EIP_NOINC_MASK        BIT_ULL(IAVF_TXD_CTX_QW0_EIP_NOINC_SHIFT)
+#define IAVF_TXD_CTX_QW0_EIP_NOINC_MASK \
+                                      BIT_ULL(IAVF_TXD_CTX_QW0_EIP_NOINC_SHIFT)
 
 #define IAVF_TXD_CTX_EIP_NOINC_IPID_CONST      IAVF_TXD_CTX_QW0_EIP_NOINC_MASK