]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix 'DON'T_TRAP' functionality
authorRaed Salem <raeds@mellanox.com>
Tue, 3 Jul 2018 07:10:38 +0000 (10:10 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 19 Jul 2018 01:16:57 +0000 (18:16 -0700)
commit2109f118cc1d73b3a9a64932a8d407739cd2b092
tree86abaee3137d3f4433541b294b31ba5977df7b5d
parent1fe23b766713f27cfb5aeefe3fa53170432530d3
net/mlx5: Fix 'DON'T_TRAP' functionality

The flow counters binding support commit introduced a code change where
none NULL 'rule_dest' is always passed to mlx5_add_flow_rules, this breaks
'DON'T_TRAP' rules insertion.

The fix uses the equivalent 'dest_num' value instead of dest pointer
at the failed check.

fixes: 5f57985317bf ('IB/mlx5: Add flow counters binding support')
Signed-off-by: Raed Salem <raeds@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c