net/i40e/base: fix display of FEC settings
Fix display of FEC settings for ethtool.
This patch change variable 'phy.link_info.req_fec_info' sent to ethtool.
Without this patch wrong FEC settings can be shown.
Fixes: 1216fb9f0c
("net/i40e/base: store the requested FEC information")
Signed-off-by: Jaroslaw Gawin <jaroslawx.gawin@intel.com>
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
This commit is contained in:
parent
3010f08599
commit
b330a1c5c6
@ -2911,9 +2911,16 @@ enum i40e_status_code i40e_update_link_info(struct i40e_hw *hw)
|
||||
if (status)
|
||||
return status;
|
||||
|
||||
hw->phy.link_info.req_fec_info =
|
||||
abilities.fec_cfg_curr_mod_ext_info &
|
||||
(I40E_AQ_REQUEST_FEC_KR | I40E_AQ_REQUEST_FEC_RS);
|
||||
if (abilities.fec_cfg_curr_mod_ext_info &
|
||||
I40E_AQ_ENABLE_FEC_AUTO)
|
||||
hw->phy.link_info.req_fec_info =
|
||||
(I40E_AQ_REQUEST_FEC_KR |
|
||||
I40E_AQ_REQUEST_FEC_RS);
|
||||
else
|
||||
hw->phy.link_info.req_fec_info =
|
||||
abilities.fec_cfg_curr_mod_ext_info &
|
||||
(I40E_AQ_REQUEST_FEC_KR |
|
||||
I40E_AQ_REQUEST_FEC_RS);
|
||||
|
||||
i40e_memcpy(hw->phy.link_info.module_type, &abilities.module_type,
|
||||
sizeof(hw->phy.link_info.module_type), I40E_NONDMA_TO_NONDMA);
|
||||
|
Loading…
Reference in New Issue
Block a user