]> git.baikalelectronics.ru Git - kernel.git/commit
net/macb: increase RX buffer size for GEM
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 4 Jun 2013 21:57:11 +0000 (21:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2013 23:21:11 +0000 (16:21 -0700)
commit3490a42f6739c7bac68ed50290dbadb57cfc9c3c
tree185540c85199ef5cb78f24ce11470a7314e37125
parentba701a39eb99f7708dcade3d3d8856c2a278adf3
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>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h