net/hns3: get device capability in primary process
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Wed, 1 Jul 2020 11:54:37 +0000 (19:54 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:26 +0000 (23:38 +0200)
commitab2e2e34416371817a21a41fc3def231675d4487
tree7abdc08a07c5c0dced9489926aa2d819488011b3
parentb4e4d7ac9f094587edbf10d61693b7cc1528e92f
net/hns3: get device capability in primary process

This patch optimizes the code to get device capability in primary
process, and moves the code of getting PCI revision id in order to avoid
evaluating the private hw->revision of shared PMD-specific private data
in slave process.

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_ethdev_vf.c