aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c b/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
index 400fb28db576..bd5079d5c1b6 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c
@@ -178,6 +178,10 @@ void i40e_dcbnl_set_all(struct i40e_vsi *vsi)
178 if (!(pf->flags & I40E_FLAG_DCB_ENABLED)) 178 if (!(pf->flags & I40E_FLAG_DCB_ENABLED))
179 return; 179 return;
180 180
181 /* MFP mode but not an iSCSI PF so return */
182 if ((pf->flags & I40E_FLAG_MFP_ENABLED) && !(pf->hw.func_caps.iscsi))
183 return;
184
181 dcbxcfg = &hw->local_dcbx_config; 185 dcbxcfg = &hw->local_dcbx_config;
182 186
183 /* Set up all the App TLVs if DCBx is negotiated */ 187 /* Set up all the App TLVs if DCBx is negotiated */
@@ -282,6 +286,10 @@ void i40e_dcbnl_flush_apps(struct i40e_pf *pf,
282 struct i40e_dcb_app_priority_table app; 286 struct i40e_dcb_app_priority_table app;
283 int i; 287 int i;
284 288
289 /* MFP mode but not an iSCSI PF so return */
290 if ((pf->flags & I40E_FLAG_MFP_ENABLED) && !(pf->hw.func_caps.iscsi))
291 return;
292
285 for (i = 0; i < old_cfg->numapps; i++) { 293 for (i = 0; i < old_cfg->numapps; i++) {
286 app = old_cfg->app[i]; 294 app = old_cfg->app[i];
287 /* The APP is not available anymore delete it */ 295 /* The APP is not available anymore delete it */