-----Original Message----- From: longli@linuxonhyperv.com longli@linuxonhyperv.com Sent: Thursday, June 22, 2023 12:23 PM To: Jason Gunthorpe jgg@ziepe.ca; Leon Romanovsky leon@kernel.org; Ajay Sharma sharmaajay@microsoft.com; Dexuan Cui decui@microsoft.com; KY Srinivasan kys@microsoft.com; Haiyang Zhang haiyangz@microsoft.com; Wei Liu wei.liu@kernel.org; David S. Miller davem@davemloft.net; Eric Dumazet edumazet@google.com; Jakub Kicinski kuba@kernel.org; Paolo Abeni pabeni@redhat.com Cc: linux-rdma@vger.kernel.org; linux-hyperv@vger.kernel.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Long Li longli@microsoft.com; stable@vger.kernel.org Subject: [PATCH v2] net: mana: Batch ringing RX queue doorbell on receiving packets
From: Long Li longli@microsoft.com
It's inefficient to ring the doorbell page every time a WQE is posted to the received queue.
Move the code for ringing doorbell page to where after we have posted all WQEs to the receive queue during a callback from napi_poll().
Tests showed no regression in network latency benchmarks.
Cc: stable@vger.kernel.org Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)") Signed-off-by: Long Li longli@microsoft.com
Reviewed-by: Haiyang Zhang haiyangz@microsoft.com