net/mlx5_core: Set flow steering dest only for forward rules
authorAmir Vadai <amir@vadai.me>
Tue, 8 Mar 2016 10:42:33 +0000 (12:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2016 21:24:02 +0000 (16:24 -0500)
commit60ab4584f5bf4e496baec7b090a4b382d03b2100
treef47fab808678e05ea1467746144b76d032c7e4f0
parent519afb1813eab066a0c9995a08861fd0af75d5ae
net/mlx5_core: Set flow steering dest only for forward rules

We need to handle flow table entry destinations only if the action
associated with the rule is forwarding (MLX5_FLOW_CONTEXT_ACTION_FWD_DEST).

Fixes: 26a8145390b3 ('net/mlx5_core: Introduce flow steering firmware commands')
Signed-off-by: Amir Vadai <amir@vadai.me>
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c