Skip to content

Commit

Permalink
mlx_fs_dump: Add metadata and ASO
Browse files Browse the repository at this point in the history
The patch adds support for metadata c0 - c3 and flow action EXEC_ASO.
Example:
  +-- FT: 0x400000 (level: 0x38, type: NIC_RX)
    +-- FG: 0x4 (MISC_2: |metadata_reg_c_2|metadata_reg_c_0|)
      |-- FTE: 0x0 (FWD EXEC_ASO) to (FLOW_TABLE:0x400001)
      |-- FTE: 0x1 (FWD EXEC_ASO) to (FLOW_TABLE:0x400001)

Signed-off-by: William Tu <witu@nvidia.com>
(cherry picked from commit b0d21bf)
  • Loading branch information
williamtu authored and vladsokolovsky committed Sep 13, 2023
1 parent f737770 commit a08b915
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/mlx_fs_dump
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ entryList = []
color = 1

ftb_type = ["NIC_RX", "NIC_TX", "ESW_EGRESS_ACL","ESW_INGRESS_ACL", "ESW_FDB", "SNIFFER_RX", "SNIFFER_TX", "TX_RDMA", "TX_RDMA"]
fte_action = ["ALLOW", "DROP", "FWD", "FLOW_COUNT", "ENCAP", "DECAP", "MODIFY_HDR", "POP_VLAN", "PUSH_VLAN", "FPGA_ACC", "POP_VLAN_2", "PUSH_VLAN_2"]
fte_action = ["ALLOW", "DROP", "FWD", "FLOW_COUNT", "ENCAP", "DECAP", "MODIFY_HDR", "POP_VLAN", "PUSH_VLAN", "FPGA_ACC", "POP_VLAN_2", "PUSH_VLAN_2", "DECRYPT", "ENCRYPT", "EXEC_ASO"]
fte_match = ["OUT_HDR", "MISC", "IN_HDR", "MISC_2"]
dest_type = ["VPORT", "FLOW_TABLE", "TIR", "QP"]

Expand Down Expand Up @@ -168,6 +168,9 @@ match_criteria = {
"inner_headers.dst_ip_31_0" : "dst_ip_31_0",

"misc_2_parameters.metadata_reg_c_0" : "metadata_reg_c_0",
"misc_2_parameters.metadata_reg_c_1" : "metadata_reg_c_1",
"misc_2_parameters.metadata_reg_c_2" : "metadata_reg_c_2",
"misc_2_parameters.metadata_reg_c_3" : "metadata_reg_c_3",
"modify_header_id" : "modify_header_id"
}

Expand Down

0 comments on commit a08b915

Please sign in to comment.