OSDN Git Service

net/mlx5e: Improve ethtool private-flags code structure
authorTariq Toukan <tariqt@mellanox.com>
Mon, 19 Nov 2018 13:07:07 +0000 (15:07 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Dec 2018 00:00:37 +0000 (16:00 -0800)
commit8ff57c18e9f6b03722070a372cdcc850b13bcbc8
tree66c67a5fe7a63c14d2769f28e03601982d222fb9
parent756c41603a189e4ae9dca77c3c3d80a926d8bedf
net/mlx5e: Improve ethtool private-flags code structure

Refactor the code of private-flags setter.
Replace consecutive calls to mlx5e_handle_pflag with a loop
that uses a preset set of parameters.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c