]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
i40e/i40evf: try again after failure
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Thu, 14 Jan 2016 00:51:46 +0000 (16:51 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:20:33 +0000 (10:20 +0100)
commit26a51e9de963418bd661bc8a10593bc5558432bf
treeeb9c0d459a905e3d787128773bcbe09f5d757f7a
parent8d0f1228f992c71078c4891b1fba4fc0ab098826
i40e/i40evf: try again after failure

BugLink: http://bugs.launchpad.net/bugs/1547674
This is the "Don't Give Up" patch.  Previously the
driver could fail an allocation, and then possibly stall
a queue forever, by never coming back to continue receiving
or allocating buffers.

With this patch, the driver will keep polling trying to allocate
receive buffers until it succeeds.  This should keep all receive
queues running even in the face of memory pressure.

Also update copyright year in file header.

Change-ID: I2b103d1ce95b9831288a7222c3343ffa1988b81b
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from net-next commit c2e245ab1e9a61e66217aafea66c7dc6481f12f0)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.h