linux/drivers/net/ethernet/hisilicon
Lipeng c3b6f755fd net: hns3: fix the bug when reuse command description in hclge_add_mac_vlan_tbl
When reusing a command description read from HW, driver should set
IN_VLD bit, WR bit and NO_INTR bit. If IN_VLD bit and NO_INTR bit
are not set, the command fails and driver prints error message:

[  135.261284] hns3 0000:7d:00.0: cmdq execute failed for get_mac_vlan_cmd_status,status=2.
[  135.270983] hns3 0000:7d:00.0: add mac addr failed for cmd_send, ret =-5.

This patch fixes the bug.
Fixes: 46a3df9 (net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support)

Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-26 17:25:35 +09:00
..
hns net: hns: Convert timers to use timer_setup() 2017-10-18 12:40:26 +01:00
hns3 net: hns3: fix the bug when reuse command description in hclge_add_mac_vlan_tbl 2017-10-26 17:25:35 +09:00
hip04_eth.c net: hip04: Omit private ndo_get_stats function 2017-02-14 15:03:21 -05:00
hisi_femac.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
hix5hd2_gmac.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
hns_mdio.c net: hns: Fix a wrong op phy C45 code 2017-07-08 11:05:21 +01:00
Kconfig net: hns3: Cleanup indentation for Kconfig in the the hisilicon folder 2017-10-09 09:46:54 -07:00
Makefile net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS 2017-08-03 15:08:18 -07:00