net/sfc/base: optimize credits overflow check
authorAndrew Rybchenko <arybchenko@solarflare.com>
Thu, 16 Nov 2017 08:04:09 +0000 (08:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit3bdf5f17219409cc8adf31e2cfdde784fdf063a1
tree0cde26d7af1a4160339c6b546aa60a340d3d98fd
parentd8115cadb30da0f44b150b3f212e61ac06eee8a3
net/sfc/base: optimize credits overflow check

Apply check against firmware maximum just before pushing.
However, it does not save from overflow inside firmware,
if firmware still have some credits.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_ev.c
drivers/net/sfc/base/ef10_rx.c