]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7e7c82678eee6f6d07c7e39e9c39d77a297119f
treebaea5c710186ca53485ac28494ca9c7b7608a56c
parent8f3e468af851dd7d775b329f6e4f56ae61b7703b
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