From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by dpdk.org (Postfix) with ESMTP id F0AA468BC for ; Thu, 16 Jan 2014 02:35:57 +0100 (CET) Received: by mail-pb0-f43.google.com with SMTP id md12so1945840pbc.2 for ; Wed, 15 Jan 2014 17:37:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=byxDCrSHBcgZAzr4RBi3DzGwUQihxqEPcfibWXoq2HU=; b=eeotFUmVGSEzF0ChqRkhbuExi/qO1S1CHXdToyErSuiy0vApfOctRskf8vL1IlalKa TJAIeJoncDQ4Q4i5kwZ7XepgIO7/+qODtdLRntR7eJd1g+0hM0n2up2G4y37Ocmz+Z/e /h4Pnx25L2U2IoFag+gA6/AGuFy3R+/4V+u9D5IFtKOqKc4wqiYrK008mNvn5q2+IDK7 zTLm+IGgWQ0r6xkWe13DOwtx+QdjFc8PXlzzRBN0jZvSFxAZAfVg5HEFW192ibnbtUif U7SNLc6xFDLeo3j4O/nGbjvlSCFk10nnsE12IYAZbZTcFunTvUeLi6QcDWLVb7/U0i1r AWeA== X-Gm-Message-State: ALoCoQn65zZRPkD+sgO3FVaToat/fcbZum1JD0wLdgPPmIviuqyJCF5vnHJKLVq42pq/ZRcRai5X X-Received: by 10.68.247.6 with SMTP id ya6mr6413126pbc.45.1389836231803; Wed, 15 Jan 2014 17:37:11 -0800 (PST) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id vn10sm10992437pbc.21.2014.01.15.17.37.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 15 Jan 2014 17:37:11 -0800 (PST) Date: Wed, 15 Jan 2014 17:37:08 -0800 From: Stephen Hemminger To: chen_lp Message-ID: <20140115173708.7d44cf82@nehalam.linuxnetplumber.net> In-Reply-To: <52D72D4A.4000300@neusoft.com> References: <52D72D4A.4000300@neusoft.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] How to shut down flow control in DPDK ? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 01:35:58 -0000 On Thu, 16 Jan 2014 08:52:26 +0800 chen_lp wrote: > Hi, > I want to shut down flow control in DPDK, > I only kwon the function rte_eth_dev_flow_ctrl_set(uint8_t port_id, > struct rte_eth_fc_conf *fc_conf) can do this. > But I don't kwon how config the struct rte_eth_fc_conf. > I try config it like that : > > static struct rte_eth_fc_conf fc_conf={ > .high_water=100, > .low_water=10, > .pause_time=1, > .send_xon=0, > .mode=RTE_FC_NONE, > }; > > But other card which we link to can still able to control the speed of > our tx. > The following seems to work: struct rte_eth_fc_conf fcoff = { .pause_time = DEFAULT_FCPAUSE, .send_xon = 1, .mode = RTE_FC_NONE, }; ... /* Disable 802 flow control since it can lead to head-of-line blocking. Ignore errors some drivers do it now. */ ret = rte_eth_dev_flow_ctrl_set(portid, &fcoff); if (ret < 0 && ret != -ENOTSUP) log a message..