mlxsw: pci: Introduce helpers to work with multiple CQE versions
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 May 2018 11:59:40 +0000 (14:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2018 17:44:42 +0000 (13:44 -0400)
commitb76550bbed9f9aa10b01b89698f6a5c55509b070
tree60c5f714df3b64a68254567dc1b953afa2c50f35
parent9b934a3bdc8778e9cd92f65d0d08c17bb005091e
mlxsw: pci: Introduce helpers to work with multiple CQE versions

Introduce definitions of fields in CQE version 1 and 2. Also, introduce
common helpers that would call appropriate version-specific helpers
according to the version enum passed.

Signed-off-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
drivers/net/ethernet/mellanox/mlxsw/pci_hw.h