]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite4202c61df0a27bbed4a647cf8fd1de4ec06c824
treeb4fa5607f5f7e5655abca1b0f0fd6524e20a1c4d
parentd28cee41da7e3f48c56d2621ce72379e558d4f4a
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