mlxsw: core_acl_flex_keys: Change SRC_SYS_PORT flex key element size
authorJiri Pirko <jiri@mellanox.com>
Sun, 8 Jul 2018 07:00:18 +0000 (10:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Jul 2018 08:05:19 +0000 (17:05 +0900)
commit82b63bcf8c2414d6f445830f2076da5ef4a1ba25
treeeb3db3785c27c1404f478bd4b30b66abcbc325f4
parentc43ea06dbd8c3daa2c6e3fa6ce3713b454c375f9
mlxsw: core_acl_flex_keys: Change SRC_SYS_PORT flex key element size

The SRC_SYS_PORT is passed as 8 bit value down to hw anyway, so cap it
in the driver as well. Also, in Spectrum-2 the FW iface for SRC_SYS_PORT
is only 8 bits, so prepare for it.

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