net/hns3: support flow control autoneg for copper port
authorHuisong Li <lihuisong@huawei.com>
Tue, 13 Apr 2021 13:47:18 +0000 (21:47 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 15 Apr 2021 00:55:04 +0000 (02:55 +0200)
commit1f411e31a826a9b080c2834a0944b028213e9ed6
treef6912850175972e2c30f113d7961f7fc81b233ef
parentbdaf190f8235ff0968cc346c005fceccda4e1af0
net/hns3: support flow control autoneg for copper port

If the flow control auto-negotiation is not supported and the flow
control modes on the local and link partner is asymmetric, the flow
control on the NIC does not take effect. The support of the
auto-negotiation capability requires the cooperation of the firmware
and driver.

This patch supports the flow control auto-negotiation only for copper
port. For optical ports, the forced flow control mode is still used.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c