From: John Fastabend <john.r.fastabend@intel.com>
To: Or Gerlitz <ogerlitz@mellanox.com>,
"David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Amir Vadai <amirv@mellanox.com>,
Ido Shamay <idos@mellanox.com>, Matan Barak <matanb@mellanox.com>
Subject: Re: [PATCH net-next 1/3] net: Add max rate tx queue attribute
Date: Wed, 11 Mar 2015 11:50:32 -0700 [thread overview]
Message-ID: <55008E78.8020607@intel.com> (raw)
In-Reply-To: <1426079690-28271-2-git-send-email-ogerlitz@mellanox.com>
On 03/11/2015 06:14 AM, Or Gerlitz wrote:
> From: John Fastabend <john.r.fastabend@intel.com>
>
> This adds a tx_maxrate attribute to the tx queue sysfs entry allowing
> for max-rate limiting. Along with DCB-ETS and BQL this provides another
> knob to tune queue performance. The limit units are Mbps.
>
> By default it is disabled. To disable the rate limitation after it
> has been set for a queue, it should be set to zero.
>
> Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
> ---
> include/linux/netdevice.h | 9 ++++++
> net/core/net-sysfs.c | 70 +++++++++++++++++++++++++++++++++++++--------
> 2 files changed, 67 insertions(+), 12 deletions(-)
hmm I'm not sure sysfs is entirely the correct interface although it is
convenient. Did you consider porting to netlink? To be honest I can't
remember why I didn't do it netlink to start with. I think at the time
I was more interested in the controller, feedback loop aspect. Basically
I was dynamically managing the rate limiters across NICs from an agent to
try and manage some types of congestion.
.John
next prev parent reply other threads:[~2015-03-11 18:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 13:14 [PATCH net-next 0/3] Add max rate TXQ attribute Or Gerlitz
2015-03-11 13:14 ` [PATCH net-next 1/3] net: Add max rate tx queue attribute Or Gerlitz
2015-03-11 18:50 ` John Fastabend [this message]
2015-03-11 20:11 ` Or Gerlitz
2015-03-11 13:14 ` [PATCH net-next 2/3] net/mlx4_core: Add basic support for QP max-rate limiting Or Gerlitz
2015-03-11 13:14 ` [PATCH net-next 3/3] net/mlx4_en: Add tx queue maxrate support Or Gerlitz
2015-03-11 15:44 ` Sergei Shtylyov
2015-03-12 8:25 ` Or Gerlitz
2015-03-11 15:47 ` Sergei Shtylyov
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=55008E78.8020607@intel.com \
--to=john.r.fastabend@intel.com \
--cc=amirv@mellanox.com \
--cc=davem@davemloft.net \
--cc=idos@mellanox.com \
--cc=matanb@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=ogerlitz@mellanox.com \
/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).