Skip to content

Commit 046759a

Browse files
ogerlitzdavem330
authored andcommitted
mlxsw: spectrum: Add ttl to the ipv4 acl block
Add ttl field to the ipv4 acl block. Signed-off-by: Or Gerlitz <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5f57e09 commit 046759a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ static struct mlxsw_afk_element_inst mlxsw_sp_afk_element_info_ipv4_dip[] = {
7070

7171
static struct mlxsw_afk_element_inst mlxsw_sp_afk_element_info_ipv4[] = {
7272
MLXSW_AFK_ELEMENT_INST_U32(SRC_IP4, 0x00, 0, 32),
73+
MLXSW_AFK_ELEMENT_INST_U32(IP_TTL_, 0x04, 24, 8),
7374
MLXSW_AFK_ELEMENT_INST_U32(TCP_FLAGS, 0x08, 8, 9), /* TCP_CONTROL+TCP_ECN */
7475
};
7576

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ static const enum mlxsw_afk_element mlxsw_sp_acl_tcam_pattern_ipv4[] = {
984984
MLXSW_AFK_ELEMENT_VID,
985985
MLXSW_AFK_ELEMENT_PCP,
986986
MLXSW_AFK_ELEMENT_TCP_FLAGS,
987+
MLXSW_AFK_ELEMENT_IP_TTL_,
987988
};
988989

989990
static const enum mlxsw_afk_element mlxsw_sp_acl_tcam_pattern_ipv6[] = {

0 commit comments

Comments
 (0)