From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 60E583B29E for ; Sat, 25 Nov 2017 10:18:56 -0500 (EST) Received: by mail-qt0-x235.google.com with SMTP id p44so34396777qtj.6 for ; Sat, 25 Nov 2017 07:18:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=A38LWFyYyHUj4N3hZTZ+A3AN+BArGRUX0g03pAdd8+s=; b=rdwbTz5s0U7eLyBG1/agfG3RdWWAZ66494nt+mavEv5C1DDrT78G8OJ50y00KSJqg6 4I6K86xduW7ZAFAlvxC91KQ6JUl6l1n4nHyV7QLoP/bSXrOHP//x2AlHYRhZjMrz2STc X2Is4zvpdv7CllPQY6cfJamDt4hWiM8ob1C7dIbWM4MIMOh+DmDdOdSMVDlNtOCwXj9s /jS/pzbuyzFeL4AboianJcvLIYsFL3Y1fRv876kG8E8DO2NYNhZ7n1bVqLN/fMc9DuX/ /AP8IQY23h54TEEjRn7wZFbkrBvs78vW9JnJxPQIkcYXk/xudqxTJKSN54UmrTIrvqz/ N0hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=A38LWFyYyHUj4N3hZTZ+A3AN+BArGRUX0g03pAdd8+s=; b=fVuc/ilaAvRwBNfczBg1Gjh6+SjZPnM7u5Janw+2v+AwN0rBvlcCWhtIHIrTxvDgxc PmdEFUupySMLw7+MsRt4wbJh28s834XjRUZ3PcK88QxHanjXJhaAf5xf4mdAIsyDfwO8 HZTu/5TlJPKqJl7w3zR20a+NjSNFGECfBTOyUh2EbJV8w20f85mYsuw1uWj5kNzrjRXF j4DDCZOvHhPemBxrLE3fqHAqMImIXuIprn0ameu3aRd5VGxXUp1nAiMaF0rGoM8gBYI7 bLLKqIfbsM16M41VPje6Tx2S2Oh0kLctBGbz3OMwnZNkZTBxzAu868bB83UnMmE5Sjbt XQAQ== X-Gm-Message-State: AJaThX6BLKsSxju+6LbHyuaVY7EWbcM8gFMaLL+QAQ6w5DsPA6CKQzfu 3XBqP+wMAR1hArJJodRiN5W0GB0Q6Ah0WTq9Be0= X-Google-Smtp-Source: AGs4zMYwuLEFDjJGKyYTwsGkw6ztO6zMAbHrC7C1WbIcshgCx959I2/A8hWtp4PNH7HX2Ky8nqR8pINGVOvRSUgTmsA= X-Received: by 10.200.46.50 with SMTP id r47mr42815000qta.314.1511623135847; Sat, 25 Nov 2017 07:18:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.193.93 with HTTP; Sat, 25 Nov 2017 07:18:55 -0800 (PST) In-Reply-To: <20171125144835.5045-1-jiri@resnulli.us> References: <20171125144835.5045-1-jiri@resnulli.us> From: Dave Taht Date: Sat, 25 Nov 2017 07:18:55 -0800 Message-ID: To: Cake List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: [Cake] Fwd: [patch iproute2 00/11] tc: jsonify couple of qdics, filter and actions X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2017 15:18:56 -0000 there is a bunch of activity restructuring iproute2... this last patchset, for json. ---------- Forwarded message ---------- From: Jiri Pirko Date: Sat, Nov 25, 2017 at 6:48 AM Subject: [patch iproute2 00/11] tc: jsonify couple of qdics, filter and act= ions To: netdev@vger.kernel.org Cc: stephen@networkplumber.org, jhs@mojatatu.com, mlxsw@mellanox.com From: Jiri Pirko An example json output: $ tc -s -j filter show dev ens8 egress [{ "protocol": "ip", "pref": 6001, "kind": "flower", "chain": 0 },{ "protocol": "ip", "pref": 6001, "kind": "flower", "chain": 0, "options": { "handle": 1, "keys": { "eth_type": "ipv4", "dst_ip": "192.168.250.1" }, "not_in_hw": true, "actions": [{ "order": 1, "kind": "gact", "control_action": { "type": "drop" }, "prob": { "random_type": "none", "control_action": { "type": "pass" }, "val": 0 }, "index": 1, "ref": 1, "bind": 1, "installed": 1667830, "last_used": 1667830, "stats": { "bytes": 0, "packets": 0, "drops": 0, "overlimits": 0, "requeues": 0, "backlog": 0, "qlen": 0, "requeues": 0 }, "cookie": "a1b2c3d4aaaaaaaabb" } } } } ] $ tc -s filter show dev ens8 egress filter pref 6001 flower chain 0 filter pref 6001 flower chain 0 handle 0x1 eth_type ipv4 dst_ip 192.168.250.1 not_in_hw action order 1: gact action drop random type none pass val 0 index 1 ref 1 bind 1 installed 16689 sec used 16689 sec Action statistics: Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 cookie a1b2c3d4aaaaaaaabb --- To be applied on top of my cookie fix patchset Jiri Pirko (11): tc: jsonify qdisc core tc: jsonify stats2 tc: jsonify fq_codel qdisc tc: jsonify htb qdisc tc: jsonify filter core tc: jsonify flower filter tc: jsonify matchall filter tc: jsonify actions core tc: jsonify gact action tc: jsonify mirred action tc: jsonify vlan action tc/f_flower.c | 287 +++++++++++++++++++++++++++++++++-------------------= ---- tc/f_matchall.c | 12 +-- tc/m_action.c | 22 +++-- tc/m_gact.c | 18 ++-- tc/m_mirred.c | 46 +++++++-- tc/m_vlan.c | 26 +++-- tc/q_fq_codel.c | 25 +++-- tc/q_htb.c | 20 ++-- tc/tc.c | 5 +- tc/tc_filter.c | 47 ++++++---- tc/tc_qdisc.c | 52 ++++++---- tc/tc_util.c | 66 +++++++++---- tc/tc_util.h | 1 + 13 files changed, 396 insertions(+), 231 deletions(-) -- 2.9.5 --=20 Dave T=C3=A4ht CEO, TekLibre, LLC http://www.teklibre.com Tel: 1-669-226-2619