diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2013-06-04 21:57:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-06 16:21:11 -0700 |
commit | 1b44791ab4ed27e6fa69f5dfa81b0fd48b1d050d (patch) | |
tree | 185540c85199ef5cb78f24ce11470a7314e37125 /drivers/net/ethernet/cadence/macb.h | |
parent | 540ad1b888ad9564520c1c8c48ad675f76ffce62 (diff) | |
download | talos-obmc-linux-1b44791ab4ed27e6fa69f5dfa81b0fd48b1d050d.tar.gz talos-obmc-linux-1b44791ab4ed27e6fa69f5dfa81b0fd48b1d050d.zip |
net/macb: increase RX buffer size for GEM
Macb Ethernet controller requires a RX buffer of 128 bytes. It is
highly sub-optimal for Gigabit-capable GEM that is able to use
a bigger DMA buffer. Change this constant and associated macros
with data stored in the private structure.
RX DMA buffer size has to be multiple of 64 bytes as indicated in
DMA Configuration Register specification.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h index 548c0ecae869..9b5e19f8b61d 100644 --- a/drivers/net/ethernet/cadence/macb.h +++ b/drivers/net/ethernet/cadence/macb.h @@ -551,6 +551,7 @@ struct macb { unsigned int rx_tail; struct macb_dma_desc *rx_ring; void *rx_buffers; + size_t rx_buffer_size; unsigned int tx_head, tx_tail; struct macb_dma_desc *tx_ring; |