sfc: Delete EFX_PAGE_IP_ALIGN, equivalent to NET_IP_ALIGN
The two architectures that define CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS (powerpc and x86) now both define NET_IP_ALIGN as 0, so there is no need for this optimisation any more. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0f0d15100a
commit
c14ff2ea2d
3 changed files with 6 additions and 19 deletions
|
@ -467,25 +467,12 @@ enum nic_state {
|
|||
STATE_RECOVERY = 3, /* device recovering from PCI error */
|
||||
};
|
||||
|
||||
/*
|
||||
* Alignment of page-allocated RX buffers
|
||||
*
|
||||
* Controls the number of bytes inserted at the start of an RX buffer.
|
||||
* This is the equivalent of NET_IP_ALIGN [which controls the alignment
|
||||
* of the skb->head for hardware DMA].
|
||||
*/
|
||||
#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
|
||||
#define EFX_PAGE_IP_ALIGN 0
|
||||
#else
|
||||
#define EFX_PAGE_IP_ALIGN NET_IP_ALIGN
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Alignment of the skb->head which wraps a page-allocated RX buffer
|
||||
*
|
||||
* The skb allocated to wrap an rx_buffer can have this alignment. Since
|
||||
* the data is memcpy'd from the rx_buf, it does not need to be equal to
|
||||
* EFX_PAGE_IP_ALIGN.
|
||||
* NET_IP_ALIGN.
|
||||
*/
|
||||
#define EFX_PAGE_SKB_ALIGN 2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue