]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix MLX5_CMD_OP_MAX to be defined correctly
authorShahar Klein <shahark@mellanox.com>
Thu, 9 Jun 2016 21:07:30 +0000 (00:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jun 2016 05:06:25 +0000 (22:06 -0700)
commit5d1a1b13cc2f53e297cfbe06312995af21f4b06a
tree0dd1abea9eca3e6eff9d1b05f41838195b066626
parent5ef6e3e48ad305c845109a2f32c0d5f3fad73560
net/mlx5: Fix MLX5_CMD_OP_MAX to be defined correctly

Having MLX5_CMD_OP_MAX on another file causes us to repeatedly miss
accounting new commands added to the driver and hence there're no entries
for them in debugfs. To solve that, we integrate it into the commands enum
as the last entry.

Fixes: 2d428ef0cb99 ('net/mlx5_core: Introduce modify flow table command')
Signed-off-by: Shahar Klein <shahark@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mlx5/device.h
include/linux/mlx5/mlx5_ifc.h