net/sfc/base: more accurately calculate number of PS credits
authorAndrew Rybchenko <arybchenko@solarflare.com>
Thu, 16 Nov 2017 08:04:12 +0000 (08:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commitede62b5a56ff9c218b8a3eabdd6bbd466bcee903
tree647e7901b57f3f9dc552b0cf6031c5e18b19e9e4
parentc2b60233512b9b020c09bd794e6c3f84985f8102
net/sfc/base: more accurately calculate number of PS credits

Maximum number of packets per 64k buffer should be rounded up
when calculating number of credits by event queue size.

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