]> asedeno.scripts.mit.edu Git - linux.git/commit
{net,IB}/mlx5: Add has_tag to mlx5_flow_act
authorMatan Barak <matanb@mellanox.com>
Wed, 16 Aug 2017 06:43:48 +0000 (09:43 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 7 Mar 2018 06:06:33 +0000 (22:06 -0800)
commita9db0ecf1578894ea3405f3eb5a441508840d479
tree86a65df95c3e70b985b5f3c1106bb237a20e8d0b
parent075572d4b7aec1fcd6e1bd66ee8e0e06501f719f
{net,IB}/mlx5: Add has_tag to mlx5_flow_act

The has_tag member will indicate whether a tag action was specified
in flow specification.

A flow tag 0 = MLX5_FS_DEFAULT_FLOW_TAG is assumed a valid flow tag
that is currently used by mlx5 RDMA driver, whereas in HW flow_tag = 0
means that the user doesn't care about flow_tag.  HW always provide
a flow_tag = 0 if all flow tags requested on a specific flow are 0.

So we need a way (in the driver) to differentiate between a user really
requesting flow_tag = 0 and a user who does not care, in order to be
able to report conflicting flow tags on a specific flow.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Aviad Yehezkel <aviadye@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
include/linux/mlx5/fs.h