]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sfc: Replace some literal constants with EFX_PAGE_SIZE/EFX_BUF_SIZE
authorMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 14 Nov 2012 16:22:39 +0000 (08:22 -0800)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Wed, 14 Nov 2012 16:22:39 +0000 (08:22 -0800)
commit3cb7cd8a0d2eafe6500940d55b93d067ee897271
tree9235db1d6f070e678ede6605d40c35c657262663
parent8d380725a04118524e5d5d944cd5ff441cac5891
sfc: Replace some literal constants with EFX_PAGE_SIZE/EFX_BUF_SIZE

Mainline commit 5b6262d0ccf759a16fabe11d904a2531125a4b71

The 'page size' for PCIe DMA, i.e. the alignment of boundaries at
which DMA must be broken, is 4KB.  Name this value as EFX_PAGE_SIZE
and use it in efx_max_tx_len().  Redefine EFX_BUF_SIZE as
EFX_PAGE_SIZE since its value is also a result of that requirement,
and use it in efx_init_special_buffer().

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Orabug: 14769994
Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
(cherry picked from commit 0d66c9ee8813a35eb5ce78ac0b2fb0286cd088ea)

Conflicts:
drivers/net/sfc/nic.h
drivers/net/sfc/nic.c
drivers/net/sfc/tx.c