netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacob Keller <jacob.e.keller@intel.com>
To: netdev@vger.kernel.org
Cc: Jacob Keller <jacob.e.keller@intel.com>,
	Jonathan Corbet <corbet@lwn.net>, Jiri Pirko <jiri@nvidia.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Tony Nguyen <anthony.l.nguyen@intel.com>,
	David Ahern <dsahern@kernel.org>,
	Stephen Hemminger <stephen@networkplumber.org>,
	linux-doc@vger.kernel.org, intel-wired-lan@lists.osuosl.org
Subject: [iproute2-next v2 1/3] update <linux/devlink.h> UAPI header
Date: Thu, 21 Jul 2022 14:14:49 -0700	[thread overview]
Message-ID: <20220721211451.2475600-5-jacob.e.keller@intel.com> (raw)
In-Reply-To: <20220721211451.2475600-1-jacob.e.keller@intel.com>

Signed-off-by: Jacob Keller <jacob.e.keller@intel.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 da0f1ba8f7a0..90f6cf97d308 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -576,6 +576,14 @@ enum devlink_attr {
 	DEVLINK_ATTR_LINECARD_TYPE,		/* string */
 	DEVLINK_ATTR_LINECARD_SUPPORTED_TYPES,	/* nested */
 
+	/* Before adding this attribute to a command, user space should check
+	 * the policy dump and verify the kernel recognizes the attribute.
+	 * Otherwise older kernels which do not recognize the attribute may
+	 * silently accept the unknown attribute while not actually performing
+	 * a dry run.
+	 */
+	DEVLINK_ATTR_DRY_RUN,			/* flag */
+
 	/* add new attributes above here, update the policy in devlink.c */
 
 	__DEVLINK_ATTR_MAX,
-- 
2.36.1


  parent reply	other threads:[~2022-07-21 21:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-21 21:14 [net-next v2 0/2] devlink: implement dry run support for flash update Jacob Keller
2022-07-21 21:14 ` [net-next v2 1/2] devlink: add dry run attribute to " Jacob Keller
2022-07-22  6:26   ` Jiri Pirko
2022-07-22 21:13     ` Keller, Jacob E
2022-07-21 21:14 ` [net-next v2 2/2] ice: support dry run of a flash update to validate firmware file Jacob Keller
2022-07-21 21:14 ` [iproute2-next v2 0/3] devlink: support dry run attribute for flash update Jacob Keller
2022-07-21 21:14 ` Jacob Keller [this message]
2022-07-21 21:14 ` [iproute2-next v2 2/3] mnlg: add function to get CTRL_ATTR_MAXATTR value Jacob Keller
2022-07-21 21:14 ` [iproute2-next v2 3/3] devlink: add dry run attribute support to devlink flash Jacob Keller
2022-07-22  6:22   ` Jiri Pirko
2022-07-22 21:14     ` Keller, Jacob E
2022-07-21 23:52 ` [net-next v2 0/2] devlink: implement dry run support for flash update Jakub Kicinski

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=20220721211451.2475600-5-jacob.e.keller@intel.com \
    --to=jacob.e.keller@intel.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=corbet@lwn.net \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jiri@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --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 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).