]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d0f2e10109359c0017a4cede3c29cb98086d5a6
tree22934aa31e7a717ce00bfa6e8d5e9b46310f5425
parent0db916b0f2fd4a9fe9ed665c68d8294dbfb84aa4
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