Commit c045deef authored by Gal Pressman's avatar Gal Pressman Committed by Saeed Mahameed

net/mlx5e: Use kernel types instead of uint*_t in ethtool callbacks

Fix checkpatch errors:
CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u32' over 'uint32_t'
Signed-off-by: default avatarGal Pressman <galp@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 1afdb771
...@@ -206,7 +206,7 @@ static int mlx5e_get_sset_count(struct net_device *dev, int sset) ...@@ -206,7 +206,7 @@ static int mlx5e_get_sset_count(struct net_device *dev, int sset)
return mlx5e_ethtool_get_sset_count(priv, sset); return mlx5e_ethtool_get_sset_count(priv, sset);
} }
static void mlx5e_fill_stats_strings(struct mlx5e_priv *priv, uint8_t *data) static void mlx5e_fill_stats_strings(struct mlx5e_priv *priv, u8 *data)
{ {
int i, j, tc, prio, idx = 0; int i, j, tc, prio, idx = 0;
unsigned long pfc_combined; unsigned long pfc_combined;
...@@ -308,8 +308,7 @@ static void mlx5e_fill_stats_strings(struct mlx5e_priv *priv, uint8_t *data) ...@@ -308,8 +308,7 @@ static void mlx5e_fill_stats_strings(struct mlx5e_priv *priv, uint8_t *data)
priv->channel_tc2txq[i][tc]); priv->channel_tc2txq[i][tc]);
} }
void mlx5e_ethtool_get_strings(struct mlx5e_priv *priv, void mlx5e_ethtool_get_strings(struct mlx5e_priv *priv, u32 stringset, u8 *data)
uint32_t stringset, uint8_t *data)
{ {
int i; int i;
...@@ -331,8 +330,7 @@ void mlx5e_ethtool_get_strings(struct mlx5e_priv *priv, ...@@ -331,8 +330,7 @@ void mlx5e_ethtool_get_strings(struct mlx5e_priv *priv,
} }
} }
static void mlx5e_get_strings(struct net_device *dev, static void mlx5e_get_strings(struct net_device *dev, u32 stringset, u8 *data)
uint32_t stringset, uint8_t *data)
{ {
struct mlx5e_priv *priv = netdev_priv(dev); struct mlx5e_priv *priv = netdev_priv(dev);
......
...@@ -43,8 +43,7 @@ static void mlx5i_get_drvinfo(struct net_device *dev, ...@@ -43,8 +43,7 @@ static void mlx5i_get_drvinfo(struct net_device *dev,
sizeof(drvinfo->driver)); sizeof(drvinfo->driver));
} }
static void mlx5i_get_strings(struct net_device *dev, static void mlx5i_get_strings(struct net_device *dev, u32 stringset, u8 *data)
uint32_t stringset, uint8_t *data)
{ {
struct mlx5e_priv *priv = mlx5i_epriv(dev); struct mlx5e_priv *priv = mlx5i_epriv(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment