netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: xiyou.wangcong@gmail.com
Cc: netdev@vger.kernel.org, martin.olsson+netdev@sentorsecurity.com,
	jhs@mojatatu.com, jiri@resnulli.us
Subject: Re: [Patch net-next] net_sched: add hit counter for matchall
Date: Fri, 18 Jan 2019 14:14:03 -0800 (PST)	[thread overview]
Message-ID: <20190118.141403.2038148706703776533.davem@davemloft.net> (raw)
In-Reply-To: <20190117204425.27750-1-xiyou.wangcong@gmail.com>

From: Cong Wang <xiyou.wangcong@gmail.com>
Date: Thu, 17 Jan 2019 12:44:25 -0800

> Although matchall always matches packets, however, it still
> relies on a protocol match first. So it is still useful to have
> such a counter for matchall. Of course, unlike u32, every time
> we hit a matchall filter, it is always a success, so we don't
> have to distinguish them.
> 
> Sample output:
> 
> filter protocol 802.1Q pref 100 matchall chain 0
> filter protocol 802.1Q pref 100 matchall chain 0 handle 0x1
>   not_in_hw (rule hit 10)
> 	action order 1: vlan  pop continue
> 	 index 1 ref 1 bind 1 installed 40 sec used 1 sec
> 	Action statistics:
> 	Sent 836 bytes 10 pkt (dropped 0, overlimits 0 requeues 0)
> 	backlog 0b 0p requeues 0
> 
> Reported-by: Martin Olsson <martin.olsson+netdev@sentorsecurity.com>
> Cc: Jamal Hadi Salim <jhs@mojatatu.com>
> Cc: Jiri Pirko <jiri@resnulli.us>
> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>

Applied.

      reply	other threads:[~2019-01-18 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17 20:44 [Patch net-next] net_sched: add hit counter for matchall Cong Wang
2019-01-18 22:14 ` David Miller [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=20190118.141403.2038148706703776533.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=martin.olsson+netdev@sentorsecurity.com \
    --cc=netdev@vger.kernel.org \
    --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).