netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wen Liang <liangwen12year@gmail.com>
To: netdev@vger.kernel.org
Cc: stephen@networkplumber.org, dsahern@gmail.com, aclaudi@redhat.com
Subject: [PATCH iproute2 v5 0/2] add json support on tc u32
Date: Wed, 26 Jan 2022 14:44:46 -0500	[thread overview]
Message-ID: <cover.1643225596.git.liangwen12year@gmail.com> (raw)

This adds support for json output on tc u32.
- The first patch is replacing with proper json functions in `u32_print_opt()`
- The second patch is fixing the json support in u32 `print_raw()`, `print_ipv4()`
  and `print_ipv6()`

The patches were tested with jq parser.

Wen Liang (2):
  tc: u32: add support for json output
  tc: u32: add json support in `print_raw`, `print_ipv4`, `print_ipv6`

 tc/f_u32.c | 204 ++++++++++++++++++++++++++++++++---------------------
 1 file changed, 125 insertions(+), 79 deletions(-)

-- 
2.26.3


             reply	other threads:[~2022-01-26 19:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-26 19:44 Wen Liang [this message]
2022-01-26 19:44 ` [PATCH iproute2 v5 1/2] tc: u32: add support for json output Wen Liang
2022-02-01 17:48   ` Victor Nogueira
2022-01-26 19:44 ` [PATCH iproute2 v5 2/2] tc: u32: add json support in `print_raw`, `print_ipv4`, `print_ipv6` Wen Liang
2022-02-01 17:48   ` Victor Nogueira
2022-02-03  4:00 ` [PATCH iproute2 v5 0/2] add json support on tc u32 patchwork-bot+netdevbpf

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=cover.1643225596.git.liangwen12year@gmail.com \
    --to=liangwen12year@gmail.com \
    --cc=aclaudi@redhat.com \
    --cc=dsahern@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.org \
    /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).