net: mana: Move NAPI from EQ to CQ
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 24 Aug 2021 16:45:59 +0000 (09:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 10:06:54 +0000 (11:06 +0100)
commite1b5683ff62e7b328317aec08869495992053e9d
treecceb1605cdbcc23c7dcaa00959b27272c0aecd07
parent807d1032e09a42732c374304554a088c6b5e8f92
net: mana: Move NAPI from EQ to CQ

The existing code has NAPI threads polling on EQ directly. To prepare
for EQ sharing among vPorts, move NAPI from EQ to CQ so that one EQ
can serve multiple CQs from different vPorts.

The "arm bit" is only set when CQ processing is completed to reduce
the number of EQ entries, which in turn reduce the number of interrupts
on EQ.

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/hw_channel.c
drivers/net/ethernet/microsoft/mana/mana.h
drivers/net/ethernet/microsoft/mana/mana_en.c