net/hns3: support masking device capability
authorChengwen Feng <fengchengwen@huawei.com>
Thu, 15 Apr 2021 03:52:00 +0000 (11:52 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 19 Apr 2021 17:15:45 +0000 (19:15 +0200)
commit70791213242ea01f75fb2706fcf75a1f52efa068
treee7fe0c6bed37164e9177f14460c6f90d6957c52d
parent0797fa6ccf9dec6e9e079d76ca2cedf7ceda0df4
net/hns3: support masking device capability

This patch supports runtime config of mask device capability, it was
used to mask the capability which queried from firmware.

The device argument key is "dev_caps_mask" which takes hexadecimal
bitmask where each bit represents whether mask corresponding capability.

Its main purpose is to debug and avoid problems.

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
doc/guides/nics/hns3.rst
drivers/net/hns3/hns3_cmd.c
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev.h
drivers/net/hns3/hns3_ethdev_vf.c