From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v5 net-next] net:sched: add action inheritdsfield to skbedit Date: Wed, 04 Jul 2018 21:28:00 +0900 (KST) Message-ID: <20180704.212800.561269951424444152.davem@davemloft.net> References: <20180701191627.144983-1-qiaobinf@bu.edu> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: marcelo.leitner@gmail.com, dcaratti@redhat.com, michel@digirati.com.br, netdev@vger.kernel.org, jhs@mojatatu.com, xiyou.wangcong@gmail.com To: qiaobinf@bu.edu Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:35808 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933269AbeGDM2E (ORCPT ); Wed, 4 Jul 2018 08:28:04 -0400 In-Reply-To: <20180701191627.144983-1-qiaobinf@bu.edu> Sender: netdev-owner@vger.kernel.org List-ID: From: Qiaobin Fu Date: Sun, 1 Jul 2018 15:16:27 -0400 > The new action inheritdsfield copies the field DS of > IPv4 and IPv6 packets into skb->priority. This enables > later classification of packets based on the DS field. > > v5: > *Update the drop counter for TC_ACT_SHOT > > v4: > *Not allow setting flags other than the expected ones. > > *Allow dumping the pure flags. > > v3: > *Use optional flags, so that it won't break old versions of tc. > > *Allow users to set both SKBEDIT_F_PRIORITY and SKBEDIT_F_INHERITDSFIELD flags. > > v2: > *Fix the style issue > > *Move the code from skbmod to skbedit > > Original idea by Jamal Hadi Salim > > Signed-off-by: Qiaobin Fu > Reviewed-by: Michel Machado > Acked-by: Jamal Hadi Salim > Reviewed-by: Marcelo Ricardo Leitner > Acked-by: Davide Caratti Applied.