mlxsw: spectrum: Add ttl to the ipv4 acl block
authorOr Gerlitz <ogerlitz@mellanox.com>
Mon, 17 Jul 2017 12:07:27 +0000 (14:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 16:18:23 +0000 (09:18 -0700)
Add ttl field to the ipv4 acl block.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c

index 85d5001a5818f70f68667eea7e30a083aefb3d26..8a4767ca690918986fa4d72103ec4f3c9beca52d 100644 (file)
@@ -70,6 +70,7 @@ static struct mlxsw_afk_element_inst mlxsw_sp_afk_element_info_ipv4_dip[] = {
 
 static struct mlxsw_afk_element_inst mlxsw_sp_afk_element_info_ipv4[] = {
        MLXSW_AFK_ELEMENT_INST_U32(SRC_IP4, 0x00, 0, 32),
+       MLXSW_AFK_ELEMENT_INST_U32(IP_TTL_, 0x04, 24, 8),
        MLXSW_AFK_ELEMENT_INST_U32(TCP_FLAGS, 0x08, 8, 9), /* TCP_CONTROL+TCP_ECN */
 };
 
index 61a10f166f97334730c377de6919cd233f66c4a8..2c57be7a8399d321e475189126012c19986c76a3 100644 (file)
@@ -984,6 +984,7 @@ static const enum mlxsw_afk_element mlxsw_sp_acl_tcam_pattern_ipv4[] = {
        MLXSW_AFK_ELEMENT_VID,
        MLXSW_AFK_ELEMENT_PCP,
        MLXSW_AFK_ELEMENT_TCP_FLAGS,
+       MLXSW_AFK_ELEMENT_IP_TTL_,
 };
 
 static const enum mlxsw_afk_element mlxsw_sp_acl_tcam_pattern_ipv6[] = {