From patchwork Thu Jul 21 21:14:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Keller X-Patchwork-Id: 12925780 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 BB850C43334 for ; Thu, 21 Jul 2022 21:15:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbiGUVPa (ORCPT ); Thu, 21 Jul 2022 17:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233710AbiGUVP2 (ORCPT ); Thu, 21 Jul 2022 17:15:28 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2781C5727C; Thu, 21 Jul 2022 14:15:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658438127; x=1689974127; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bz91TNeeBfGTVdIdZvjlrnngeTyrZBksJ2a1iP5sz44=; b=HlAYywwVqivU2YTi19n/cL1tyo3FmDl9tqWOpfRcE2hUHkwtLloY2ITO pnzw2iMpm3WQueydHp3YG78+3fw+To3HKqhvKVLu/d80w+EsXeL7Ve6tD rUBDFFgzTqtIuEmNdABpmlN46xRFS+xOxFyKKf+fbnIyUhesV0+ak4t91 lXSLXk1keiVtBgHhmx6D1KLV2IduCXwQjc0jrnSo1PIpgmCTIivZQTvI4 bxcjfCylqlJFtTloM/Ye41FHycQubPwJpLmvc/ywvWqB7mz/PwSowiknK f4KJFEMLTBeQ4XiE5S/bY6lQoJM3gl9r1PPRs5p7dkSn+NhoYKiK/zTpn Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10415"; a="312892789" X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="312892789" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2022 14:15:00 -0700 X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="925816212" 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; 21 Jul 2022 14:14:59 -0700 From: Jacob Keller To: netdev@vger.kernel.org Cc: Jacob Keller , Jonathan Corbet , Jiri Pirko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Tony Nguyen , David Ahern , Stephen Hemminger , linux-doc@vger.kernel.org, intel-wired-lan@lists.osuosl.org Subject: [iproute2-next v2 1/3] update UAPI header Date: Thu, 21 Jul 2022 14:14:49 -0700 Message-Id: <20220721211451.2475600-5-jacob.e.keller@intel.com> X-Mailer: git-send-email 2.35.1.456.ga9c7032d4631 In-Reply-To: <20220721211451.2475600-1-jacob.e.keller@intel.com> References: <20220721211451.2475600-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,