aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_main.c')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index dbd6fffd9b85..d4461eec26bd 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -11331,16 +11331,15 @@ static int i40e_sw_init(struct i40e_pf *pf)
11331 /* IWARP needs one extra vector for CQP just like MISC.*/ 11331 /* IWARP needs one extra vector for CQP just like MISC.*/
11332 pf->num_iwarp_msix = (int)num_online_cpus() + 1; 11332 pf->num_iwarp_msix = (int)num_online_cpus() + 1;
11333 } 11333 }
11334 /* Stopping the FW LLDP engine is only supported on the 11334 /* Stopping FW LLDP engine is supported on XL710 and X722
11335 * XL710 with a FW ver >= 1.7. Also, stopping FW LLDP 11335 * starting from FW versions determined in i40e_init_adminq.
11336 * engine is not supported if NPAR is functioning on this 11336 * Stopping the FW LLDP engine is not supported on XL710
11337 * part 11337 * if NPAR is functioning so unset this hw flag in this case.
11338 */ 11338 */
11339 if (pf->hw.mac.type == I40E_MAC_XL710 && 11339 if (pf->hw.mac.type == I40E_MAC_XL710 &&
11340 !pf->hw.func_caps.npar_enable && 11340 pf->hw.func_caps.npar_enable &&
11341 (pf->hw.aq.api_maj_ver > 1 || 11341 (pf->hw.flags & I40E_HW_FLAG_FW_LLDP_STOPPABLE))
11342 (pf->hw.aq.api_maj_ver == 1 && pf->hw.aq.api_min_ver > 6))) 11342 pf->hw.flags &= ~I40E_HW_FLAG_FW_LLDP_STOPPABLE;
11343 pf->hw_features |= I40E_HW_STOPPABLE_FW_LLDP;
11344 11343
11345#ifdef CONFIG_PCI_IOV 11344#ifdef CONFIG_PCI_IOV
11346 if (pf->hw.func_caps.num_vfs && pf->hw.partition_id == 1) { 11345 if (pf->hw.func_caps.num_vfs && pf->hw.partition_id == 1) {