mlxsw: spectrum_acl: Write RX_ACL_SYSTEM_PORT acl element correctly
authorJiri Pirko <jiri@mellanox.com>
Wed, 19 Jun 2019 06:41:05 +0000 (09:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2019 14:09:22 +0000 (10:09 -0400)
commit511a5adcaa11fdbd224833f939cca6e18ddbd5c0
tree05ef558a8c5b9f9aefb2b6a2a05c7ef77a4235be
parent9558a83aee62be7c3ce9eddd6484a5da16aad4cf
mlxsw: spectrum_acl: Write RX_ACL_SYSTEM_PORT acl element correctly

RX_ACL_SYSTEM_PORT is equal to SRC_SYS_PORT - 1. So before write to
block we need to adjust the key value. Introduce new "EXT" helper to
implement this.

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_keys.c
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.c