net: hns3: fix for loopback failure when vlan filter is enable
authorYunsheng Lin <linyunsheng@huawei.com>
Sat, 10 Mar 2018 03:29:28 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 02:53:32 +0000 (22:53 -0400)
commitf96818a7cc864ac612c157b5c5e8c57c4b3e0136
tree538fb34bbd778b1f6c1377bec21c67bf69b5edc1
parent64fd2300fcc15f5660e72754c2207d25cb6a0cba
net: hns3: fix for loopback failure when vlan filter is enable

When vlan ctag filter is enabled, the loopback selftest fails because
loopback selftest does not support vlan.

This patch fixes it by disabling the vlan ctag filter when runnig
loopback selftest.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c