diff options
author | Guangbin Huang <huangguangbin2@huawei.com> | 2022-08-30 13:11:15 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-08-31 15:10:49 +0200 |
commit | eaf83ae59e18a3480afe222daf9537d58165e052 (patch) | |
tree | 9c7060a8185653a2c733e1fb9da708d590e6786d /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | |
parent | net: hns3: add getting capabilities of gro offload and fd from firmware (diff) | |
download | linux-eaf83ae59e18a3480afe222daf9537d58165e052.tar.xz linux-eaf83ae59e18a3480afe222daf9537d58165e052.zip |
net: hns3: add querying fec ability from firmware
For some new devices, driver can queries fec ability from firmware to
decide which FEC mode can be supported.
If devices of old version which not support querying fec ability, driver
sets fixed ability according to current speed.
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h index f9d89511eb32..075f50071f66 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -347,7 +347,8 @@ struct hclge_sfp_info_cmd { u8 autoneg_ability; /* whether support autoneg */ __le32 speed_ability; /* speed ability for current media */ __le32 module_type; - u8 rsv[8]; + u8 fec_ability; + u8 rsv[7]; }; #define HCLGE_MAC_CFG_FEC_AUTO_EN_B 0 |