Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35101624rwd; Mon, 10 Jul 2023 02:33:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlFX/pEpE472iqDBzJcNtQ+6jBqj2BkwsDapvoVMynklPFtBchHQ8540Bsd/9bSkijaGESx1 X-Received: by 2002:a05:6402:60a:b0:51e:5322:a642 with SMTP id n10-20020a056402060a00b0051e5322a642mr5130720edv.27.1688981589533; Mon, 10 Jul 2023 02:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688981589; cv=none; d=google.com; s=arc-20160816; b=yX1w/D/LKJRZXajvy1jHbjikURMGVw0E9l3yWve3uVsqUNePAOqZjz1zrUORdO3ZlJ fNstFkagf6WkI/uc6OWK2T8FDd7fvCA8bFkKwe/cME/6plhaSyGNl23I03NLoURUnQlf 1QqJoAhbRzE9DJciv/XK+C+WtKPUx5UzPVuv5QCacY5p2rxOfEoAG5rIUd2e6OCeftk3 E8lYj5WlGRtT74/STlkw6lx+bYKRlu9VLaHBMGIoPiOmNLIntdHjeLI1DYzCyKecKE0z UCd0aHQ5dF8yMprTnd/WWHClaUTdRk8T5SHHGm4GO6RxeU/z9Ir+jI2NcIwVYBfTqbGD yhVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:date:subject :message-id; bh=0WmQq5+4MwGOMk9Ics/LBh/dEstDrhpA53+WdKsNTVw=; fh=eLNEvxj8aJuZlQK2HgwSNXxmjBE+tol0oLZMUGWv0gM=; b=ICMzEtfH/+KN66uax8sESwlrO1lAGQ1MJuLNmdFc+dVbuJTuvkTekxIluO+gSu9jxq tbFx0KnlXYY/Tea15A0APG22pnbPczQT/q8H75X1KtnN1BZWT6bQzMD+1UGJ2T64GolG QpRX45ryMBSsEWEkcqTe1a64rftXXb6l4u2bafHPw+IRyXU80umKxUGXhkGf/KILGhoF XepvXCwpyzjh0E8qRTJaMgqNEuUwAnj1MioW0ZsE0rh0zXies0Dx4aUAc/CwlyUlBm7F dXJskZaYX63oAiqGNfD5hEkT3SvjHMkqnSyqB9lxmJTTMUesoBXf9PZbOuHyxdmdm9Ys K3lg== 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 m18-20020aa7d352000000b0051d7e275e56si8458233edr.272.2023.07.10.02.32.45; Mon, 10 Jul 2023 02:33:09 -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 S231716AbjGJJ2T (ORCPT + 99 others); Mon, 10 Jul 2023 05:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232050AbjGJJ1v (ORCPT ); Mon, 10 Jul 2023 05:27:51 -0400 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A678DE; Mon, 10 Jul 2023 02:27:47 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=xuanzhuo@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0Vn0blpX_1688981263; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0Vn0blpX_1688981263) by smtp.aliyun-inc.com; Mon, 10 Jul 2023 17:27:44 +0800 Message-ID: <1688981109.6377137-1-xuanzhuo@linux.alibaba.com> Subject: Re: [PATCH net-next V1 0/4] virtio_net: add per queue interrupt coalescing support Date: Mon, 10 Jul 2023 17:25:09 +0800 From: Xuan Zhuo To: Gavin Li Cc: , , , , , , , , , , , , , , , , , "Heng Qi" References: <20230710092005.5062-1-gavinl@nvidia.com> In-Reply-To: <20230710092005.5062-1-gavinl@nvidia.com> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,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, 10 Jul 2023 12:20:01 +0300, Gavin Li wrote: As far as I know, Heng Qi does that. I'm not sure, it's the same piece. cc @Heng Qi Thanks. > 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. > > 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 > > In this patch series: > Patch-1: Extract interrupt coalescing settings to a structure. > Patch-2: Extract get/set interrupt coalesce to a function. > Patch-3: Support per queue interrupt coalesce command. > Patch-4: Enable per queue interrupt coalesce feature. > > 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 > virtio_net: enable per queue interrupt coalesce feature > > drivers/net/virtio_net.c | 169 ++++++++++++++++++++++++++------ > include/uapi/linux/virtio_net.h | 14 +++ > 2 files changed, 154 insertions(+), 29 deletions(-) > > -- > 2.39.1 >