Skip to content

Commit c74e503

Browse files
Hao Chendavem330
authored andcommitted
net: hns3: add some required spaces
Add some required spaces to improve readability. Signed-off-by: Hao Chen <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e79c0e3 commit c74e503

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

drivers/net/ethernet/hisilicon/hns3/hnae3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
#define HNAE3_UNIC_CLIENT_INITED_B 0x4
6666
#define HNAE3_ROCE_CLIENT_INITED_B 0x5
6767

68-
#define HNAE3_DEV_SUPPORT_ROCE_DCB_BITS (BIT(HNAE3_DEV_SUPPORT_DCB_B) |\
68+
#define HNAE3_DEV_SUPPORT_ROCE_DCB_BITS (BIT(HNAE3_DEV_SUPPORT_DCB_B) | \
6969
BIT(HNAE3_DEV_SUPPORT_ROCE_B))
7070

7171
#define hnae3_dev_roce_supported(hdev) \

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,10 +797,10 @@ static const struct hns3_dbg_item tx_bd_info_items[] = {
797797
{ "T_CS_VLAN_TSO", 2 },
798798
{ "OT_VLAN_TAG", 3 },
799799
{ "TV", 2 },
800-
{ "OLT_VLAN_LEN", 2},
801-
{ "PAYLEN_OL4CS", 2},
802-
{ "BD_FE_SC_VLD", 2},
803-
{ "MSS_HW_CSUM", 0},
800+
{ "OLT_VLAN_LEN", 2 },
801+
{ "PAYLEN_OL4CS", 2 },
802+
{ "BD_FE_SC_VLD", 2 },
803+
{ "MSS_HW_CSUM", 0 },
804804
};
805805

806806
static void hns3_dump_tx_bd_info(struct hns3_nic_priv *priv,

drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ MODULE_PARM_DESC(tx_sgl, "Minimum number of frags when using dma_map_sg() to opt
6363

6464
#define HNS3_SGL_SIZE(nfrag) (sizeof(struct scatterlist) * (nfrag) + \
6565
sizeof(struct sg_table))
66-
#define HNS3_MAX_SGL_SIZE ALIGN(HNS3_SGL_SIZE(HNS3_MAX_TSO_BD_NUM),\
66+
#define HNS3_MAX_SGL_SIZE ALIGN(HNS3_SGL_SIZE(HNS3_MAX_TSO_BD_NUM), \
6767
dma_get_cache_alignment())
6868

6969
#define DEFAULT_MSG_LEVEL (NETIF_MSG_PROBE | NETIF_MSG_LINK | \

drivers/net/ethernet/hisilicon/hns3/hns3_enet.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,11 @@ enum hns3_pkt_ol4type {
392392
};
393393

394394
struct hns3_rx_ptype {
395-
u32 ptype:8;
396-
u32 csum_level:2;
397-
u32 ip_summed:2;
398-
u32 l3_type:4;
399-
u32 valid:1;
395+
u32 ptype : 8;
396+
u32 csum_level : 2;
397+
u32 ip_summed : 2;
398+
u32 l3_type : 4;
399+
u32 valid : 1;
400400
};
401401

402402
struct ring_stats {
@@ -522,9 +522,9 @@ struct hns3_enet_coalesce {
522522
u16 int_gl;
523523
u16 int_ql;
524524
u16 int_ql_max;
525-
u8 adapt_enable:1;
526-
u8 ql_enable:1;
527-
u8 unit_1us:1;
525+
u8 adapt_enable : 1;
526+
u8 ql_enable : 1;
527+
u8 unit_1us : 1;
528528
enum hns3_flow_level_range flow_level;
529529
};
530530

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,14 @@ static const enum hclge_opcode_type hclge_dfx_reg_opcode_list[] = {
375375
};
376376

377377
static const struct key_info meta_data_key_info[] = {
378-
{ PACKET_TYPE_ID, 6},
379-
{ IP_FRAGEMENT, 1},
380-
{ ROCE_TYPE, 1},
381-
{ NEXT_KEY, 5},
382-
{ VLAN_NUMBER, 2},
383-
{ SRC_VPORT, 12},
384-
{ DST_VPORT, 12},
385-
{ TUNNEL_PACKET, 1},
378+
{ PACKET_TYPE_ID, 6 },
379+
{ IP_FRAGEMENT, 1 },
380+
{ ROCE_TYPE, 1 },
381+
{ NEXT_KEY, 5 },
382+
{ VLAN_NUMBER, 2 },
383+
{ SRC_VPORT, 12 },
384+
{ DST_VPORT, 12 },
385+
{ TUNNEL_PACKET, 1 },
386386
};
387387

388388
static const struct key_info tuple_key_info[] = {
@@ -749,9 +749,9 @@ static void hclge_update_stats(struct hnae3_handle *handle,
749749

750750
static int hclge_get_sset_count(struct hnae3_handle *handle, int stringset)
751751
{
752-
#define HCLGE_LOOPBACK_TEST_FLAGS (HNAE3_SUPPORT_APP_LOOPBACK |\
753-
HNAE3_SUPPORT_PHY_LOOPBACK |\
754-
HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK |\
752+
#define HCLGE_LOOPBACK_TEST_FLAGS (HNAE3_SUPPORT_APP_LOOPBACK | \
753+
HNAE3_SUPPORT_PHY_LOOPBACK | \
754+
HNAE3_SUPPORT_SERDES_SERIAL_LOOPBACK | \
755755
HNAE3_SUPPORT_SERDES_PARALLEL_LOOPBACK)
756756

757757
struct hclge_vport *vport = hclge_get_vport(handle);

0 commit comments

Comments
 (0)