net/sfc/base: add efsys macro to get memory region size
authorAndy Moreton <amoreton@solarflare.com>
Tue, 20 Feb 2018 07:33:52 +0000 (07:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:42 +0000 (14:08 +0200)
commit9768b715c61cbdfdeb84e08fa35fa92819b2be08
tree2522b50986b87778686924ee638854b131879feb
parentf1ba8c27fd7f4477ffa6572e05897641b1822bf7
net/sfc/base: add efsys macro to get memory region size

EFSYS_MEM_SIZE() reports the DMA mapped size of an efsys_mem_t
allocated region (the allocation size may be different due to
memory allocator and DMA alignment restrictions).

This ensures that common code internals have explicit knowledge
of the usable size of DMA mapped memory regions.

Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_rx.c
drivers/net/sfc/base/ef10_tx.c
drivers/net/sfc/base/efx_intr.c
drivers/net/sfc/base/efx_mcdi.c
drivers/net/sfc/base/siena_phy.c
drivers/net/sfc/efsys.h