mlxsw: pci: Add mirror reason field to CQEv2
authorIdo Schimmel <idosch@mellanox.com>
Tue, 14 Jul 2020 14:21:04 +0000 (17:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jul 2020 21:50:49 +0000 (14:50 -0700)
commita76423a144a8a109cffbd7311c3278f8a856b25f
tree3a0d8945924ba124344e030b168fd7ed961921e0
parent0cc32c5b5ca84cd3ad3bbb1441f713d171b1efcf
mlxsw: pci: Add mirror reason field to CQEv2

The Completion Queue Element version 2 (CQEv2) includes a field called
'mirror_reason' which indicates why the packet was mirrored to the CPU.

Add the field so that it can be used by a later patch.

Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci_hw.h