mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 11:05:07 +07:00
i40e: Bit test mask correction
Incorrect bit mask was used for testing "get link status" response. Instead of I40E_AQ_LSE_ENABLE (which is actually 0x03) it most probably should be I40E_AQ_LSE_IS_ENABLED (which is defined as 0x01). Change-ID: Ia199142906720507f847de3a33a25c61a9781b2f Signed-off-by: Filip Sadowski <filip.sadowski@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
ed245406da
commit
7ed3573223
@ -1849,7 +1849,7 @@ i40e_status i40e_aq_get_link_info(struct i40e_hw *hw,
|
||||
else
|
||||
hw_link_info->crc_enable = false;
|
||||
|
||||
if (resp->command_flags & cpu_to_le16(I40E_AQ_LSE_ENABLE))
|
||||
if (resp->command_flags & cpu_to_le16(I40E_AQ_LSE_IS_ENABLED))
|
||||
hw_link_info->lse_enable = true;
|
||||
else
|
||||
hw_link_info->lse_enable = false;
|
||||
|
Loading…
Reference in New Issue
Block a user