DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] How to shut down flow control in DPDK ?
@ 2014-01-16  0:52 chen_lp
  2014-01-16  1:37 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: chen_lp @ 2014-01-16  0:52 UTC (permalink / raw)
  To: dev

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.


---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] How to shut down flow control in DPDK ?
  2014-01-16  0:52 [dpdk-dev] How to shut down flow control in DPDK ? chen_lp
@ 2014-01-16  1:37 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2014-01-16  1:37 UTC (permalink / raw)
  To: chen_lp; +Cc: dev

On Thu, 16 Jan 2014 08:52:26 +0800
chen_lp <chen_lp@neusoft.com> 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..

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-16  1:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-16  0:52 [dpdk-dev] How to shut down flow control in DPDK ? chen_lp
2014-01-16  1:37 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).