]> git.baikalelectronics.ru Git - kernel.git/commit
net: mana: Add support for EQ sharing
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 24 Aug 2021 16:46:00 +0000 (09:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 10:06:54 +0000 (11:06 +0100)
commit0892a573e97e6a340d659735690c06a890abf587
tree460c0dd13c5128d017115c1d55a8dfd394a48c76
parent4bf880bee8c723dc3037cef826a2e8fa1717a728
net: mana: Add support for EQ sharing

The existing code uses (1 + #vPorts * #Queues) MSIXs, which may exceed
the device limit.

Support EQ sharing, so that multiple vPorts (NICs) can share the same
set of MSIXs.

And, report the EQ-sharing capability bit to the host, which means the
host can potentially offer more vPorts and queues to the VM.

Also update the resource limit checking and error handling for better
robustness.

Now, we support up to 256 virtual ports per VF (it was 16/VF), and
support up to 64 queues per vPort (it was 16).

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microsoft/mana/gdma.h
drivers/net/ethernet/microsoft/mana/gdma_main.c
drivers/net/ethernet/microsoft/mana/mana.h
drivers/net/ethernet/microsoft/mana/mana_en.c