netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Saeed Mahameed <saeedm@mellanox.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Leon Romanovsky <leonro@mellanox.com>,
	Gal Pressman <galp@mellanox.com>,
	Saeed Mahameed <saeedm@mellanox.com>
Subject: [V2 net-next 15/15] net/mlx5e: Use size_t to store byte offset in statistics descriptors
Date: Sun, 20 Aug 2017 16:49:16 +0300	[thread overview]
Message-ID: <20170820134916.10222-16-saeedm@mellanox.com> (raw)
In-Reply-To: <20170820134916.10222-1-saeedm@mellanox.com>

From: Gal Pressman <galp@mellanox.com>

The byte offset of counter descriptors should be stored in size_t variable
instead of an integer.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
---
 drivers/net/ethernet/mellanox/mlx5/core/en_stats.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
index 40b5c73e5e26..6761796e803c 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
@@ -47,7 +47,7 @@
 
 struct counter_desc {
 	char		format[ETH_GSTRING_LEN];
-	int		offset; /* Byte offset */
+	size_t		offset; /* Byte offset */
 };
 
 struct mlx5e_sw_stats {
-- 
2.13.0

  parent reply	other threads:[~2017-08-20 13:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-20 13:49 [pull request][V2 net-next 00/15] Mellanox, mlx5 updates 2017-08-17 Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 01/15] net/mlx5e: Send PAOS command on interface up/down Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 02/15] net/mlx5e: IPoIB, Fix driver name retrieved by ethtool Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 03/15] net/mlx5e: IPoIB, Add support for get_link_ksettings in ethtool Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 04/15] net/mlx5: Add PCIe outbound stalls counters infrastructure Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 05/15] net/mlx5e: Add PCIe outbound stalls counters Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 06/15] net/mlx5: Add RX buffer fullness counters infrastructure Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 07/15] net/mlx5e: Add RX buffer fullness counters Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 08/15] net/mlx5e: Add outbound PCI buffer overflow counter Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 09/15] net/mlx5: Avoid blank lines after/before open/close brace Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 10/15] net/mlx5: Add a blank line after declarations Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 11/15] net/mlx5e: Properly indent within conditional statements Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 12/15] net/mlx5e: Avoid using multiple blank lines Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 13/15] net/mlx5e: Place constants on the right side of comparisons Saeed Mahameed
2017-08-20 13:49 ` [V2 net-next 14/15] net/mlx5e: Use kernel types instead of uint*_t in ethtool callbacks Saeed Mahameed
2017-08-20 13:49 ` Saeed Mahameed [this message]
2017-08-20 22:19 ` [pull request][V2 net-next 00/15] Mellanox, mlx5 updates 2017-08-17 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=20170820134916.10222-16-saeedm@mellanox.com \
    --to=saeedm@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=galp@mellanox.com \
    --cc=leonro@mellanox.com \
    --cc=netdev@vger.kernel.org \
    /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).