OSDN Git Service

mlxsw: core: Fix flex keys scratchpad offset conflict
authorJiri Pirko <jiri@mellanox.com>
Wed, 28 Feb 2018 12:12:08 +0000 (13:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 17:32:36 +0000 (12:32 -0500)
commit2ddc94c76cc4ccaf51b478315912b38dfdde1afc
tree315ce5c53ac5c63a3cf7414a8f9efdca1d2388dd
parent7358799c3a40de99238759d82f5cf284dd880099
mlxsw: core: Fix flex keys scratchpad offset conflict

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