From ff4758789e969d1d0a23a0feb8edcab4dffc1250 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 17 Aug 2015 09:45:53 +0200 Subject: [PATCH] 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 Acked-by: Joe Hershberger --- drivers/net/zynq_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 41ac8295db..875738abb2 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 { -- 2.25.1