commit | 5b6262d0ccf759a16fabe11d904a2531125a4b71 | [log] [tgz] |
---|---|---|
author | Ben Hutchings <bhutchings@solarflare.com> | Thu Feb 02 21:21:15 2012 +0000 |
committer | Ben Hutchings <bhutchings@solarflare.com> | Mon Feb 13 23:40:49 2012 +0000 |
tree | 812b2cab8bbeb0569909d8646ec864bef11c40c7 | |
parent | fadac6aae1b8d9344beaa18aa9035869d773fd98 [diff] |
sfc: Replace some literal constants with EFX_PAGE_SIZE/EFX_BUF_SIZE 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>