All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH] ixgbe: Add receive length error counter.
@ 2018-02-28 11:59 Tonghao Zhang
  2018-02-28 17:17 ` Jeff Kirsher
  2018-03-01 21:11 ` Bowers, AndrewX
  0 siblings, 2 replies; 4+ messages in thread
From: Tonghao Zhang @ 2018-02-28 11:59 UTC (permalink / raw)
  To: intel-wired-lan

ixgbe enabled rlec counter and the rx_error used it.
We can export the counter directly via ethtool -S ethX.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
index 221f158..eb9aebd 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
@@ -97,6 +97,7 @@ struct ixgbe_stats {
 	{"tx_heartbeat_errors", IXGBE_NETDEV_STAT(tx_heartbeat_errors)},
 	{"tx_timeout_count", IXGBE_STAT(tx_timeout_count)},
 	{"tx_restart_queue", IXGBE_STAT(restart_queue)},
+	{"rx_length_errors", IXGBE_STAT(stats.rlec)},
 	{"rx_long_length_errors", IXGBE_STAT(stats.roc)},
 	{"rx_short_length_errors", IXGBE_STAT(stats.ruc)},
 	{"tx_flow_control_xon", IXGBE_STAT(stats.lxontxc)},
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Intel-wired-lan] [PATCH] ixgbe: Add receive length error counter.
  2018-02-28 11:59 [Intel-wired-lan] [PATCH] ixgbe: Add receive length error counter Tonghao Zhang
@ 2018-02-28 17:17 ` Jeff Kirsher
  2018-03-01  1:29   ` Tonghao Zhang
  2018-03-01 21:11 ` Bowers, AndrewX
  1 sibling, 1 reply; 4+ messages in thread
From: Jeff Kirsher @ 2018-02-28 17:17 UTC (permalink / raw)
  To: intel-wired-lan

On Wed, 2018-02-28 at 03:59 -0800, Tonghao Zhang wrote:
> ixgbe enabled rlec counter and the rx_error used it.
> We can export the counter directly via ethtool -S ethX.
> 
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 1 +
>  1 file changed, 1 insertion(+)

A minor nitpick, your patch title/subject ending in a period which is
not needed or wanted.  Patch titles/subjects should not be complete
sentences, so they do not need punctuation at the end.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20180228/2b61432d/attachment.asc>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Intel-wired-lan] [PATCH] ixgbe: Add receive length error counter.
  2018-02-28 17:17 ` Jeff Kirsher
@ 2018-03-01  1:29   ` Tonghao Zhang
  0 siblings, 0 replies; 4+ messages in thread
From: Tonghao Zhang @ 2018-03-01  1:29 UTC (permalink / raw)
  To: intel-wired-lan

On Thu, Mar 1, 2018 at 1:17 AM, Jeff Kirsher
<jeffrey.t.kirsher@intel.com> wrote:
> On Wed, 2018-02-28 at 03:59 -0800, Tonghao Zhang wrote:
>> ixgbe enabled rlec counter and the rx_error used it.
>> We can export the counter directly via ethtool -S ethX.
>>
>> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
>> ---
>>  drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 1 +
>>  1 file changed, 1 insertion(+)
>
> A minor nitpick, your patch title/subject ending in a period which is
> not needed or wanted.  Patch titles/subjects should not be complete
> sentences, so they do not need punctuation at the end.
Jeff, thanks for your tips.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Intel-wired-lan] [PATCH] ixgbe: Add receive length error counter.
  2018-02-28 11:59 [Intel-wired-lan] [PATCH] ixgbe: Add receive length error counter Tonghao Zhang
  2018-02-28 17:17 ` Jeff Kirsher
@ 2018-03-01 21:11 ` Bowers, AndrewX
  1 sibling, 0 replies; 4+ messages in thread
From: Bowers, AndrewX @ 2018-03-01 21:11 UTC (permalink / raw)
  To: intel-wired-lan

> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tonghao Zhang
> Sent: Wednesday, February 28, 2018 3:59 AM
> To: intel-wired-lan at osuosl.org
> Subject: [Intel-wired-lan] [PATCH] ixgbe: Add receive length error counter.
> 
> ixgbe enabled rlec counter and the rx_error used it.
> We can export the counter directly via ethtool -S ethX.
> 
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 1 +
>  1 file changed, 1 insertion(+)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-01 21:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-28 11:59 [Intel-wired-lan] [PATCH] ixgbe: Add receive length error counter Tonghao Zhang
2018-02-28 17:17 ` Jeff Kirsher
2018-03-01  1:29   ` Tonghao Zhang
2018-03-01 21:11 ` Bowers, AndrewX

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.