net/dim: use struct net_dim_sample as arg to net_dim
authorAndy Gospodarek <gospo@broadcom.com>
Tue, 9 Jan 2018 21:06:19 +0000 (16:06 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 20:27:45 +0000 (15:27 -0500)
commit8115b750dbcbeb3aa412f18b7a8b0aee4d35b079
treeb4fa5607f5f7e5655abca1b0f0fd6524e20a1c4d
parent4c4dbb4a7363ce56c77cf8eb2090f67c1b0aa2cc
net/dim: use struct net_dim_sample as arg to net_dim

Simplify the arguments net_dim() by formatting them into a struct
net_dim_sample before calling the function.

Signed-off-by: Andy Gospodarek <gospo@broadcom.com>
Suggested-by: Tal Gilboa <talgi@mellanox.com>
Acked-by: Tal Gilboa <talgi@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
include/linux/net_dim.h