numam-dpdk/drivers
Huisong Li 2192c428f9 net/hns3: fix firmware compatibility configuration
The firmware compatibility configuration in PF driver is used to
maintain the compatibility of some features of the driver and
firmware, and requires firmware to enable these features. Currently,
the configuration is in hns3_init_hardware(), which is a little back.
Because firmware may clear some configurations (such as, MAC related)
after receiving the command. And firmware can not be aware of some
default initializations (such as, flow control) before executing the
command to set the copper PHY when the PHY is controlled by firmware.
Therefore, it is recommended that no other hardware resources are
configured before the compatibility configuration. And it should be
moved to hns3_cmd_init(), which is responsible for the firmware
command initialization of driver.

In addition, the driver needs to perform corresponding processing
if the command fails to be sent.
1) If firmware fails to take over the copper PHY, the copper port fails
   to initialize.
2) If fails to enable the report of link events, the device does not
   support the LSC capability.

Fixes: bff6ebfe30d4 ("net/hns3: refactor PF LSC event report")
Fixes: bac6a06441 ("net/hns3: fix link status change from firmware")
Cc: stable@dpdk.org

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
2021-04-15 02:55:04 +02:00
..
baseband bbdev: add explicit enum for code block mode 2021-04-16 12:43:33 +02:00
bus eal: make OS shims internal 2021-04-15 01:56:20 +02:00
common common/iavf: add protocol header for IP fragment 2021-04-13 11:31:25 +02:00
compress compress/mlx5: support timestamp format 2021-03-16 10:05:39 +01:00
crypto drivers: add missing includes 2021-04-14 11:23:13 +02:00
event drivers: add missing includes 2021-04-14 11:23:13 +02:00
mempool mempool/cnxk: add cn10k batch dequeue 2021-04-09 08:32:24 +02:00
net net/hns3: fix firmware compatibility configuration 2021-04-15 02:55:04 +02:00
raw raw/octeontx2_dma: assign PCI device in DPI VF 2021-04-15 10:33:52 +02:00
regex common/mlx5: align log prefix across drivers 2021-04-07 09:43:32 +02:00
vdpa drivers: align log names 2021-04-08 18:32:31 +02:00
meson.build config: enable/disable drivers in Arm builds 2021-04-15 22:34:37 +02:00