net/hns3: fail setting FEC if one bit mode is not supported
authorChengwen Feng <fengchengwen@huawei.com>
Mon, 10 May 2021 13:38:13 +0000 (21:38 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 18:07:59 +0000 (20:07 +0200)
commitab8c5005853ac4f77b645396ce681fb6ea2bb5e9
tree529d57081ddb33cf271f2c19bc3783cb8cd0be3e
parentac8962e96599b713b3e87d22be602a2d9d951321
net/hns3: fail setting FEC if one bit mode is not supported

If the FEC mode was not supported, it should return error code.

This patch also adds a space when log error info.

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