From patchwork Wed Jul 20 18:34:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Keller X-Patchwork-Id: 12924389 X-Patchwork-Delegate: dsahern@gmail.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE727C433EF for ; Wed, 20 Jul 2022 18:35:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234046AbiGTSfI (ORCPT ); Wed, 20 Jul 2022 14:35:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233963AbiGTSe7 (ORCPT ); Wed, 20 Jul 2022 14:34:59 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F30671BD6 for ; Wed, 20 Jul 2022 11:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658342098; x=1689878098; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bz91TNeeBfGTVdIdZvjlrnngeTyrZBksJ2a1iP5sz44=; b=b89Nyw4pXmxeGgagfdcYI0WOE3R6Kv+i46Jy6bOnHooVlFa94odmtFFo DbIFzqvHCV7pRT85mWusQIAvCtP3OpBkW8qNBuJRNCBHZAYePo+sjrGMU 8VH9DTX8P0IIjLmjSTPhZKac15NXVQjPXUyqhm3JmGGCrLl4+bJM0T6yX vT69EjXaDP91vdu3/VowvALXhKbVcFbxv/q7B54cu9IyNdjNs+dFchU3Q waKG5luHYNk+s2qglk+RqaFo2is11KFxMr3LPlkQS4Re0cV0sILkrJdBW QVgsRuFGlHox1TAwVZ8uqt8PM2W+tFmfXB6uNhiWBua4fgdT0qIAOoMD/ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10414"; a="285620853" X-IronPort-AV: E=Sophos;i="5.92,287,1650956400"; d="scan'208";a="285620853" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 11:34:58 -0700 X-IronPort-AV: E=Sophos;i="5.92,287,1650956400"; d="scan'208";a="925337487" Received: from jekeller-desk.amr.corp.intel.com ([10.166.241.7]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 11:34:57 -0700 From: Jacob Keller To: netdev@vger.kernel.org Cc: Jakub Kicinski , Jacob Keller Subject: [iproute2-next PATCH 1/3] update UAPI header Date: Wed, 20 Jul 2022 11:34:47 -0700 Message-Id: <20220720183449.2070222-2-jacob.e.keller@intel.com> X-Mailer: git-send-email 2.35.1.456.ga9c7032d4631 In-Reply-To: <20220720183449.2070222-1-jacob.e.keller@intel.com> References: <20220720183449.2070222-1-jacob.e.keller@intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Signed-off-by: Jacob Keller --- 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,