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 40b5c73e5e269b4f37ea00a5e143e812882071f2..6761796e803cd35d8d891e66dbfa9fad942d46a3 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 {