]> 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)
commit22ac518beb74eb77298d9d7ca53651a75153f8cb
treebaea5c710186ca53485ac28494ca9c7b7608a56c
parent89e80605c07881c1abd469da0d88165e53b8bac3
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