Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1415872imj; Fri, 8 Feb 2019 00:49:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IY+VE/GyEIXGW2/RQN31yYqAwIAtRE5ZaDn0jZAJ+ujVv9d515ib8oduCryWKHVIrGy4K5k X-Received: by 2002:aa7:8608:: with SMTP id p8mr21254089pfn.125.1549615761888; Fri, 08 Feb 2019 00:49:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549615761; cv=none; d=google.com; s=arc-20160816; b=PFYDVdHxj8paHozHbf/TlNQKYWeOO9g+Y2hpvTqZ4/hFNRG4fwFpLtjF9Is2ey2VAQ VgKOmkVIEN3paxAsxCrou9TixSHK0TTx2QQeTd1ouEJHviI+hpqYhv7nhx0tg74SS484 /K8VlH/ZzCM4ue5xvK0Oo7QjTAEuEazPSVoFofOaeFY9FDeehVjk+z3JrOExS9HParpm gszrUtxrH+AzceW74YOi954+YVygnahTFPvJllgf34kLva9MXIl/iDMHYaGlfYalWRB1 7mTtaZv8aG3oQDAtI2fWqKuxcd9+NQoxiltHBOBiQMiQ5fMtKvKS/+MnZDnJdfL5/ZlD pYQA== 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=J8ap7TVKBo6kF0rG+M5AdLUG4eAuiDx6Pq6cCaDWkJ0=; b=kkE74GsaBmHZJUN9Cg5E13S+iH98a0iWcmk0n9smVs6M/IhjN5K7YfpJkJ9H/HaS08 uiZ7NTsoP+PeDPLfWBTpbg+9NUl9SVmj+H6YlTUUH1JyfPdyvxyHDfrKrRAj3Ht+e/SR 2ZzTEsZ3aBdMbm5Gk4WO12QwVB8NFTpWnolCci5LbTGTcKSXwjLbclraHNd8Zz0DaW05 aYo5JYJpKjFYltcIlSExOct8qxDYhs1kYhQADGtLTOv7rnJTLTi6yIHUT5OwLyZQHPQc 7Vp40AmdUGCAjN8hRmYyd2ME41CSw7MsbcFtlzO7uDPVUdPUIxFul9S3R+6XwLY+DJio RcHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="tXTeH0/v"; 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 l36si1689698plb.433.2019.02.08.00.49.04; Fri, 08 Feb 2019 00:49:21 -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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="tXTeH0/v"; 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 S1727336AbfBHIs6 (ORCPT + 99 others); Fri, 8 Feb 2019 03:48:58 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:35982 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfBHIs6 (ORCPT ); Fri, 8 Feb 2019 03:48:58 -0500 Received: by mail-wr1-f65.google.com with SMTP id z3so2679527wrv.3 for ; Fri, 08 Feb 2019 00:48:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=J8ap7TVKBo6kF0rG+M5AdLUG4eAuiDx6Pq6cCaDWkJ0=; b=tXTeH0/v3uc7Qd5/NYENBzKDAjhFjRzzqsx64+QfGP4t0b0sbtcafEJdq9fEbsGtXB EbVUjeX1PZ+s8j5ukfvew0zPoqE8fRtSHRj3NzMWKuIgGVwo3H7dFEwqCIqvBrMCQsfc j6TxFnvvvwaRy1PDQFmQA90rdrzrwx47Fv/BOv1JmLy5YNW/DicKT2NRtR/fkYljO7qz x6quCopmaORWQclVaGHZ6kypNMjJQJW4lKkJbwCIWbwMIUi/DW4RPHjZhgai3B031NwI cFuS3bCHc4pPOOXZsuPbUf5gL3NL025B2ST+3MazvKKhcA08Hl0ccZwyzh4JNIAoUlQi xaMw== 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=J8ap7TVKBo6kF0rG+M5AdLUG4eAuiDx6Pq6cCaDWkJ0=; b=RZcU7MWXooK8Hj/YF9ceRhz3jWQ7darIXSY2jtlmIYZUlHKkJu7TkdPRKfMqxax0NN ivxwF+Ll2LCscziSGZNxqVXpqLAINfMzUGdcHu5mTqwWKHptUbE+ZLJSuuShw7JRqTkV LzkcVBZZj2NWBCjWYqroXNLKKNwhj0V2aSyatFpSmgvTGcMCi0DxgBsTfbuFtKGK8prB okhgPDR3CziCcHvTOhRW4ZVLV8B4pu2g//ARTSBe46jE3x5VQv70KH5bY/8+bnYr7Iw9 mYnvYIP3yeXsdlKUVItc/EGyRi2fB6lfeb+qM4W0oLtSCLSvB8MmX27EK2aFfRB5+Qzz lClg== X-Gm-Message-State: AHQUAuYIqoISNlyuf+70INCpa6GOfwvJMIxYl6OOJX3KATR9AzY8zMrJ Q186PFW6M0xBULF7w8745Y4n8Q== X-Received: by 2002:adf:9123:: with SMTP id j32mr16484330wrj.122.1549615736471; Fri, 08 Feb 2019 00:48:56 -0800 (PST) Received: from localhost (ip-94-113-219-55.net.upcbroadband.cz. [94.113.219.55]) by smtp.gmail.com with ESMTPSA id c1sm3074359wmb.14.2019.02.08.00.48.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 00:48:55 -0800 (PST) Date: Fri, 8 Feb 2019 09:39:42 +0100 From: Jiri Pirko To: Simon Horman Cc: Eli Cohen , jhs@mojatatu.com, xiyou.wangcong@gmail.com, 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: <20190208083942.GD2353@nanopsycho> References: <20190207074549.29861-1-eli@mellanox.com> <20190207074549.29861-3-eli@mellanox.com> <20190208080141.dlksz5dfkufj2sbm@netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190208080141.dlksz5dfkufj2sbm@netronome.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fri, Feb 08, 2019 at 09:01:42AM CET, simon.horman@netronome.com wrote: >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. Sure it has. I believe this is UAPI-safe change.