net/hns3: move speed auto-negotiation warning
authorHuisong Li <lihuisong@huawei.com>
Sat, 17 Jul 2021 02:02:54 +0000 (10:02 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Jul 2021 12:41:47 +0000 (14:41 +0200)
commit6dc90c7eb306d216bb5e985e6cdb701420e29b5e
tree68162f17bf58d87391f26f1743acedb8daf929e3
parent6c1e3b603bc0eca52b50d4cde23d25061749ca25
net/hns3: move speed auto-negotiation warning

PF driver prints a warning on device that does not support auto-negotiation
when user does not configure "link_speeds" (default 0), which means
auto-negotiation. Currently, this warning information is printed in
dev_configure stage and a success is returned. Perhaps the user may call
dev_configure multiple times before dev_start for some reason or purpose.
In this case, this message may be printed multiple times. So this patch
moves it to dev_start stage.

Fixes: cfc9fe48c4d4 ("net/hns3: move link speeds check to configure")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev.c