sfc: Move all TX DMA length limiting into tx.c
Replace the duplicated logic in efx_enqueue_skb() and efx_tx_queue_insert() with an inline function, efx_max_tx_len(). Remove the failed attempt at abstracting hardware-specifics and put all the magic numbers in efx_max_tx_len(). Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6d51d30750
commit
63f1988419
@@ -870,8 +870,6 @@ static inline const char *efx_dev_name(struct efx_nic *efx)
|
||||
* @evq_ptr_tbl_base: Event queue pointer table base address
|
||||
* @evq_rptr_tbl_base: Event queue read-pointer table base address
|
||||
* @max_dma_mask: Maximum possible DMA mask
|
||||
* @tx_dma_mask: TX DMA mask
|
||||
* @bug5391_mask: Address mask for bug 5391 workaround
|
||||
* @rx_buffer_padding: Padding added to each RX buffer
|
||||
* @max_interrupt_mode: Highest capability interrupt mode supported
|
||||
* from &enum efx_init_mode.
|
||||
@@ -888,8 +886,6 @@ struct efx_nic_type {
|
||||
unsigned int evq_rptr_tbl_base;
|
||||
|
||||
u64 max_dma_mask;
|
||||
unsigned int tx_dma_mask;
|
||||
unsigned bug5391_mask;
|
||||
|
||||
unsigned int rx_buffer_padding;
|
||||
unsigned int max_interrupt_mode;
|
||||
|
Reference in New Issue
Block a user