net: hns3: Optimize for unicast mac vlan table
authorJian Shen <shenjian15@huawei.com>
Fri, 5 Oct 2018 17:03:26 +0000 (18:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 19:01:55 +0000 (12:01 -0700)
commit39932473b63ebbfdebe298cad09711349feddbc6
treebaea5c710186ca53485ac28494ca9c7b7608a56c
parentf05e21097121b24cad92b15b570386bc68574d68
net: hns3: Optimize for unicast mac vlan table

In previously implement for unicast mac vlan table, the space is
shared by all the functions, driver does nothing when the space is
exhausted. This patch preallocates the space of unicast mac vlan
table for each function by software. Each function can only use its
private space and available shared space, avoiding single function
exhausts too much space, and other functions are unable to add
unicast mac address.

Signed-off-by: Jian Shen <shenjian15@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_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h