net/i40e/base: fix bit test mask

Incorrect bit mask was used for testing "get link status" response.
Instead of I40E_AQ_LSE_ENABLE (which is actually 0x03) it should
be I40E_AQ_LSE_IS_ENABLED (which is defined as 0x01).

Fixes: 8db9e2a1b232 ("i40e: base driver")

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
This commit is contained in:
Jingjing Wu 2016-12-10 19:24:26 +08:00 committed by Ferruh Yigit
parent dd0f6fbf5e
commit 2551ed46ff

View File

@ -1975,7 +1975,7 @@ enum i40e_status_code i40e_aq_get_link_info(struct i40e_hw *hw,
else else
hw_link_info->crc_enable = false; 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; hw_link_info->lse_enable = true;
else else
hw_link_info->lse_enable = false; hw_link_info->lse_enable = false;