Skip to content

Commit abac7b0

Browse files
ogerlitzdavem330
authored andcommitted
mlxsw: spectrum: Add tos to the ipv4 acl block
Add ecn and dscp fields 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 80d0fe4 commit abac7b0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ 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_ECN, 0x04, 4, 2),
7374
MLXSW_AFK_ELEMENT_INST_U32(IP_TTL_, 0x04, 24, 8),
75+
MLXSW_AFK_ELEMENT_INST_U32(IP_DSCP, 0x08, 0, 6),
7476
MLXSW_AFK_ELEMENT_INST_U32(TCP_FLAGS, 0x08, 8, 9), /* TCP_CONTROL+TCP_ECN */
7577
};
7678

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,8 @@ static const enum mlxsw_afk_element mlxsw_sp_acl_tcam_pattern_ipv4[] = {
985985
MLXSW_AFK_ELEMENT_PCP,
986986
MLXSW_AFK_ELEMENT_TCP_FLAGS,
987987
MLXSW_AFK_ELEMENT_IP_TTL_,
988+
MLXSW_AFK_ELEMENT_IP_ECN,
989+
MLXSW_AFK_ELEMENT_IP_DSCP,
988990
};
989991

990992
static const enum mlxsw_afk_element mlxsw_sp_acl_tcam_pattern_ipv6[] = {

0 commit comments

Comments
 (0)