ixgbe: Fix memory leak when SR-IOV VFs are direct assigned
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 5 May 2012 05:32:26 +0000 (05:32 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 20 Jul 2012 01:13:07 +0000 (18:13 -0700)
commitd773d1310625be3b040b436178ad59a0af8888f1
tree22934aa31e7a717ce00bfa6e8d5e9b46310f5425
parent1d9c0bfd0f0470c8fb0033999f623d4eec7b1a2c
ixgbe: Fix memory leak when SR-IOV VFs are direct assigned

The VF driver had a memory leak that would occur if VFs were assigned to a
guest.  The amount of leak would vary with the number of VFs but could max
out at about 14K per PF.  To reproduce the leak all you would need to do is
enable all the VFs on the first PF.  Then start a loop of loading and
unloading the driver with max_vfs=63 for the first port.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c