]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Replace some literal constants with EFX_PAGE_SIZE/EFX_BUF_SIZE
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 2 Feb 2012 21:21:15 +0000 (21:21 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Mon, 13 Feb 2012 23:40:49 +0000 (23:40 +0000)
commitbb17656b00edc07f10fd7b62c7a145907fe4e612
tree812b2cab8bbeb0569909d8646ec864bef11c40c7
parentea786458e05a9c771934ee044fbe1477ca2b3e3b
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>
drivers/net/ethernet/sfc/nic.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/tx.c