mlxsw: pci: Reorganize 'mlxsw_pci_queue' structure
authorAmit Cohen <amcohen@nvidia.com>
Fri, 26 Apr 2024 12:42:25 +0000 (14:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2024 09:47:05 +0000 (10:47 +0100)
commitc0d9267873bc0960f65ea43cca72d63dbe34202f
tree1492f192a4fba48e5f43f47c8d1136655f48c78f
parent5d01ed2e970812a5e1947ef2ce421a2fce68c45b
mlxsw: pci: Reorganize 'mlxsw_pci_queue' structure

The next patch will set the driver to use NAPI for event processing. Then
tasklet mechanism will be used only for EQ. Reorganize 'mlxsw_pci_queue'
to hold EQ and CQ attributes in a union. For now, add tasklet for both EQ
and CQ. This will be changed in the next patch, as 'tasklet_struct' will be
replaced with NAPI instance.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci.c