OSDN Git Service

ice: Free VSI contexts during for unload
authorVictor Raj <victor.raj@intel.com>
Fri, 26 Oct 2018 17:40:53 +0000 (10:40 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 6 Nov 2018 20:46:47 +0000 (12:46 -0800)
commit33e055fcc26909b1d66b5d1f334aee38356068d7
treeecfc4389eb8992c2b7bbbf3346315e4124289ee7
parent0f5d4c21a50716f8bd4e220544b82dca7408d113
ice: Free VSI contexts during for unload

In the unload path, all VSIs are freed. Also free the related VSI
contexts to prevent memory leaks.

Signed-off-by: Victor Raj <victor.raj@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_switch.c
drivers/net/ethernet/intel/ice/ice_switch.h