]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit6c251711b37ff14e2507bbc2401ac3ef0935ceb1
tree0bcbc72075d02410b3a0fa46824a0e5e73e7f01f
parent07f7ee6ec0e2193f1abca36cd7154986aec4893e
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: 46a3df9f9718 ("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