]> 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)
commit82089e3806aef78de60a6626c59b8ed5c3108827
tree0dd1abea9eca3e6eff9d1b05f41838195b066626
parentb51878db1c133d0a642797f1ab004acf069e5c0f
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: 48c44bb26c02 ('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