mlxsw: core: Fix flex keys scratchpad offset conflict
authorJiri Pirko <jiri@mellanox.com>
Wed, 28 Feb 2018 12:12:08 +0000 (13:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:07 +0000 (07:52 +0200)
commit47a8c89258e5dee8e81c4ac716b24978eccd7cf2
tree0e470ebdeb30d19a296717f5e44a9afb3bd15213
parent953a64ca335384a51ee047df461993881bc0afe1
mlxsw: core: Fix flex keys scratchpad offset conflict

[ Upstream commit 2ddc94c76cc4ccaf51b478315912b38dfdde1afc ]

IP_TTL, IP_ECN and IP_DSCP are using the same offset within the
scratchpad as L4 ports. Fix this by shifting all up.

Fixes: 5f57e0909136 ("mlxsw: acl: Add ip ttl acl element")
Fixes: i80d0fe4710c ("mlxsw: acl: Add ip tos acl element")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h