]> 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)
commit313640a3faa45d4fe2470baf1fcb1efc1dfa2648
tree22934aa31e7a717ce00bfa6e8d5e9b46310f5425
parent7c01e34475a85bdb500aa4ddf84fa22866eb697e
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