net/mlx5e: Use size_t to store byte offset in statistics descriptors
authorGal Pressman <galp@mellanox.com>
Sun, 2 Jul 2017 15:26:21 +0000 (18:26 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 20 Aug 2017 09:57:20 +0000 (12:57 +0300)
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

index 40b5c73..6761796 100644 (file)
@@ -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 {