]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: ensure recovery after allocation failures
authorRobert Stonehouse <rstonehouse@solarflare.com>
Thu, 14 Feb 2019 17:27:43 +0000 (17:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 17:47:16 +0000 (12:47 -0500)
commit30e91203ed6c42fc27bdfece797ae1d29b5678f5
tree327e50657842ed8c78f5629c23e1c4fd445f9cf9
parent2ec3085d504ca647365e300a75008b72bac84046
sfc: ensure recovery after allocation failures

After failing to allocate a receive buffer the driver may fail to ever
request additional allocations. EF10 NICs require new receive buffers to
be pushed in batches of eight or more. The test for whether a slow fill
should be scheduled failed to take account of this. There is little
downside to *always* requesting a slow fill if we failed to allocate a
buffer, so the condition has been removed completely. The timer that
triggers the request for a refill has also been shortened.

Signed-off-by: Robert Stonehouse <rstonehouse@solarflare.com>
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/rx.c