Skip to content

Commit da4e15e

Browse files
committed
Merge branch 'hns3-next'
Huazhong Tan says: ==================== net: hns3: adds some cleanups for -next There are some cleanups for the HNS3 ethernet driver, fix an incorrect print format, an incorrect comment and some coding style issues, also remove some unused codes and macros. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents bc183de + 996aade commit da4e15e

File tree

6 files changed

+3
-15
lines changed

6 files changed

+3
-15
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,12 +1544,6 @@ static int hns3_nic_set_features(struct net_device *netdev,
15441544
return ret;
15451545
}
15461546

1547-
if ((changed & NETIF_F_HW_VLAN_CTAG_FILTER) &&
1548-
h->ae_algo->ops->enable_vlan_filter) {
1549-
enable = !!(features & NETIF_F_HW_VLAN_CTAG_FILTER);
1550-
h->ae_algo->ops->enable_vlan_filter(h, enable);
1551-
}
1552-
15531547
if ((changed & NETIF_F_HW_VLAN_CTAG_RX) &&
15541548
h->ae_algo->ops->enable_hw_strip_rxvtag) {
15551549
enable = !!(features & NETIF_F_HW_VLAN_CTAG_RX);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include "hnae3.h"
1212
#include "hclge_main.h"
1313

14-
#define hclge_is_csq(ring) ((ring)->flag & HCLGE_TYPE_CSQ)
15-
1614
#define cmq_ring_to_dev(ring) (&(ring)->dev->pdev->dev)
1715

1816
static int hclge_ring_space(struct hclge_cmq_ring *ring)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ int hclge_mac_mdio_config(struct hclge_dev *hdev)
155155
ret = mdiobus_register(mdio_bus);
156156
if (ret) {
157157
dev_err(mdio_bus->parent,
158-
"Failed to register MDIO bus ret = %#x\n", ret);
158+
"failed to register MDIO bus, ret = %d\n", ret);
159159
return ret;
160160
}
161161

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
#include "hclgevf_main.h"
1212
#include "hnae3.h"
1313

14-
#define hclgevf_is_csq(ring) ((ring)->flag & HCLGEVF_TYPE_CSQ)
15-
#define hclgevf_ring_to_dma_dir(ring) (hclgevf_is_csq(ring) ? \
16-
DMA_TO_DEVICE : DMA_FROM_DEVICE)
1714
#define cmq_ring_to_dev(ring) (&(ring)->dev->pdev->dev)
1815

1916
static int hclgevf_ring_space(struct hclgevf_cmq_ring *ring)

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,8 @@ static int hclgevf_set_rss_tc_mode(struct hclgevf_dev *hdev, u16 rss_size)
669669
u16 tc_size[HCLGEVF_MAX_TC_NUM];
670670
struct hclgevf_desc desc;
671671
u16 roundup_size;
672-
int status;
673672
unsigned int i;
673+
int status;
674674

675675
req = (struct hclgevf_rss_tc_mode_cmd *)desc.data;
676676

@@ -1143,7 +1143,6 @@ static int hclgevf_cmd_set_promisc_mode(struct hclgevf_dev *hdev,
11431143
send_msg.en_mc = en_mc_pmc ? 1 : 0;
11441144

11451145
ret = hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0);
1146-
11471146
if (ret)
11481147
dev_err(&hdev->pdev->dev,
11491148
"Set promisc mode fail, status is %d.\n", ret);

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ struct hclgevf_dev {
278278
struct semaphore reset_sem; /* protect reset process */
279279

280280
u32 fw_version;
281-
u16 num_tqps; /* num task queue pairs of this PF */
281+
u16 num_tqps; /* num task queue pairs of this VF */
282282

283283
u16 alloc_rss_size; /* allocated RSS task queue */
284284
u16 rss_size_max; /* HW defined max RSS task queue */

0 commit comments

Comments
 (0)