net/sfc: calculate Rx buffer size which may be used
authorAndrew Rybchenko <arybchenko@solarflare.com>
Tue, 29 Nov 2016 16:19:18 +0000 (16:19 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:39:26 +0000 (19:39 +0100)
commit0c7a0c35f24c1997be7e30d53c8486eb546ae13a
tree9f43991e7fdbb862e95d8eefcff3d62b2859f2e7
parentce35b05c635ea358242983b3d353e24c5edf3264
net/sfc: calculate Rx buffer size which may be used

Take Rx buffer start alignment and end-padding into account.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/sfc/sfc_rx.c
drivers/net/sfc/sfc_rx.h