From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH iproute2-next v4] net:sched: add action inheritdsfield to skbedit Date: Thu, 19 Jul 2018 10:21:41 -0600 Message-ID: <40aee39f-0063-e987-850f-9a93400c10c6@gmail.com> References: <20180719160718.90990-1-qiaobinf@bu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: stephen@networkplumber.org, davem@davemloft.net, netdev@vger.kernel.org, jhs@mojatatu.com, michel@digirati.com.br, marcelo.leitner@gmail.com, xiyou.wangcong@gmail.com, dcaratti@redhat.com To: Qiaobin Fu Return-path: Received: from mail-pg1-f196.google.com ([209.85.215.196]:40385 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731839AbeGSRFj (ORCPT ); Thu, 19 Jul 2018 13:05:39 -0400 Received: by mail-pg1-f196.google.com with SMTP id x5-v6so4201130pgp.7 for ; Thu, 19 Jul 2018 09:21:44 -0700 (PDT) In-Reply-To: <20180719160718.90990-1-qiaobinf@bu.edu> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 7/19/18 10:07 AM, Qiaobin Fu wrote: > 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. > > v4: > * Make tc use netlink helper functions > > v3: > * Make flag represented in JSON output as a null value > > v2: > * Align the output syntax with the input syntax > > * Fix the style issues > > Original idea by Jamal Hadi Salim > > Signed-off-by: Qiaobin Fu > Reviewed-by: Michel Machado > Reviewed-by: Cong Wang > Reviewed-by: Marcelo Ricardo Leitner > Reviewed-by: Stephen Hemminger > Reviewed-by: David Ahern > --- > > Note that the motivation for this patch is found in the following discussion: > https://www.spinics.net/lists/netdev/msg501061.html > --- > tc/m_skbedit.c | 19 +++++++++++++++++-- > 1 file changed, 17 insertions(+), 2 deletions(-) > applied to iproute2-next. Thanks