All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carolina Jubran <cjubran@nvidia.com>
To: <stephen@networkplumber.org>, <dsahern@gmail.com>
Cc: Jiri Pirko <jiri@nvidia.com>, <netdev@vger.kernel.org>,
	Carolina Jubran <cjubran@nvidia.com>
Subject: [PATCH iproute2-next 1/2] devlink: Update uapi headers
Date: Fri, 4 Jul 2025 15:27:52 +0300	[thread overview]
Message-ID: <20250704122753.845841-2-cjubran@nvidia.com> (raw)
In-Reply-To: <20250704122753.845841-1-cjubran@nvidia.com>

Update devlink.h file up to kernel commit 566e8f108fc7
("devlink: Extend devlink rate API with traffic classes bandwidth management")

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
---
 include/uapi/linux/devlink.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 9a1bdc94..78f505c1 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -221,6 +221,11 @@ enum devlink_port_flavour {
 				      */
 };
 
+/* IEEE 802.1Qaz standard supported values. */
+
+#define DEVLINK_RATE_TCS_MAX 8
+#define DEVLINK_RATE_TC_INDEX_MAX (DEVLINK_RATE_TCS_MAX - 1)
+
 enum devlink_rate_type {
 	DEVLINK_RATE_TYPE_LEAF,
 	DEVLINK_RATE_TYPE_NODE,
@@ -629,6 +634,10 @@ enum devlink_attr {
 
 	DEVLINK_ATTR_REGION_DIRECT,		/* flag */
 
+	DEVLINK_ATTR_RATE_TC_BWS,		/* nested */
+	DEVLINK_ATTR_RATE_TC_INDEX,		/* u8 */
+	DEVLINK_ATTR_RATE_TC_BW,		/* u32 */
+
 	/* Add new attributes above here, update the spec in
 	 * Documentation/netlink/specs/devlink.yaml and re-generate
 	 * net/devlink/netlink_gen.c.
-- 
2.38.1


  reply	other threads:[~2025-07-04 12:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-04 12:27 [PATCH iproute2-next 0/2] Add support for traffic class bandwidth configuration via devlink-rate Carolina Jubran
2025-07-04 12:27 ` Carolina Jubran [this message]
2025-07-04 12:27 ` [PATCH iproute2-next 2/2] Add support for 'tc-bw' attribute in devlink-rate Carolina Jubran
2025-07-11 16:50 ` [PATCH iproute2-next 0/2] Add support for traffic class bandwidth configuration via devlink-rate 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=20250704122753.845841-2-cjubran@nvidia.com \
    --to=cjubran@nvidia.com \
    --cc=dsahern@gmail.com \
    --cc=jiri@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.