]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 17:41:24 +0000 (10:41 -0700)
commitf81b366afe17edf707d5d898089e15cf4a136edf
tree15f53f74ca3646e70f4a4d6caf1c81aee9bb51f4
parent7a6767300b696c72f2e13059c5c5bad13495aff5
i40evf: Allocate Rx buffers properly

Orabug: 23176970

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>
(cherry picked from commit b163098ea1eece88a8834952dcbade1f17378731)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c