From: Jakub Kicinski <kubakici@wp.pl>
To: Saeed Mahameed <saeedm@mellanox.com>
Cc: "David S. Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, Eugenia Emantayev <eugenia@mellanox.com>
Subject: Re: [PATCH net-next 3/4] net/core: Add violation counters to VF statisctics
Date: Sun, 27 Aug 2017 20:43:06 -0400 [thread overview]
Message-ID: <20170827204306.0fb98e31@cakuba> (raw)
In-Reply-To: <20170827110618.20599-4-saeedm@mellanox.com>
On Sun, 27 Aug 2017 14:06:17 +0300, Saeed Mahameed wrote:
> From: Eugenia Emantayev <eugenia@mellanox.com>
>
> Add receive and transmit violation counters to be
> displayed in iproute2 VF statistics.
>
> Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
> ---
> include/linux/if_link.h | 2 ++
> include/uapi/linux/if_link.h | 2 ++
> net/core/rtnetlink.c | 10 +++++++++-
> 3 files changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/include/linux/if_link.h b/include/linux/if_link.h
> index da70af27e42e..ebf3448acb5b 100644
> --- a/include/linux/if_link.h
> +++ b/include/linux/if_link.h
> @@ -12,6 +12,8 @@ struct ifla_vf_stats {
> __u64 tx_bytes;
> __u64 broadcast;
> __u64 multicast;
> + __u64 rx_dropped;
> + __u64 tx_dropped;
I'm a little concerned that you call those violation counters in the
commit message. Do you expect them to only be used if the VF traffic
indeed violates some admin-set rules? I would imaging HW/FW may drop
frames in certain situations and naming the counters *_dropped suggests
it would be OK to increment them even if the drop reason was not any
sort of violation. Would you mind clarifying?
next prev parent reply other threads:[~2017-08-28 0:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-27 11:06 [PATCH net-next 0/4] SRIOV VF VGT+ and violation counters support Saeed Mahameed
2017-08-27 11:06 ` [PATCH net-next 1/4] net: Add SRIOV VGT+ support Saeed Mahameed
2017-08-28 0:38 ` Jakub Kicinski
2017-08-28 9:50 ` Saeed Mahameed
2017-08-28 15:52 ` Sabrina Dubroca
2017-08-29 10:13 ` Saeed Mahameed
2017-08-29 16:43 ` Sabrina Dubroca
2017-08-30 18:30 ` Saeed Mahameed
2017-08-27 11:06 ` [PATCH net-next 2/4] net/mlx5: " Saeed Mahameed
2017-08-27 11:06 ` [PATCH net-next 3/4] net/core: Add violation counters to VF statisctics Saeed Mahameed
2017-08-28 0:43 ` Jakub Kicinski [this message]
2017-08-28 9:52 ` Saeed Mahameed
2017-08-27 11:06 ` [PATCH net-next 4/4] net/mlx5e: E-switch, Add steering drop counters Saeed Mahameed
2017-08-30 18:33 ` [PATCH net-next 0/4] SRIOV VF VGT+ and violation counters support Saeed Mahameed
2017-08-30 18:39 ` David Miller
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=20170827204306.0fb98e31@cakuba \
--to=kubakici@wp.pl \
--cc=davem@davemloft.net \
--cc=eugenia@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=saeedm@mellanox.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).