Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1379908imj; Fri, 8 Feb 2019 00:03:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IbTJGm4q8n/K3yQdu1fjh4ilGlwpfaPGgQCZUPhTxby7f7fkDxLBHOe9GjOFsOaG7FPLd58 X-Received: by 2002:a65:6110:: with SMTP id z16mr19343372pgu.330.1549613036753; Fri, 08 Feb 2019 00:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549613036; cv=none; d=google.com; s=arc-20160816; b=VAej2yJCLKnWEsY0g2oMXSLWtlLFP/+M3GqqBES9OW5M4b3IQkJ5eCHWirS0X2C828 LauYG9Pgj30P8hHj3gK73fHccSEHnNORqedK3GUp8e4WFvPRiN0ntxcq1bTKSleM+IhD ak0KjwjmsQy9ss27lzk6ll9W4Tm9X3HFiYLwcbfPvPaIhjlbUjhZRQpDlb6+kIqVF4+2 3SpwjAVUQxhlnugLYdGvi8hQAD1S93UiMRSBGBC0V9GsD3gLrMupKeFNEte/RZM+lUGE CKPwF5XHqdftCZSlPO4Pxl6FxcQVVs6GUXqCNJ3qi5G4DPqWb4t1P+fvP60dZdn+saIR XR4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0UWWfzBZwmtp06MD7tTOFl15RNd95H3+jE26xLtAo0o=; b=Uw8WlwHz53O8PfEjP22oz1c/PM6Z4SNs6BZGFEj6asd28Qp0RQR13sIv7AimKHObY2 nJZapjuvjbOzJ2fN5XFWpVpL/dLm/NeoBmt0EaU1Wm/Mpqu7z+KaqLkjJ3/bHtAlY6IW DTQfl7AS1WPc0ZwNiTU38D9TLGQnojbC/NQSMe213WNd0ZqW7GP3BoD2hunkFzOdCqBT Rkmn58lMRd0Ms5JgO7YZxsXHpcWTucX+/xr6wPne/ojkGfeI0qUtiq3R3gWCCRmbVAJI fUvds6SreolbC7XaF8LDYOr0Dg/iJgho21uUL3nVQVNTu8XhNJqDURxqYn+8Z5WdGCTU Q3Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=vk4hDK1a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1485891pgh.392.2019.02.08.00.03.39; Fri, 08 Feb 2019 00:03:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=vk4hDK1a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727257AbfBHIBq (ORCPT + 99 others); Fri, 8 Feb 2019 03:01:46 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40527 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727127AbfBHIBq (ORCPT ); Fri, 8 Feb 2019 03:01:46 -0500 Received: by mail-ed1-f67.google.com with SMTP id g22so2008009edr.7 for ; Fri, 08 Feb 2019 00:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0UWWfzBZwmtp06MD7tTOFl15RNd95H3+jE26xLtAo0o=; b=vk4hDK1a4WnrgVZQ9DH3JoG9ZUZRVrAj6UFzspIDJ92ZfwkC8sCe2pav/SycRKl8jE zUbyNvATeAw2vpeG84dqH6rDPZijYqzwDzNqTuwgd2xnQk9EK2oyXqSNtbrfWHHREOtA rzKh+xjNWDmENTQo4neqec4EyomlGub4Yb+fn1Ad0ciymaOtqocmBNy13+PmB5Us1qck pvYwZTvraUHpVOsksyjT2VFlGcd1usL0PoLLjIQIVeRIxYP5nsvC7NtEl8eCB4+96v1e B1dtEMvpVxAs0Rse/ZUpTUWG2nyneOYhs+CpQ+QHQkFCXA0i5qGJegORBJ4aLIal+a1n fm+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0UWWfzBZwmtp06MD7tTOFl15RNd95H3+jE26xLtAo0o=; b=puoooqbjIVsm+E94iOjOfOfONZheBeiC6gYz2oT8zTS9bch2NACOp3GA4fJhjLwBTu 1LgFr0cdGIHQEED+kLlJ11Vim8v+pKU+aPNjQtQBDPyeU3KXiDsjVfsn2+es5QMin/CF oFxgBAuI5CGA3BrLAuSea1YYL19T+SltuX0wqFQu6DqZObkESqTsI86km5M8jgCYhd4/ TNl2NC/k8kiI+kE4SqXIDEGfTQf/OKiviFDEu3jGkdEIBx+2pStxq9JzkJc0eeWuMLKC ETn5jaLaVWnWGKoN3LVktYecX6TCeJiT4l7ugv45uTKt3yzWaLv1vkWLE6C5oxcfNO5M gnyw== X-Gm-Message-State: AHQUAuaMiDhhSNIGcA4XH5s31NnJiIJr63x2IHRcOYVgPwVJiLaxjfwx 9mf9f1BlFO8pZI0bwoj6JLZMqg== X-Received: by 2002:aa7:c981:: with SMTP id c1mr15854411edt.54.1549612904379; Fri, 08 Feb 2019 00:01:44 -0800 (PST) Received: from netronome.com ([2001:982:756:703:d63d:7eff:fe99:ac9d]) by smtp.gmail.com with ESMTPSA id x38sm448447edx.24.2019.02.08.00.01.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 00:01:43 -0800 (PST) Date: Fri, 8 Feb 2019 09:01:42 +0100 From: Simon Horman To: Eli Cohen Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jakub.kicinski@netronome.com, dirk.vandermerwe@netronome.com, francois.theron@netronome.com, quentin.monnet@netronome.com, john.hurley@netronome.com, edwin.peer@netronome.com Subject: Re: [PATCH net-next 2/2] net: Change TCA_ACT_* to TCA_ID_* to match that of TCA_ID_POLICE Message-ID: <20190208080141.dlksz5dfkufj2sbm@netronome.com> References: <20190207074549.29861-1-eli@mellanox.com> <20190207074549.29861-3-eli@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190207074549.29861-3-eli@mellanox.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 07, 2019 at 09:45:49AM +0200, Eli Cohen wrote: > Modify the kernel users of the TCA_ACT_* macros to use TCA_ID_*. For > example, use TCA_ID_GACT instead of TCA_ACT_GACT. This will align with > TCA_ID_POLICE and also differentiates these identifier, used in struct > tc_action_ops type field, from other macros starting with TCA_ACT_. > > To make things clearer, we name the enum defining the TCA_ID_* > identifiers and also change the "type" field of struct tc_action to > id. > > Signed-off-by: Eli Cohen > Acked-by: Jiri Pirko ... > diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h > index 7ab55f97e7c4..51a0496f78ea 100644 > --- a/include/uapi/linux/pkt_cls.h > +++ b/include/uapi/linux/pkt_cls.h > @@ -85,7 +85,7 @@ enum { > #define TCA_ACT_SAMPLE 26 > > /* Action type identifiers*/ > -enum { > +enum tca_id { > TCA_ID_UNSPEC = 0, > TCA_ID_POLICE = 1, > TCA_ID_GACT = TCA_ACT_GACT, This change updates the UAPI. It seems to me that it would not break existing users. But I would like to ask if this has been given due consideration. ...