]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Disable vf vlan filter when vf vlan table is full
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 1 Jun 2018 16:52:01 +0000 (17:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jun 2018 18:23:54 +0000 (14:23 -0400)
commit606ba47a5f7acc4857bd93de6310eb31a8bafe67
tree0bcbc72075d02410b3a0fa46824a0e5e73e7f01f
parent35db7cc0f24f85cb4ceb9dfc8e35c18009dd9a06
net: hns3: Disable vf vlan filter when vf vlan table is full

This is only 128 entries for hardware's vf vlan table, when
the vf table is full, the firmware will disable the vf vlan
filter and return a resp_code of HCLGE_VF_VLAN_NO_ENTRY to
driver.

This patch checks the if resp_code from firmware is
HCLGE_VF_VLAN_NO_ENTRY, if yes, then print a warning and
return ok to the caller.

Fixes: 22c0e2ce21dd ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c