aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeerav Parikh <neerav.parikh@intel.com>2016-06-07 12:14:55 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-06-27 19:22:28 -0400
commit85a1aab79c54c7e44cb0f98e5aa797fbb0457866 (patch)
treeed9c9bc139545bf08b809328efd9056b1b8bdc11
parenta70e407f6d0b0f63b17d468f78b666d33f264ba1 (diff)
i40e: Don't notify client(s) for DCB changes on all VSIs
When LLDP/DCBX change happens the i40e driver code flow tried to notify the client(s) for each of the PF VSIs. This resulted into kernel panic on the first VSI that didn't have any netdev associated to it. The DCB change notification to the client(s) should be done only once for the PF/LAN VSI where the client(s) instances have been added to. Also, move the notification call after the PF driver has made changes related to the updated DCB configuration. Signed-off-by: Neerav Parikh <neerav.parikh@intel.com> Signed-off-by: Usha Ketineni <usha.k.ketineni@intel.com> Tested-by: Ronald J Bynoe <ronald.j.bynoe@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index a313194c1810..2b1140563a64 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -4982,7 +4982,6 @@ static void i40e_dcb_reconfigure(struct i40e_pf *pf)
4982 if (pf->vsi[v]->netdev) 4982 if (pf->vsi[v]->netdev)
4983 i40e_dcbnl_set_all(pf->vsi[v]); 4983 i40e_dcbnl_set_all(pf->vsi[v]);
4984 } 4984 }
4985 i40e_notify_client_of_l2_param_changes(pf->vsi[v]);
4986 } 4985 }
4987} 4986}
4988 4987
@@ -5730,6 +5729,8 @@ static int i40e_handle_lldp_event(struct i40e_pf *pf,
5730 i40e_service_event_schedule(pf); 5729 i40e_service_event_schedule(pf);
5731 } else { 5730 } else {
5732 i40e_pf_unquiesce_all_vsi(pf); 5731 i40e_pf_unquiesce_all_vsi(pf);
5732 /* Notify the client for the DCB changes */
5733 i40e_notify_client_of_l2_param_changes(pf->vsi[pf->lan_vsi]);
5733 } 5734 }
5734 5735
5735exit: 5736exit: