]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: pci: Derive event type from event queue number
authorNir Dotan <nird@mellanox.com>
Thu, 4 Oct 2018 15:48:02 +0000 (15:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Oct 2018 16:53:03 +0000 (09:53 -0700)
commit1db97880a2dcb420bdf67a4a5ca3ed8155c94938
tree5af0ad36e33d3efeb325e926efe6a6c03ff92e8e
parent950ed034e4a1cfbcf7e6a9cd4838ac7e42c43884
mlxsw: pci: Derive event type from event queue number

Due to a hardware issue in Spectrum-2, the field event_type of the event
queue element (EQE) has become reserved. It was used to distinguish between
command interface completion events and completion events.

Use queue number to determine event type, as command interface completion
events are always received on EQ0 and mlxsw driver maps completion events
to EQ1.

Fixes: 0d0a1b473e23 ("mlxsw: spectrum: Extend to support Spectrum-2 ASIC")
Signed-off-by: Nir Dotan <nird@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@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.c