Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Denis Gubin <denis.gubin@gmail.com>
To: netdev@vger.kernel.org
Subject: tc filter show pretty mode
Date: Tue, 18 Aug 2020 23:40:19 +0300	[thread overview]
Message-ID: <CAE_-sd=TddkSgFTMH6MNb4p31cmVLayZGchtr2D0w5Bjb7t+pg@mail.gmail.com> (raw)

Good day, everybody!

I've got a problem with output tc filter show command in pretty mode.

I am looking to output and I don't see anything match mac address at all.

I've entered some command for test:
tc qdisc add dev ens5 ingress
tc filter add dev ens5 parent ffff: protocol ip u32 match ether dst
ce:22:a5:5a:1c:26 match ether src ce:22:a5:5a:1c:24


tc filter show dev ens5 ingress

filter protocol ip pref 49152 u32 chain 0
filter protocol ip pref 49152 u32 chain 0 fh 800: ht divisor 1
filter protocol ip pref 49152 u32 chain 0 fh 800::800 order 2048 key ht 800
bkt 0 not_in_hw
  match 0000ce22/0000ffff at -16
  match a55a1c26/ffffffff at -12
  match ce22a55a/ffffffff at -8
  match 1c240000/ffff0000 at -4


Then add -p (pretty) key and...

tc -p filter show dev ens5 ingress

filter protocol ip pref 49152 u32 chain 0
filter protocol ip pref 49152 u32 chain 0 fh 800: ht divisor 1
filter protocol ip pref 49152 u32 chain 0 fh 800::800 order 2048 key ht 800
bkt 0 not_in_hw

-- 
Best regards,
Denis Gubin

                 reply	other threads:[~2020-08-18 20:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAE_-sd=TddkSgFTMH6MNb4p31cmVLayZGchtr2D0w5Bjb7t+pg@mail.gmail.com' \
    --to=denis.gubin@gmail.com \
    --cc=netdev@vger.kernel.org \
    --subject='Re: tc filter show pretty mode' \
    /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

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).