From patchwork Tue May 26 11:40:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 476434 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 44827140E0F for ; Tue, 26 May 2015 21:40:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8A9124B778; Tue, 26 May 2015 13:40:40 +0200 (CEST) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RZGuPRsLJJhU; Tue, 26 May 2015 13:40:40 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2B3A44B734; Tue, 26 May 2015 13:40:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C0C334B792 for ; Tue, 26 May 2015 13:40:32 +0200 (CEST) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V9y57nFaFCUB for ; Tue, 26 May 2015 13:40:32 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by theia.denx.de (Postfix) with ESMTPS id 3A5444B760 for ; Tue, 26 May 2015 13:40:25 +0200 (CEST) Received: by wichy4 with SMTP id hy4so78095527wic.1 for ; Tue, 26 May 2015 04:40:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=CrC9tOdlofJYlqxPw5WtbUqzkC/Y1g7um+6JJsHBEWo=; b=KeC59j71yCIY3OgDeo6U1VkE367fvDJk+wWhK3YwCtw1Zqb0BwVLijjQZrmb0nAdXM mva0INNdxnglBWLF2LHx96S7/wpM4XYyq9WQb/6kn1f1ioe9K1oM/VHGOc504zoCzT4/ MuteT95jF6VFblhicsiszGjrqlB9N9ummwwbd2UMpx7vG4WKlDmdV6GgPskrtJQXzyhM NlyW0wg+fWGkhb37TH7Id59aSnz5T3DDLbWVtLz1/zgYwzTKF7xo6v72fB1815nc97al 2I1z28v3OpGpPQLRVMt0Le8p+9oJEHOgzgAaKB9JNWpNKmBE509kc7Dikz5cQRjbtURF rszg== X-Gm-Message-State: ALoCoQmJtY0LBNKtiBtPMXlM2tWEEjdnLlmAEzylkh9MoFmWOrm1ufV0n1jjuRnblgfCnF7Zi9Ri X-Received: by 10.180.149.173 with SMTP id ub13mr40488124wib.23.1432640425303; Tue, 26 May 2015 04:40:25 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by mx.google.com with ESMTPSA id ww1sm21350400wjb.14.2015.05.26.04.40.24 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 26 May 2015 04:40:24 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, Joe Hershberger Date: Tue, 26 May 2015 13:40:13 +0200 Message-Id: <3406005c769b5161ffb849d20c8e99844f0668fd.1432640411.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.3.5 In-Reply-To: <85b7198e80c6c0ab20459bd468b232767f4c0fe8.1432640411.git.michal.simek@xilinx.com> References: <85b7198e80c6c0ab20459bd468b232767f4c0fe8.1432640411.git.michal.simek@xilinx.com> In-Reply-To: <85b7198e80c6c0ab20459bd468b232767f4c0fe8.1432640411.git.michal.simek@xilinx.com> References: <85b7198e80c6c0ab20459bd468b232767f4c0fe8.1432640411.git.michal.simek@xilinx.com> Cc: Tom Rini , Siva Durga Prasad Paladugu Subject: [U-Boot] [PATCH 3/4] zynq: gem: Increase the Rx buffer descriptors to 32 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 --- 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 523f95ccfde4..f0546d75bf71 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. */