net/mlx5e: Use ethtool_sprintf/puts() to fill priv flags strings
authorGal Pressman <gal@nvidia.com>
Tue, 2 Apr 2024 13:30:33 +0000 (16:30 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Apr 2024 02:47:57 +0000 (19:47 -0700)
commite2d515eb8fcdde06da49be981e13f0c7be4f0b16
tree84b589ca52bf6c74b6636d9e10f7bf887660a416
parent8c73e8b5959317b0f270fb501ce4af8574d5b2ff
net/mlx5e: Use ethtool_sprintf/puts() to fill priv flags strings

Use ethtool_sprintf/puts() helper functions which handle the common
pattern of printing a string into the ethtool strings interface and
incrementing the string pointer by ETH_GSTRING_LEN.

Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240402133043.56322-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c