Extract commands to set virtqueue coalescing parameters for reuse
by ethtool -Q, vq resize and netdim.
Signed-off-by: Heng Qi
Acked-by: Jason Wang
---
drivers/net/virtio_net.c | 106 +++
1 file changed, 64 insertions(+), 42 deletions(-)
diff --git a/drivers/
By comparing the traffic information in the complete napi processes,
let the virtio-net driver automatically adjust the coalescing
moderation parameters of each receive queue.
Signed-off-by: Heng Qi
---
v6->v7:
- Drop the patch titled "spin lock for ctrl cmd access"
- Use rtnl_trylock to avoid th
Now, virtio-net already supports per-queue moderation parameter
setting. Based on this, we use the linux dimlib to support
dynamic coalescing moderation for virtio-net.
Due to some scheduling issues, we only support and test the rx dim.
Some test results:
I. Sockperf UDP
This patch separates the rx and tx global coalescing moderation
commands to support netdim switches in subsequent patches.
Signed-off-by: Heng Qi
Acked-by: Jason Wang
---
drivers/net/virtio_net.c | 31 ---
1 file changed, 28 insertions(+), 3 deletions(-)
diff --git
rx netdim needs to count the traffic during a complete napi process,
and start updating and comparing samples to make decisions after
the napi ends. Let virtqueue_napi_complete() return true if napi is done,
otherwise vice versa.
Signed-off-by: Heng Qi
Acked-by: Jason Wang
---
drivers/net/virti
On Thu, Dec 7, 2023 at 12:47 PM Heng Qi wrote:
>
>
>
> 在 2023/12/7 下午12:19, Jason Wang 写道:
> > On Wed, Dec 6, 2023 at 9:03 PM Heng Qi wrote:
> >>
> >>
> >> 在 2023/12/6 下午8:27, Paolo Abeni 写道:
> >>> On Tue, 2023-12-05 at 19:05 +0800, Heng Qi wrote:
> 在 2023/12/5 下午4:35, Jason Wang 写道:
> >
在 2023/12/7 下午12:19, Jason Wang 写道:
On Wed, Dec 6, 2023 at 9:03 PM Heng Qi wrote:
在 2023/12/6 下午8:27, Paolo Abeni 写道:
On Tue, 2023-12-05 at 19:05 +0800, Heng Qi wrote:
在 2023/12/5 下午4:35, Jason Wang 写道:
On Tue, Dec 5, 2023 at 4:02 PM Heng Qi wrote:
Currently access to ctrl cmd is glob
On Wed, Dec 6, 2023 at 9:03 PM Heng Qi wrote:
>
>
>
> 在 2023/12/6 下午8:27, Paolo Abeni 写道:
> > On Tue, 2023-12-05 at 19:05 +0800, Heng Qi wrote:
> >> 在 2023/12/5 下午4:35, Jason Wang 写道:
> >>> On Tue, Dec 5, 2023 at 4:02 PM Heng Qi wrote:
> Currently access to ctrl cmd is globally protected via
在 2023/12/6 下午8:27, Paolo Abeni 写道:
On Tue, 2023-12-05 at 19:05 +0800, Heng Qi wrote:
在 2023/12/5 下午4:35, Jason Wang 写道:
On Tue, Dec 5, 2023 at 4:02 PM Heng Qi wrote:
Currently access to ctrl cmd is globally protected via rtnl_lock and works
fine. But if dim work's access to ctrl cmd also
On Tue, 2023-12-05 at 19:05 +0800, Heng Qi wrote:
>
> 在 2023/12/5 下午4:35, Jason Wang 写道:
> > On Tue, Dec 5, 2023 at 4:02 PM Heng Qi wrote:
> > > Currently access to ctrl cmd is globally protected via rtnl_lock and works
> > > fine. But if dim work's access to ctrl cmd also holds rtnl_lock, deadlo
On Tue, Dec 5, 2023 at 7:06 PM Heng Qi wrote:
>
>
>
> 在 2023/12/5 下午4:35, Jason Wang 写道:
> > On Tue, Dec 5, 2023 at 4:02 PM Heng Qi wrote:
> >> Currently access to ctrl cmd is globally protected via rtnl_lock and works
> >> fine. But if dim work's access to ctrl cmd also holds rtnl_lock, deadlock
11 matches
Mail list logo