]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
i40evf: Allocate Rx buffers properly
authorMitch Williams <mitch.a.williams@intel.com>
Mon, 18 Apr 2016 18:33:48 +0000 (11:33 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 6 May 2016 06:07:30 +0000 (23:07 -0700)
commitb163098ea1eece88a8834952dcbade1f17378731
treece36096ca3b7063e656974079ad956e0bf402252
parentbec60fc42b285344b027c87444c7fd6caade0ceb
i40evf: Allocate Rx buffers properly

Allocate the correct number of RX buffers, and don't fiddle with
next_to_use. The common RX code handles all of this. This fixes a memory
leak of one page each time the driver is opened.

Change-Id: Id06eca353086e084921f047acad28c14745684ee
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c