]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: add some required spaces
authorHao Chen <chenhao288@hisilicon.com>
Mon, 30 Aug 2021 13:51:08 +0000 (21:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Aug 2021 11:36:42 +0000 (12:36 +0100)
Add some required spaces to improve readability.

Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 1d51fae4930761ecdc4821e4144bf03ebfe5bf21..546a605303848aa1db81452707b4e89ab7b52bac 100644 (file)
@@ -65,7 +65,7 @@
 #define HNAE3_UNIC_CLIENT_INITED_B             0x4
 #define HNAE3_ROCE_CLIENT_INITED_B             0x5
 
-#define HNAE3_DEV_SUPPORT_ROCE_DCB_BITS (BIT(HNAE3_DEV_SUPPORT_DCB_B) |\
+#define HNAE3_DEV_SUPPORT_ROCE_DCB_BITS (BIT(HNAE3_DEV_SUPPORT_DCB_B) | \
                BIT(HNAE3_DEV_SUPPORT_ROCE_B))
 
 #define hnae3_dev_roce_supported(hdev) \
index 1ec91435d0b48a9a47a22b0fd9d3f254de118782..2b66c59f5eafd2c5df28213cd2193156cbe1baaf 100644 (file)
@@ -797,10 +797,10 @@ static const struct hns3_dbg_item tx_bd_info_items[] = {
        { "T_CS_VLAN_TSO", 2 },
        { "OT_VLAN_TAG", 3 },
        { "TV", 2 },
-       { "OLT_VLAN_LEN", 2},
-       { "PAYLEN_OL4CS", 2},
-       { "BD_FE_SC_VLD", 2},
-       { "MSS_HW_CSUM", 0},
+       { "OLT_VLAN_LEN", 2 },
+       { "PAYLEN_OL4CS", 2 },
+       { "BD_FE_SC_VLD", 2 },
+       { "MSS_HW_CSUM", 0 },
 };
 
 static void hns3_dump_tx_bd_info(struct hns3_nic_priv *priv,
index 18dd962444d74458265df9aa5ff650b569ce628f..ffd92332893d4b619568cac0e3c1d5c747a35d0e 100644 (file)
@@ -63,7 +63,7 @@ MODULE_PARM_DESC(tx_sgl, "Minimum number of frags when using dma_map_sg() to opt
 
 #define HNS3_SGL_SIZE(nfrag)   (sizeof(struct scatterlist) * (nfrag) + \
                                 sizeof(struct sg_table))
-#define HNS3_MAX_SGL_SIZE      ALIGN(HNS3_SGL_SIZE(HNS3_MAX_TSO_BD_NUM),\
+#define HNS3_MAX_SGL_SIZE      ALIGN(HNS3_SGL_SIZE(HNS3_MAX_TSO_BD_NUM), \
                                      dma_get_cache_alignment())
 
 #define DEFAULT_MSG_LEVEL (NETIF_MSG_PROBE | NETIF_MSG_LINK | \
index 299802995091b85b5484600525f23b69c52206b0..6162d9f88e373bb7a796e46a7de3ed4d7ec7dc3d 100644 (file)
@@ -392,11 +392,11 @@ enum hns3_pkt_ol4type {
 };
 
 struct hns3_rx_ptype {
-       u32 ptype:8;
-       u32 csum_level:2;
-       u32 ip_summed:2;
-       u32 l3_type:4;
-       u32 valid:1;
+       u32 ptype : 8;
+       u32 csum_level : 2;
+       u32 ip_summed : 2;
+       u32 l3_type : 4;
+       u32 valid : 1;
 };
 
 struct ring_stats {
@@ -522,9 +522,9 @@ struct hns3_enet_coalesce {
        u16 int_gl;
        u16 int_ql;
        u16 int_ql_max;
-       u8 adapt_enable:1;
-       u8 ql_enable:1;
-       u8 unit_1us:1;
+       u8 adapt_enable : 1;
+       u8 ql_enable : 1;
+       u8 unit_1us : 1;
        enum hns3_flow_level_range flow_level;
 };
 
index fb1c33cac2a814adc5d1d78da525aa588b5d9da1..e11afb6f38434a406f6ef82f40b71224b3dae693 100644 (file)
@@ -375,14 +375,14 @@ static const enum hclge_opcode_type hclge_dfx_reg_opcode_list[] = {
 };
 
 static const struct key_info meta_data_key_info[] = {
-       { PACKET_TYPE_ID, 6},
-       { IP_FRAGEMENT, 1},
-       { ROCE_TYPE, 1},
-       { NEXT_KEY, 5},
-       { VLAN_NUMBER, 2},
-       { SRC_VPORT, 12},
-       { DST_VPORT, 12},
-       { TUNNEL_PACKET, 1},
+       { PACKET_TYPE_ID, 6 },
+       { IP_FRAGEMENT, 1 },
+       { ROCE_TYPE, 1 },
+       { NEXT_KEY, 5 },
+       { VLAN_NUMBER, 2 },
+       { SRC_VPORT, 12 },
+       { DST_VPORT, 12 },
+       { TUNNEL_PACKET, 1 },
 };
 
 static const struct key_info tuple_key_info[] = {
@@ -749,9 +749,9 @@ static void hclge_update_stats(struct hnae3_handle *handle,
 
 static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset)
 {
-#define HCLGE_LOOPBACK_TEST_FLAGS (HNAE3_SUPPORT_APP_LOOPBACK |\
-               HNAE3_SUPPORT_PHY_LOOPBACK |\
-               HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK |\
+#define HCLGE_LOOPBACK_TEST_FLAGS (HNAE3_SUPPORT_APP_LOOPBACK | \
+               HNAE3_SUPPORT_PHY_LOOPBACK | \
+               HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK | \
                HNAE3_SUPPORT_SERDES_PARALLEL_LOOPBACK)
 
        struct hclge_vport *vport = hclge_get_vport(handle);