From patchwork Thu May 28 07:00:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 478598 X-Patchwork-Delegate: monstr@monstr.eu From: michal.simek at xilinx.com (Michal Simek) Date: Thu, 28 May 2015 09:00:47 +0200 Subject: [U-Boot] [PATCH v2 3/4] zynq: gem: Increase the Rx buffer descriptors to 32 In-Reply-To: References: Message-ID: List-Id: U-Boot discussion From: Siva Durga Prasad Paladugu Increase the Rx Buffer descriptors to 32. This will avoid Rx buffer descriptors overflow if more packets were received at one shot before we process the received ones. This fixes the issue of intermittent timeouts during tftp on a 1Gb connection with tftp server running on windows. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- Changes in v2: None 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 eca7feeae94a..f4c2252d0c14 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -138,7 +138,7 @@ struct emac_bd { u32 status; }; -#define RX_BUF 3 +#define RX_BUF 32 /* Page table entries are set to 1MB, or multiples of 1MB * (not < 1MB). driver uses less bd's so use 1MB bdspace. */