Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6787930imb; Sat, 9 Mar 2019 06:22:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwvWO4tm+2DLyKv2mXK66JJs6zXkN3ejQitk2Wb4X0IoF3q+DhhyRj2sFh6BzSAs5mlP6Ud X-Received: by 2002:a17:902:b493:: with SMTP id y19mr24995997plr.9.1552141362928; Sat, 09 Mar 2019 06:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552141362; cv=none; d=google.com; s=arc-20160816; b=wJYDskC2nO3U8GUQytPjHDJ5d2tfjy4qLeXx9HZgFt0EQzSaVJZK5xziGDctk2k19c PTdZv3Eqep6Y57/QbZWa9OXRb8PWkR4do9aXZ34FoYHjW524E0sXRbyXduXJlOV+pIOq 3jj/MtwmeFBVgiqRKQO29GaY1mbE+6O9i+ui3ntQe/Lzv7D6dUcstLnD3k19+XG7HQi0 UrnQiU3rB2kDHk7HbdW1EGITnlhLNrC6G6cDoyT/G3zNYqToYjk1LlAblyzUJqHeCSkl 1vzRwoHk/yAmiuDkex5XWM2oMImKCpraHQR3nmpafgRQf17Vt+p2KrrEh8s3nQoRaleE 9/Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=iJ7GVdFMJfD8adgjPNS/jtJI5VRP32URLIKXbn+1+xk=; b=JPdSTdlOWrVJafag8DF+HLsU/+bbWrbXCXE+TLeA22TovgvH33GHCwifiZWcjCKBHp s9c2L6pmiXjZrWBkPP4p+wVWG9FMwEEI7VQh/cVpkCEmChZbrS0oDKAiCVUObyYGZ1/l xwg2B56SBqthg2Bzucr7Z7TAOAYmIVaR18eFrP4I/ZYw/kqxchNSwzfp5DKWWWoHu1Pb urE8z6S5ZEcleYKHfQyxYNXuNl8TjTZbPHUDspc+Y90fXZhXSCN8YLpkAP3MTfe+2iFC /RgaWlK6mrvDtyOpb2AhlT6khrYxfKp9GO2E7/LsSLaorKrMgFT/BJqnPgeRsMTy/DpS RDiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aPX6agXX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g25si599752pgb.26.2019.03.09.06.22.25; Sat, 09 Mar 2019 06:22:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aPX6agXX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726436AbfCIOWF (ORCPT + 99 others); Sat, 9 Mar 2019 09:22:05 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55792 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbfCIOWF (ORCPT ); Sat, 9 Mar 2019 09:22:05 -0500 Received: by mail-wm1-f68.google.com with SMTP id q187so356910wme.5; Sat, 09 Mar 2019 06:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=iJ7GVdFMJfD8adgjPNS/jtJI5VRP32URLIKXbn+1+xk=; b=aPX6agXXsAP+BbmV31OmamXKwzTHjikmD8qvmHdL+QYnCB6WC+ocdYOlDQ+pzWIxKG kCUaSU/lt7ij3s2p7ZS6j6lHR29EJjEgECJ/vzJo9ESZ2wGQ4gfkalSQcA1E7pM5LiPo 7TdfUHZFWbyiHBtuwImAKMNaFQh5EVJRbkQsGkCrmPa5Wv3k1Scq8NXxaKNVHnIjz8Ks W+vc2/Y7afsAeztaWl6Gty1l2kekRoQV5mmaJ17Fp/MdD8qdWJmTfW+VEIceq4REHChN WxSmptyzEhIgjBZzSlrJIXqTx0Ny+Z4Xb2/YFBgWXWF/2PixizmbprWjv2tXaOpLq+nx lyPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iJ7GVdFMJfD8adgjPNS/jtJI5VRP32URLIKXbn+1+xk=; b=jnXly0OunTFMeEUAccfzB3MU5RxeoO96kfov4GCVNW5eaRc4iYAjqVGAMVadeGFaXF CLH6fBHEWNy3E2Q97hOno6jVBMZw+Bid+ekrd7E2nTd9rAASH+eL6r1D/FvzqGWxG8jo OU28RcHq7q1RULAO1Ve3nyavGIiEo6L6ePasBMUCCHq94JnNpkgA9oIyg1yrefDEFy6y ysqybrTb8yum/0JXX47jPk0f5TVbkaqXaBtmuFnvlQa8PizneuPQOYBw0vAj/uqABlzY pAz7FxfxukPraHCScgmew9nLyG0kvCD0macqbumdZ4VpxrmnbcvdNCX4tgySJZfE37QA L1xA== X-Gm-Message-State: APjAAAU2M6w+JsrgLM0uDYarrKVYFJoqTKaNEK86cTaEApVmMhFGcSU4 UMabVMtUx4iI0b4AzWRyKcI039x9cxc= X-Received: by 2002:a1c:7ed0:: with SMTP id z199mr11679355wmc.89.1552141322032; Sat, 09 Mar 2019 06:22:02 -0800 (PST) Received: from ?IPv6:2003:ee:f27:ae00:bc3a:186e:8458:23ed? (p200300EE0F27AE00BC3A186E845823ED.dip0.t-ipconnect.de. [2003:ee:f27:ae00:bc3a:186e:8458:23ed]) by smtp.googlemail.com with ESMTPSA id g15sm634222wrw.78.2019.03.09.06.22.01 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Sat, 09 Mar 2019 06:22:01 -0800 (PST) Subject: Re: [PATCH] net: can: Increase tx queue length To: Appana Durga Kedareswara rao , wg@grandegger.com, mkl@pengutronix.de, davem@davemloft.net Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1552140446-31535-1-git-send-email-appana.durga.rao@xilinx.com> From: Andre Naujoks Message-ID: Date: Sat, 9 Mar 2019 15:22:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <1552140446-31535-1-git-send-email-appana.durga.rao@xilinx.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/9/19 3:07 PM, Appana Durga Kedareswara rao wrote: > While stress testing the CAN interface on xilinx axi can > in loopback mode getting message "write: no buffer space available" > Increasing device tx queue length resolved the above mentioned issue. No need to patch the kernel: $ ip link set txqueuelen 500 does the same thing. > > Signed-off-by: Appana Durga Kedareswara rao > --- > --> Network devices default tx_queue_len is 1000 but for socket > can device it is 10 any reason for it?? > > drivers/net/can/dev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c > index c05e4d5..32bd5be 100644 > --- a/drivers/net/can/dev.c > +++ b/drivers/net/can/dev.c > @@ -642,7 +642,7 @@ static void can_setup(struct net_device *dev) > dev->mtu = CAN_MTU; > dev->hard_header_len = 0; > dev->addr_len = 0; > - dev->tx_queue_len = 10; > + dev->tx_queue_len = 500; > > /* New-style flags. */ > dev->flags = IFF_NOARP; >