From: Stephen Hemminger <stephen@networkplumber.org>
To: chen_lp <chen_lp@neusoft.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] How to shut down flow control in DPDK ?
Date: Wed, 15 Jan 2014 17:37:08 -0800 [thread overview]
Message-ID: <20140115173708.7d44cf82@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <52D72D4A.4000300@neusoft.com>
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..
prev parent reply other threads:[~2014-01-16 1:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 0:52 chen_lp
2014-01-16 1:37 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140115173708.7d44cf82@nehalam.linuxnetplumber.net \
--to=stephen@networkplumber.org \
--cc=chen_lp@neusoft.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).