From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [PATCH net-next v3 4/5] net/tc: introduce TC_ACT_REINJECT. Date: Wed, 25 Jul 2018 14:59:51 +0200 Message-ID: <20180725125951.GI2164@nanopsycho> References: <3c20787be0fd5d64728ffed46ae0a7dff10d7e05.1532437050.git.pabeni@redhat.com> <2bf4fbfd-abe2-7d3b-a4f8-42805b7760c5@mojatatu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Abeni , netdev@vger.kernel.org, Cong Wang , Daniel Borkmann , Marcelo Ricardo Leitner , Eyal Birger , "David S. Miller" , Shmulik Ladkani To: Jamal Hadi Salim Return-path: Received: from mail-wr1-f68.google.com ([209.85.221.68]:44407 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728492AbeGYONy (ORCPT ); Wed, 25 Jul 2018 10:13:54 -0400 Received: by mail-wr1-f68.google.com with SMTP id r16-v6so7307344wrt.11 for ; Wed, 25 Jul 2018 06:02:18 -0700 (PDT) Content-Disposition: inline In-Reply-To: <2bf4fbfd-abe2-7d3b-a4f8-42805b7760c5@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: Wed, Jul 25, 2018 at 02:16:12PM CEST, jhs@mojatatu.com wrote: [...] >> diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h >> index 2081e4219f81..36ccfe2a303a 100644 >> --- a/include/net/pkt_cls.h >> +++ b/include/net/pkt_cls.h >> @@ -7,6 +7,9 @@ >> #include >> #include >> +/* TC action not accessible from user space */ >> +#define TC_ACT_REINJECT (TC_ACT_VALUE_MAX + 1) > >Lets say in the future we add a new opcode. >Will old kernel, new iproute2 (new value) work? This is safe. See patch #2.