net/hns3: query basic info for VF
authorChengchang Tang <tangchengchang@huawei.com>
Sat, 10 Jul 2021 01:58:32 +0000 (09:58 +0800)
committerAndrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru>
Tue, 13 Jul 2021 09:41:32 +0000 (11:41 +0200)
commit2735b35538afea5679ba2197e771dfb9b115b410
tree1a52f1cd8b915f31ea46a3c3bc8522007c4971a6
parentae2b3ba6430d9f86cc3583b893f442aaa8934655
net/hns3: query basic info for VF

There are some features of VF depend on PF, so it's necessary for VF
to know whether current PF supports. Therefore, the final capability
set of VF will be composed of the capability set of hardware and the
capability set of PF.

For compatibility reasons, the mailbox HNS3_MBX_GET_TCINFO has been
modified to obatin more basic information about the current PF, including
the communication interface version and current PF capabilities set.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_ethdev_vf.c
drivers/net/hns3/hns3_mbx.h