mlxsw: core_acl_flex_actions: Allow the first set to be dummy
authorJiri Pirko <jiri@mellanox.com>
Sun, 8 Jul 2018 07:00:20 +0000 (10:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Jul 2018 08:05:19 +0000 (17:05 +0900)
commit5b9488fd5f1e007d22543e68cc95eb41c91f8018
treeac02316a8f6fcffa4a7679ac7e6e355734917a3b
parent9dbab6f588ebc9b6f741f926dc06878cba4f6c77
mlxsw: core_acl_flex_actions: Allow the first set to be dummy

In Spectrum-2, the real action sets are always in KVD linear. The first
set is always empty and contains only pointer to the first real set in
KVD linear. So provide possibility to specify the first set is the dummy
one.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h