net: hns3: PF support get multicast MAC address space assigned by firmware
authorGuangbin Huang <huangguangbin2@huawei.com>
Tue, 14 Sep 2021 12:11:17 +0000 (20:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Sep 2021 13:32:29 +0000 (14:32 +0100)
commit5c56ff486dfcb95652cac7802bfd032f667d97ec
tree7c79c68d7d85b3b9c7c8ef3941694403b954f972
parente435a6b5315a05a4e4e9f77679a57fd0d679e384
net: hns3: PF support get multicast MAC address space assigned by firmware

The new firmware supports to divides the whole multicast MAC address space
equally to functions of all PFs, and calculates the space size of each PF
according to its function number.

To support this feature, PF driver adds querying multicast MAC address
space size from firmware and limits used number according to space size.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h