net/hns3: move link speeds check to configure
authorHuisong Li <lihuisong@huawei.com>
Sat, 17 Apr 2021 09:54:59 +0000 (17:54 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 20 Apr 2021 00:40:43 +0000 (02:40 +0200)
commitcfc9fe48c4d4fc6f747cec89a2583403706c518b
tree0a7988ca9911aceb6ab80b87331e20ea6bde29dc
parent1bdcca8006e4c690d017531f7fc6c31b19ad8d1d
net/hns3: move link speeds check to configure

This patch moves the check for "link_speeds" in dev_conf to
dev_configure, so that users know whether "link_speeds" is valid in
advance.

Fixes: bdaf190f8235 ("net/hns3: support link speed autoneg for PF")
Fixes: 400d307e1a60 ("net/hns3: support fixed link speed")

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