OSDN Git Service

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)
commit1e2d0824a9c3de5371a46601aac0c14af5c0a50a
tree460c0dd13c5128d017115c1d55a8dfd394a48c76
parente1b5683ff62e7b328317aec08869495992053e9d
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