net/hns3: fix FEC state query
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 10 Dec 2020 12:48:43 +0000 (20:48 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:04 +0000 (16:03 +0100)
commit2390bf217f4df0228f238d4ba4b57097feef1d0e
treee8a804cd6c7067f2fd91696a6e0a610200a0e22f
parent1181500b2fc51f6f9f5544109d1758078e6cea22
net/hns3: fix FEC state query

As FEC is not supported below 10 Gbps,
CMD(HNS3_OPC_CONFIG_FEC_MODE) offered from
Firmware read will return fail in 10 Gbps device.

This patch will prevent read this CMD when below 10 Gbps,
as this is non-sense.

Fixes: 9bf2ea8dbc65 ("net/hns3: support FEC")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_ethdev.c
drivers/net/hns3/hns3_ethdev.h