aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Sadowski <filip.sadowski@intel.com>2016-09-14 16:24:33 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-10-28 23:28:39 -0700
commit7ed3573223dd6bf36b1bd35c8e5e3d0cd4f6f690 (patch)
tree6e3c00061eccac832fb32aaf9a7a4974bac2c616
parenti40e: Rewrite Flow Director busy wait loop (diff)
downloadlinux-dev-7ed3573223dd6bf36b1bd35c8e5e3d0cd4f6f690.tar.xz
linux-dev-7ed3573223dd6bf36b1bd35c8e5e3d0cd4f6f690.zip
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>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c
index 2154a34c1dd8..fe8100bb1027 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_common.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c
@@ -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;