lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 20 Jun 2022 18:35:54 +0300
From:   Dima Chumak <dchumak@...dia.com>
To:     Stephen Hemminger <stephen@...workplumber.org>,
        David Ahern <dsahern@...nel.org>
CC:     Jakub Kicinski <kuba@...nel.org>, Jiri Pirko <jiri@...dia.com>,
        "David S. Miller" <davem@...emloft.net>,
        Eric Dumazet <edumazet@...gle.com>,
        "Paolo Abeni" <pabeni@...hat.com>, <netdev@...r.kernel.org>,
        Dima Chumak <dchumak@...dia.com>
Subject: [PATCH iproute2-next 4/5] uapi: devlink.h DEVLINK_RATE_LIMIT_TYPE_POLICE

Signed-off-by: Dima Chumak <dchumak@...dia.com>
---
 include/uapi/linux/devlink.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 4b2653b1c11c..b9d22448c563 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -224,6 +224,7 @@ enum devlink_rate_type {
 enum devlink_rate_limit_type {
 	DEVLINK_RATE_LIMIT_TYPE_UNSET,
 	DEVLINK_RATE_LIMIT_TYPE_SHAPING,
+	DEVLINK_RATE_LIMIT_TYPE_POLICE,
 };
 
 enum devlink_param_cmode {
@@ -582,6 +583,13 @@ enum devlink_attr {
 	DEVLINK_ATTR_LINECARD_SUPPORTED_TYPES,	/* nested */
 
 	DEVLINK_ATTR_RATE_LIMIT_TYPE,		/* u16 */
+	DEVLINK_ATTR_RATE_TX_BURST,		/* u64 */
+	DEVLINK_ATTR_RATE_RX_MAX,		/* u64 */
+	DEVLINK_ATTR_RATE_RX_BURST,		/* u64 */
+	DEVLINK_ATTR_RATE_TX_PKTS,		/* u64 */
+	DEVLINK_ATTR_RATE_TX_PKTS_BURST,	/* u64 */
+	DEVLINK_ATTR_RATE_RX_PKTS,		/* u64 */
+	DEVLINK_ATTR_RATE_RX_PKTS_BURST,	/* u64 */
 
 	/* add new attributes above here, update the policy in devlink.c */
 
-- 
2.36.1

Powered by blists - more mailing lists