]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcedc717553fa729c07f0da9b00d161389423989c
tree60c5f714df3b64a68254567dc1b953afa2c50f35
parent47e072450a23737b95c50d6faa32b512d4ec9c25
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