diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-08-17 09:45:53 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-11-19 13:50:09 +0100 |
commit | ff4758789e969d1d0a23a0feb8edcab4dffc1250 (patch) | |
tree | 1c61c7e16c8cad4cb03fbf636d2c30fdca80cac6 /drivers | |
parent | 0ebf40417df79ca0b73fa3fca0f6d13f47c5b530 (diff) | |
download | u-boot-imx-ff4758789e969d1d0a23a0feb8edcab4dffc1250.zip u-boot-imx-ff4758789e969d1d0a23a0feb8edcab4dffc1250.tar.gz u-boot-imx-ff4758789e969d1d0a23a0feb8edcab4dffc1250.tar.bz2 |
net: zynq: Allocate BD_SPACE in connection to RX_BUF
BD_SEPRN_SPACE should not have hard coded value and it will be
calculated based on the number of buffer descriptors that we
would like to use.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/zynq_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 41ac829..875738a 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -145,7 +145,7 @@ struct emac_bd { */ #define BD_SPACE 0x100000 /* BD separation space */ -#define BD_SEPRN_SPACE 64 +#define BD_SEPRN_SPACE (RX_BUF * sizeof(struct emac_bd)) /* Initialized, rxbd_current, rx_first_buf must be 0 after init */ struct zynq_gem_priv { |