Commit e52e0103 authored by Kamal Heib's avatar Kamal Heib Committed by Jakub Kicinski

net/mlx4_en: Use ethtool_puts to fill priv flags strings

Use the ethtool_puts helper to print the priv flags strings into the
ethtool strings interface.
Signed-off-by: default avatarKamal Heib <kheib@redhat.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240617172329.239819-2-kheib@redhat.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8c379e3c
...@@ -536,8 +536,7 @@ static void mlx4_en_get_strings(struct net_device *dev, ...@@ -536,8 +536,7 @@ static void mlx4_en_get_strings(struct net_device *dev,
break; break;
case ETH_SS_PRIV_FLAGS: case ETH_SS_PRIV_FLAGS:
for (i = 0; i < ARRAY_SIZE(mlx4_en_priv_flags); i++) for (i = 0; i < ARRAY_SIZE(mlx4_en_priv_flags); i++)
strcpy(data + i * ETH_GSTRING_LEN, ethtool_puts(&data, mlx4_en_priv_flags[i]);
mlx4_en_priv_flags[i]);
break; break;
} }
......
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