From: Stephen Hemminger <stephen@networkplumber.org>
To: Qiaobin Fu <qiaobinf@bu.edu>
Cc: dsahern@gmail.com, 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
Subject: Re: [PATCH iproute2-next v2] net:sched: add action inheritdsfield to skbedit
Date: Thu, 12 Jul 2018 15:05:26 -0700 [thread overview]
Message-ID: <20180712150526.6c4ed31d@xeon-e3> (raw)
In-Reply-To: <20180712160926.163317-1-qiaobinf@bu.edu>
On Thu, 12 Jul 2018 12:09:26 -0400
Qiaobin Fu <qiaobinf@bu.edu> wrote:
> + if (*flags & SKBEDIT_F_INHERITDSFIELD)
> + print_string(PRINT_ANY, "inheritdsfield", " %s",
> + "inheritdsfield");
Flags should be represented in JSON output as a null value (or boolean).
print_null(PRINT_ANY, "inheritdsfield", " %s", "inheritdsfield");
This will generate:
"inheritdsfield" : null,
Instead of:
"inheritdsfield" : "inheritdsfield",
prev parent reply other threads:[~2018-07-12 22:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-12 16:09 [PATCH iproute2-next v2] net:sched: add action inheritdsfield to skbedit Qiaobin Fu
2018-07-12 20:50 ` Marcelo Ricardo Leitner
2018-07-12 22:05 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180712150526.6c4ed31d@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=davem@davemloft.net \
--cc=dcaratti@redhat.com \
--cc=dsahern@gmail.com \
--cc=jhs@mojatatu.com \
--cc=marcelo.leitner@gmail.com \
--cc=michel@digirati.com.br \
--cc=netdev@vger.kernel.org \
--cc=qiaobinf@bu.edu \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).