Commit 47e4b162 authored by Amit Cohen's avatar Amit Cohen Committed by David S. Miller

mlxsw: reg: Increase trap identifier to 10 bits

The trap identifier was increased to 10 bits in new versions of the
Programmer's Reference Manual (PRM).

Increase it accordingly in the Host PacKet Trap (HPKT) register and in
the Completion Queue Element (CQE).

This is significant for subsequent patches that will introduce trap
identifiers which utilize the extended range.
Signed-off-by: default avatarAmit Cohen <amitc@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4039504e
...@@ -176,7 +176,7 @@ MLXSW_ITEM32(pci, cqe, byte_count, 0x04, 0, 14); ...@@ -176,7 +176,7 @@ MLXSW_ITEM32(pci, cqe, byte_count, 0x04, 0, 14);
/* pci_cqe_trap_id /* pci_cqe_trap_id
* Trap ID that captured the packet. * Trap ID that captured the packet.
*/ */
MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 9); MLXSW_ITEM32(pci, cqe, trap_id, 0x08, 0, 10);
/* pci_cqe_crc /* pci_cqe_crc
* Length include CRC. Indicates the length field includes * Length include CRC. Indicates the length field includes
......
...@@ -5778,7 +5778,7 @@ MLXSW_ITEM32(reg, hpkt, trap_group, 0x00, 12, 6); ...@@ -5778,7 +5778,7 @@ MLXSW_ITEM32(reg, hpkt, trap_group, 0x00, 12, 6);
* Note: A trap ID can only be associated with a single trap group. The device * Note: A trap ID can only be associated with a single trap group. The device
* will associate the trap ID with the last trap group configured. * will associate the trap ID with the last trap group configured.
*/ */
MLXSW_ITEM32(reg, hpkt, trap_id, 0x00, 0, 9); MLXSW_ITEM32(reg, hpkt, trap_id, 0x00, 0, 10);
enum { enum {
MLXSW_REG_HPKT_CTRL_PACKET_DEFAULT, MLXSW_REG_HPKT_CTRL_PACKET_DEFAULT,
......
...@@ -108,7 +108,7 @@ enum { ...@@ -108,7 +108,7 @@ enum {
MLXSW_TRAP_ID_DISCARD_INGRESS_ACL = 0x1C3, MLXSW_TRAP_ID_DISCARD_INGRESS_ACL = 0x1C3,
MLXSW_TRAP_ID_DISCARD_EGRESS_ACL = 0x1C4, MLXSW_TRAP_ID_DISCARD_EGRESS_ACL = 0x1C4,
MLXSW_TRAP_ID_MAX = 0x1FF MLXSW_TRAP_ID_MAX = 0x3FF,
}; };
enum mlxsw_event_trap_id { enum mlxsw_event_trap_id {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment