net/mlx5: Fix rate limit packet pacing naming and struct
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 13 Nov 2017 08:11:27 +0000 (10:11 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 19 Dec 2017 21:23:58 +0000 (23:23 +0200)
commit37e92a9d4fe38dc3e7308913575983a6a088c8d4
treeb0119e3fea75148a254cc5588d614d807fe7cc3b
parent231243c82793428467524227ae02ca451e6a98e7
net/mlx5: Fix rate limit packet pacing naming and struct

In mlx5_ifc, struct size was not complete, and thus driver was sending
garbage after the last defined field. Fixed it by adding reserved field
to complete the struct size.

In addition, rename all set_rate_limit to set_pp_rate_limit to be
compliant with the Firmware <-> Driver definition.

Fixes: 7486216b3a0b ("{net,IB}/mlx5: mlx5_ifc updates")
Fixes: 1466cc5b23d1 ("net/mlx5: Rate limit tables support")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/rl.c
include/linux/mlx5/mlx5_ifc.h