]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc58210328a3dde844e988f8eedf5bd9b44eb60f0
treeb0119e3fea75148a254cc5588d614d807fe7cc3b
parent5933730a2223fd10143c275daae287db765135fd
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: f52da8bd5248 ("{net,IB}/mlx5: mlx5_ifc updates")
Fixes: 3908caea0066 ("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