netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Edward Cree <ecree@solarflare.com>
To: Jamal Hadi Salim <jhs@mojatatu.com>,
	Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: Jiri Pirko <jiri@resnulli.us>,
	Pablo Neira Ayuso <pablo@netfilter.org>,
	David Miller <davem@davemloft.net>,
	netdev <netdev@vger.kernel.org>,
	"Cong Wang" <xiyou.wangcong@gmail.com>,
	Andy Gospodarek <andy@greyhouse.net>,
	"Anjali Singhai Jain" <anjali.singhai@intel.com>,
	Or Gerlitz <gerlitz.or@gmail.com>
Subject: Re: [RFC PATCH net-next 2/3] flow_offload: restore ability to collect separate stats per action
Date: Wed, 8 May 2019 18:07:15 +0100	[thread overview]
Message-ID: <1c0d0a0a-a74b-c887-d615-0f0c0d2e1b9a@solarflare.com> (raw)
In-Reply-To: <ab1f179e-9a91-837b-28c8-81eecbd09e7f@mojatatu.com>

On 08/05/2019 15:02, Jamal Hadi Salim wrote:
> The lazy thing most people have done is essentially assume that
> there is a stat per filter rule...
> I wouldnt call it the 'the right thing'
Yup, that's why I'm trying to not do that ;-)

> Yes, the index at tc semantics level is per-action type.
> So "mirred index 1" and "drop index 1" are not the same stats counter.
Ok, then that kills the design I used here that relied entirely on the
 index to specify counters.
I guess instead I'll have to go with the approach Pablo suggested,
 passing an array of struct flow_stats in the callback, thus using
 the index into that array (which corresponds to the index in
 f->exts->actions) to identify different counters.
Which means I will have to change all the existing drivers, which will
 largely revert (from the drivers' perspective) the change when Pablo
 took f->exts away from them — they will go back to calling something
 that looks a lot like tcf_exts_stats_update().
However, that'll mean the API has in-tree users, so it might be
 considered mergeable(?)

-Ed

  reply	other threads:[~2019-05-08 17:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-03 15:06 [RFC PATCH net-next 2/3] flow_offload: restore ability to collect separate stats per action Edward Cree
2019-05-04  6:27 ` Jakub Kicinski
2019-05-06 12:41   ` Jamal Hadi Salim
2019-05-07 12:27     ` Edward Cree
2019-05-07 17:22       ` Jakub Kicinski
2019-05-08 14:02       ` Jamal Hadi Salim
2019-05-08 17:07         ` Edward Cree [this message]
2019-05-09 15:23           ` Jamal Hadi Salim

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=1c0d0a0a-a74b-c887-d615-0f0c0d2e1b9a@solarflare.com \
    --to=ecree@solarflare.com \
    --cc=andy@greyhouse.net \
    --cc=anjali.singhai@intel.com \
    --cc=davem@davemloft.net \
    --cc=gerlitz.or@gmail.com \
    --cc=jakub.kicinski@netronome.com \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=netdev@vger.kernel.org \
    --cc=pablo@netfilter.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).