diff options
author | Akeem G Abodunrin <akeem.g.abodunrin@intel.com> | 2014-05-10 00:49:08 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-06-08 05:01:40 -0400 |
commit | c6423ff1005902dd17f2efca5f1a0716e5259283 (patch) | |
tree | 1e04d1b67d35254f476d991163478323d3a425e5 | |
parent | b34f90e7040d8c20ceb51b26359ea6014a707921 (diff) |
i40e: Fix incorrect feature configuration status
This patch fixes an issue where FD SB/ATR and NTUPLE configurations status are
reported erroneously. Without this patch, driver reports FDir without further
information.
Change-ID: I5bdd2871b7f2db1e5f5e76c741ae6a0dc603b453
Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c index 00fdc3035951..8ab3c88ef53d 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_main.c +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c | |||
@@ -8237,11 +8237,12 @@ static void i40e_print_features(struct i40e_pf *pf) | |||
8237 | 8237 | ||
8238 | if (pf->flags & I40E_FLAG_RSS_ENABLED) | 8238 | if (pf->flags & I40E_FLAG_RSS_ENABLED) |
8239 | buf += sprintf(buf, "RSS "); | 8239 | buf += sprintf(buf, "RSS "); |
8240 | buf += sprintf(buf, "FDir "); | ||
8241 | if (pf->flags & I40E_FLAG_FD_ATR_ENABLED) | 8240 | if (pf->flags & I40E_FLAG_FD_ATR_ENABLED) |
8242 | buf += sprintf(buf, "ATR "); | 8241 | buf += sprintf(buf, "FD_ATR "); |
8243 | if (pf->flags & I40E_FLAG_FD_SB_ENABLED) | 8242 | if (pf->flags & I40E_FLAG_FD_SB_ENABLED) { |
8243 | buf += sprintf(buf, "FD_SB "); | ||
8244 | buf += sprintf(buf, "NTUPLE "); | 8244 | buf += sprintf(buf, "NTUPLE "); |
8245 | } | ||
8245 | if (pf->flags & I40E_FLAG_DCB_ENABLED) | 8246 | if (pf->flags & I40E_FLAG_DCB_ENABLED) |
8246 | buf += sprintf(buf, "DCB "); | 8247 | buf += sprintf(buf, "DCB "); |
8247 | if (pf->flags & I40E_FLAG_PTP) | 8248 | if (pf->flags & I40E_FLAG_PTP) |