From: David Miller <davem@davemloft.net>
To: po.liu@nxp.com
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
vinicius.gomes@intel.com, claudiu.manoil@nxp.com,
vladimir.oltean@nxp.com, alexandru.marginean@nxp.com,
xiaoliang.yang_1@nxp.com, roy.zang@nxp.com, mingkai.hu@nxp.com,
jerry.huang@nxp.com, leoyang.li@nxp.com
Subject: Re: [v2,net-next] enetc: add support Credit Based Shaper(CBS) for hardware offload
Date: Mon, 25 Nov 2019 10:53:31 -0800 (PST) [thread overview]
Message-ID: <20191125.105331.639161854641719732.davem@davemloft.net> (raw)
In-Reply-To: <20191125054300.31346-1-Po.Liu@nxp.com>
From: Po Liu <po.liu@nxp.com>
Date: Mon, 25 Nov 2019 05:56:56 +0000
> The ENETC hardware support the Credit Based Shaper(CBS) which part
> of the IEEE-802.1Qav. The CBS driver was loaded by the sch_cbs
> interface when set in the QOS in the kernel.
>
> Here is an example command to set 20Mbits bandwidth in 1Gbits port
> for taffic class 7:
>
> tc qdisc add dev eth0 root handle 1: mqprio \
> num_tc 8 map 0 1 2 3 4 5 6 7 hw 1
>
> tc qdisc replace dev eth0 parent 1:8 cbs \
> locredit -1470 hicredit 30 \
> sendslope -980000 idleslope 20000 offload 1
>
> Signed-off-by: Po Liu <Po.Liu@nxp.com>
> Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Applied, thanks.
prev parent reply other threads:[~2019-11-25 18:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-22 7:17 [net-next] enetc: add support Credit Based Shaper(CBS) for hardware offload Po Liu
2019-11-24 3:02 ` Jakub Kicinski
2019-11-24 23:34 ` Jakub Kicinski
2019-11-25 3:03 ` [EXT] " Po Liu
2019-11-25 5:56 ` [v2,net-next] " Po Liu
2019-11-25 18:53 ` David Miller [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=20191125.105331.639161854641719732.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexandru.marginean@nxp.com \
--cc=claudiu.manoil@nxp.com \
--cc=jerry.huang@nxp.com \
--cc=leoyang.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingkai.hu@nxp.com \
--cc=netdev@vger.kernel.org \
--cc=po.liu@nxp.com \
--cc=roy.zang@nxp.com \
--cc=vinicius.gomes@intel.com \
--cc=vladimir.oltean@nxp.com \
--cc=xiaoliang.yang_1@nxp.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).