Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2699260rwo; Sun, 23 Jul 2023 22:55:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHnFQnuoe8tZoW30u3z9x4iFWZ2Snbxjf/D+MLi1g1+fyjVZmQXb50hgs5+4M4U+wGO6ff/ X-Received: by 2002:a05:620a:4109:b0:767:47f9:f8a3 with SMTP id j9-20020a05620a410900b0076747f9f8a3mr8733672qko.23.1690178103793; Sun, 23 Jul 2023 22:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690178103; cv=none; d=google.com; s=arc-20160816; b=sZwitQ5AZbZ5Pr2evWyygQ7Lxv4nitpbcfVyM14HfNpDxxMvR2M5jaudws6M1460Ua wFximpKPgEr6Vf9Mn//iyksX7m5c7Xng3228XC9JOAj5KbLFi3bOKNl1Ufi8Wk4/tWwh aSwVbpGTl7rCcc40aTm24liAJ+dBQRVVhq/fEkMr8aR6Pu9k1L+iEkMdBnU+6rIQkgTg ikxa133GOEj/BkIxudv03OwTDtNX8KP8M0h1q53HBkI2Om1tIInGPEand2MD7JoBtC+D v3cfDV8RrI8fVYfcL4YVsjvxaKV5lfoKFnRfvXRbiHjCb1MjWAYE/UPBYE10Nz9/FLBa f2Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ztAIoOXIGZgFNavxUkt+2mhYydcLxB7fh6XEiOg2pKA=; fh=azIXXbaxpq23dBUa2LiyTv1QoVHc9BSM777F160HYWY=; b=o+9w6LAKioc/E730ohQoV4aZnCq0QjoMYFX2bhZuHwLPAzoridkHd9U4fC3dQl+HBo mn+CAOoRLfTG19xE35XOcXpsn8YCJdkQcKVjdernGIUGm2YD5fbg6RNOYvmqWkcIpZ+3 sNG7DgPpsCssHwAGtXbQR3Uv95NiMmvT2e19oQEfxWNDrDGvT6n0Zp08yCvIPzK8ICy3 BiyNtZGO3QZqHZ8ygBtYFuIucWQ0sDMJe9FO93253wt2LOFtaXLGX1sb+8Spl62QGKOP PXxGCNV40iPutOznsrQ2hQSY93/1N+0lBIBjViQcGc5/wKPrCZ6KfVt2OQdLUGhARMmi CaNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi3-20020a17090b4b4300b00260f28b14e4si11980203pjb.4.2023.07.23.22.54.51; Sun, 23 Jul 2023 22:55:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229582AbjGXFS1 (ORCPT + 99 others); Mon, 24 Jul 2023 01:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjGXFS0 (ORCPT ); Mon, 24 Jul 2023 01:18:26 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AD84FF; Sun, 23 Jul 2023 22:18:24 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R741e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=hengqi@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0Vo0kKJZ_1690175900; Received: from localhost(mailfrom:hengqi@linux.alibaba.com fp:SMTPD_---0Vo0kKJZ_1690175900) by smtp.aliyun-inc.com; Mon, 24 Jul 2023 13:18:21 +0800 Date: Mon, 24 Jul 2023 13:18:20 +0800 From: Heng Qi To: Gavin Li Cc: mst@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, jiri@nvidia.com, dtatulea@nvidia.com, gavi@nvidia.com, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH net-next V3 0/4] virtio_net: add per queue interrupt coalescing support Message-ID: <20230724051820.GA53686@h68b04307.sqa.eu95> References: <20230724034048.51482-1-gavinl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724034048.51482-1-gavinl@nvidia.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 24, 2023 at 06:40:44AM +0300, Gavin Li wrote: > Currently, coalescing parameters are grouped for all transmit and receive > virtqueues. This patch series add support to set or get the parameters for > a specified virtqueue. > > When the traffic between virtqueues is unbalanced, for example, one virtqueue > is busy and another virtqueue is idle, then it will be very useful to > control coalescing parameters at the virtqueue granularity. > For series: Reviewed-by: Heng Qi After this set is merged, I will issue the netdim patchset on top of this. Thanks. > Example command: > $ ethtool -Q eth5 queue_mask 0x1 --coalesce tx-packets 10 > Would set max_packets=10 to VQ 1. > $ ethtool -Q eth5 queue_mask 0x1 --coalesce rx-packets 10 > Would set max_packets=10 to VQ 0. > $ ethtool -Q eth5 queue_mask 0x1 --show-coalesce > Queue: 0 > Adaptive RX: off TX: off > stats-block-usecs: 0 > sample-interval: 0 > pkt-rate-low: 0 > pkt-rate-high: 0 > > rx-usecs: 222 > rx-frames: 0 > rx-usecs-irq: 0 > rx-frames-irq: 256 > > tx-usecs: 222 > tx-frames: 0 > tx-usecs-irq: 0 > tx-frames-irq: 256 > > rx-usecs-low: 0 > rx-frame-low: 0 > tx-usecs-low: 0 > tx-frame-low: 0 > > rx-usecs-high: 0 > rx-frame-high: 0 > tx-usecs-high: 0 > tx-frame-high: 0 > > Gavin Li (4): > virtio_net: extract interrupt coalescing settings to a structure > virtio_net: extract get/set interrupt coalesce to a function > virtio_net: support per queue interrupt coalesce command > --- > changelog: > v1->v2 > - Addressed the comment from Xuan Zhuo > - Allocate memory from heap instead of using stack memory for control vq > messages > v2->v3 > - Addressed the comment from Heng Qi > - Use control_buf for control vq messages > --- > virtio_net: enable per queue interrupt coalesce feature > > drivers/net/virtio_net.c | 172 ++++++++++++++++++++++++++------ > include/uapi/linux/virtio_net.h | 14 +++ > 2 files changed, 157 insertions(+), 29 deletions(-) > > -- > 2.39.1 >