From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: How to shut down flow control in DPDK ? Date: Wed, 15 Jan 2014 17:37:08 -0800 Message-ID: <20140115173708.7d44cf82@nehalam.linuxnetplumber.net> References: <52D72D4A.4000300@neusoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev-VfR2kkLFssw@public.gmane.org" To: chen_lp Return-path: In-Reply-To: <52D72D4A.4000300-YYSg24PYQUdBDgjK7y7TUQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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..