From: "Zhao1, Wei" <wei.zhao1@intel.com>
To: "Lu, Wenzhuo" <wenzhuo.lu@intel.com>
Cc: "stable@dpdk.org" <stable@dpdk.org>,
"Adrien Mazarguil (adrien.mazarguil@6wind.com)"
<adrien.mazarguil@6wind.com>
Subject: Re: [dpdk-stable] [PATCH] net/ixgbe: add query rule stats support for FDIR
Date: Tue, 12 Jun 2018 01:51:33 +0000 [thread overview]
Message-ID: <A2573D2ACFCADC41BB3BE09C6DE313CA07DFC85F@PGSMSX103.gar.corp.intel.com> (raw)
In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC09093B7E83BB@shsmsx102.ccr.corp.intel.com>
Hi,Wenzhuo
> -----Original Message-----
> From: Lu, Wenzhuo
> Sent: Tuesday, June 12, 2018 9:46 AM
> To: Zhao1, Wei <wei.zhao1@intel.com>
> Cc: stable@dpdk.org; Adrien Mazarguil (adrien.mazarguil@6wind.com)
> <adrien.mazarguil@6wind.com>
> Subject: RE: [PATCH] net/ixgbe: add query rule stats support for FDIR
>
> Hi Wei,
>
> > -----Original Message-----
> > From: Zhao1, Wei
> > Sent: Tuesday, June 5, 2018 5:12 PM
> > To: dev@dpdk.org
> > Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; stable@dpdk.org; Zhao1, Wei
> > <wei.zhao1@intel.com>
> > Subject: [PATCH] net/ixgbe: add query rule stats support for FDIR
> >
> > There are many registeres in x550 support stats of flow director
> > filters, for example the number of added or removed rules and the
> > number match or miss match packet count for this for port, all these
> > important information can be read form registeres in x550 and display with
> command xstats.
> >
> > Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
> > ---
> > drivers/net/ixgbe/ixgbe_ethdev.c | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c
> > b/drivers/net/ixgbe/ixgbe_ethdev.c
> > index 87d2ad0..cb95865 100644
> > --- a/drivers/net/ixgbe/ixgbe_ethdev.c
> > +++ b/drivers/net/ixgbe/ixgbe_ethdev.c
> > @@ -3122,6 +3122,13 @@ ixgbe_read_stats_registers(struct ixgbe_hw
> *hw,
> > /* Flow Director Stats registers */
> > hw_stats->fdirmatch += IXGBE_READ_REG(hw, IXGBE_FDIRMATCH);
> > hw_stats->fdirmiss += IXGBE_READ_REG(hw, IXGBE_FDIRMISS);
> > + hw_stats->fdirustat_add += IXGBE_READ_REG(hw,
> IXGBE_FDIRUSTAT)
> > & 0xFFFF;
> > + hw_stats->fdirustat_remove += (IXGBE_READ_REG(hw,
> > IXGBE_FDIRUSTAT) >>
> > + 16) & 0xFFFF;
> > + hw_stats->fdirfstat_fadd += IXGBE_READ_REG(hw,
> IXGBE_FDIRFSTAT)
> > &
> > + 0xFFFF;
> > + hw_stats->fdirfstat_fremove += (IXGBE_READ_REG(hw,
> > IXGBE_FDIRFSTAT) >>
> > + 16) & 0xFFFF;
> Although looks better to get these stats, but 2 concerns here.
> 1, Most probably 82598 doesn't support these registers, should check the
> mac type here?
Yes, we need to check mac type , I will add that.
> 2, Looks like this info is not helpful to the users, because we cannot pass it to
> the APP. Please check 'rte_eth_stats_get', you will find rte layer doesn't
> expose the fdir stats.
> You see the old fdir APIs have the stats, like RTE_ETH_FILTER_STATS. As we
> plan to use rte_flow to replace the old APIs, maybe we need think about
> how to move the stats into rte_flow.
This stats is useful when using testpmd, it will be display in "show port 0 xstats ", I have use it in that way, very useful.
next prev parent reply other threads:[~2018-06-12 1:51 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 9:12 [dpdk-stable] [PATCH] app/testpmd: fix VLAN tci mask set error " Wei Zhao
2018-06-05 9:12 ` [dpdk-stable] [PATCH] net/ixgbe: add query rule stats support " Wei Zhao
2018-06-12 1:46 ` Lu, Wenzhuo
2018-06-12 1:51 ` Zhao1, Wei [this message]
2018-06-12 2:07 ` Lu, Wenzhuo
2018-06-13 8:07 ` [dpdk-stable] [PATCH v2] " Wei Zhao
2018-06-13 8:08 ` Wei Zhao
2018-06-14 0:36 ` Lu, Wenzhuo
2018-06-21 14:08 ` [dpdk-stable] [dpdk-dev] " Zhang, Qi Z
2018-06-05 9:12 ` [dpdk-stable] [PATCH] net/ixgbe: add support for VLAN in IP mode FDIR Wei Zhao
2018-06-12 2:25 ` Lu, Wenzhuo
2018-06-12 2:30 ` Zhao1, Wei
2018-06-12 2:41 ` Lu, Wenzhuo
2018-06-12 2:49 ` Zhao1, Wei
2018-06-12 3:18 ` Zhao1, Wei
2018-06-13 8:09 ` [dpdk-stable] [PATCH v2] " Wei Zhao
2018-06-14 0:37 ` Lu, Wenzhuo
2018-06-21 14:09 ` [dpdk-stable] [dpdk-dev] " Zhang, Qi Z
2018-06-05 9:12 ` [dpdk-stable] [PATCH] net/ixgbe: fix tunnel id format error for FDIR Wei Zhao
2018-06-12 5:10 ` Lu, Wenzhuo
2018-06-12 7:49 ` Zhao1, Wei
2018-06-12 8:39 ` Lu, Wenzhuo
2018-06-12 8:43 ` Zhao1, Wei
2018-06-13 8:11 ` [dpdk-stable] [PATCH v2] " Wei Zhao
2018-06-14 0:38 ` Lu, Wenzhuo
2018-06-21 14:10 ` [dpdk-stable] [dpdk-dev] " Zhang, Qi Z
2018-06-05 9:12 ` [dpdk-stable] [PATCH] net/ixgbe: fix tunnel type set " Wei Zhao
2018-06-13 8:11 ` [dpdk-stable] [PATCH v2] " Wei Zhao
2018-06-14 0:41 ` Lu, Wenzhuo
2018-06-14 1:51 ` Zhao1, Wei
2018-06-14 8:17 ` [dpdk-stable] [PATCH v3] " Wei Zhao
2018-06-15 0:50 ` Lu, Wenzhuo
2018-06-21 14:11 ` [dpdk-stable] [dpdk-dev] " Zhang, Qi Z
2018-06-12 1:12 ` [dpdk-stable] [PATCH] app/testpmd: fix VLAN tci mask " Lu, Wenzhuo
2018-06-21 14:27 ` [dpdk-stable] [dpdk-dev] " Zhang, Qi Z
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=A2573D2ACFCADC41BB3BE09C6DE313CA07DFC85F@PGSMSX103.gar.corp.intel.com \
--to=wei.zhao1@intel.com \
--cc=adrien.mazarguil@6wind.com \
--cc=stable@dpdk.org \
--cc=wenzhuo.lu@intel.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).