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: 1659296 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=h4Gbdxwy; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LpljF4XGhz9sFr for ; Fri, 22 Jul 2022 07:15:45 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id DF62541794; Thu, 21 Jul 2022 21:15:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org DF62541794 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1658438143; bh=Q1b/blFROVptuCkUR5JSYy2HlyAmAzG+ihY5FbdFN5o=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=h4GbdxwyVi6wB8RyvAuSVWytXRW30qk8TEi3EBi9a7K/Yex+QqInfjuWbkz15tUBz xegzTVXa9jKbAZjvXnTTGUgabaCfKcP35nMH2l7ZGEiJf8tPuuj3bwHgFaJUpRfvGw EwL650pLgtGGUaWsmLtqg1CD/HyaumRTR7l2seH20PH+ErHCdyZe6VxW+o9DVdgQi+ 6XDWeN8qCLFQMSLNpqDaiydKT5zknasMnRtSVcJ2k8h0PXFZO+fggrHhD5K0lZe5Jc +NljnCo55NjjvwIRRFjfeiXaL536grLbl4dP+5Two8scx9vWOMR+9cqj/EqnEkm+Fo cW42o70kDH63w== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jDcZuWLU5Epk; Thu, 21 Jul 2022 21:15:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 4363E417C6; Thu, 21 Jul 2022 21:15:41 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4363E417C6 X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B15F81BF375 for ; Thu, 21 Jul 2022 21:15:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8974760B8C for ; Thu, 21 Jul 2022 21:15:32 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8974760B8C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2DcHItoAL-96 for ; Thu, 21 Jul 2022 21:15:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org DA9A660AD2 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by smtp3.osuosl.org (Postfix) with ESMTPS id DA9A660AD2 for ; Thu, 21 Jul 2022 21:15:31 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6400,9594,10415"; a="267571472" X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="267571472" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.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 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 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658438131; x=1689974131; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bz91TNeeBfGTVdIdZvjlrnngeTyrZBksJ2a1iP5sz44=; b=F/yNWlupaKXKvle1RUP/XEPgtjnM1Rk6tKOOCQq3IwBFC4aBNiE5G8YA XdJO83s65J+nZwu1FurZ6M2eLhcP1rBXw9r0XUw7oMWTwgBODh3KLWoxb /cg/tjfIpK9f1A6sLnRJVuMV1jVUE/jLAYQ1xYH84woCQXKSy6caOkPsD y0hUxEE8U72BuGEOJ4CbYpWxD7q2PEhGhOawADDS9uuSZPadYmHc6tB6m Wi6zXx9eKaXKErH/PLVM8P/bp6QlNRZcBLqrE8zNiHO1svBc0zzC8kojl Eh6iFA4uyX8Ymp7W/wNJ9dyXyCpywxaY471JhFKkhDyEhVJHYoWnfGuy8 Q==; X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=F/yNWlup Subject: [Intel-wired-lan] [iproute2-next v2 1/3] update UAPI header X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jonathan Corbet , intel-wired-lan@lists.osuosl.org, David Ahern , linux-doc@vger.kernel.org, Stephen Hemminger , Eric Dumazet , Jiri Pirko , Jakub Kicinski , Paolo Abeni , "David S. Miller" Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" 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,