From: Sunil Goutham <sgoutham@marvell.com>
To: <netdev@vger.kernel.org>, <davem@davemloft.net>, <kuba@kernel.org>
Cc: Sunil Goutham <sgoutham@marvell.com>
Subject: [net-next PATCH 0/2] cn10k: DWRR MTU and weights configuration
Date: Fri, 30 Jul 2021 17:19:12 +0530 [thread overview]
Message-ID: <1627645754-18131-1-git-send-email-sgoutham@marvell.com> (raw)
On OcteonTx2 DWRR quantum is directly configured into each of
the transmit scheduler queues. And PF/VF drivers were free to
config any value upto 2^24.
On CN10K, HW is modified, the quantum configuration at scheduler
queues is in terms of weight. And SW needs to setup a base DWRR MTU
at NIX_AF_DWRR_RPM_MTU / NIX_AF_DWRR_SDP_MTU. HW will do
'DWRR MTU * weight' to get the quantum.
This patch series addresses this HW change on CN10K silicons,
both admin function and PF/VF drivers are modified.
Also added support to program DWRR MTU via devlink params.
Sunil Goutham (2):
octeontx2-af: cn10k: DWRR MTU configuration
octeontx2-pf: cn10k: Config DWRR weight based on MTU
drivers/net/ethernet/marvell/octeontx2/af/common.h | 5 +-
drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 4 +
drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 3 +
.../ethernet/marvell/octeontx2/af/rvu_devlink.c | 110 ++++++++++++++++++++-
.../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 103 ++++++++++++++++++-
.../net/ethernet/marvell/octeontx2/af/rvu_reg.h | 2 +
drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c | 3 +-
drivers/net/ethernet/marvell/octeontx2/nic/cn10k.h | 14 +++
.../ethernet/marvell/octeontx2/nic/otx2_common.c | 23 +++--
.../ethernet/marvell/octeontx2/nic/otx2_common.h | 1 +
10 files changed, 253 insertions(+), 15 deletions(-)
--
2.7.4
next reply other threads:[~2021-07-30 11:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-30 11:49 Sunil Goutham [this message]
2021-07-30 11:49 ` [net-next PATCH 1/2] octeontx2-af: cn10k: DWRR MTU configuration Sunil Goutham
2021-07-30 11:49 ` [net-next PATCH 2/2] octeontx2-pf: cn10k: Config DWRR weight based on MTU Sunil Goutham
2021-08-02 14:10 ` [net-next PATCH 0/2] cn10k: DWRR MTU and weights configuration patchwork-bot+netdevbpf
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=1627645754-18131-1-git-send-email-sgoutham@marvell.com \
--to=sgoutham@marvell.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.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).