Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36213103rwd; Mon, 10 Jul 2023 20:21:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlG20Um7E8tRVSrAKDZgakXpTEZ4Wpg/faC6/72rqatAh/7rYgMfsR52BRnakAVl020kvWrV X-Received: by 2002:a05:6a20:4081:b0:125:29e5:ae3c with SMTP id a1-20020a056a20408100b0012529e5ae3cmr9067600pzf.62.1689045660681; Mon, 10 Jul 2023 20:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689045660; cv=none; d=google.com; s=arc-20160816; b=M/SxaQ5XtBTcLQuSRGZ4CgIPYgRI5o0w10A3OdzY+dtLFoY1pRjNRPeez57Vg9PdK5 KJKw6OLh1Fa8z1NYzX0zP6tWyj1t5KQ291oLoEfWssEBI+PUzvE8Kh32N6o+upYS+Tze lTaDj4XrWZOSQSDwkNH8Y1qbsB+K19UupQ0FqBw2evqrj1GGLGRsXjRdndL4Vg83Kfed piqYqHlL6Mz787CC6AMi54CcEKq0l1I9f/0bppSQRe269Y4xazIRjgE95TbzBZUjKwvi VxnOceZVGAHNmZmPc+LoFDLh1PLbnwdkrOoeskacdJT98TGw1+tbShQyYfE5GNAHEmrQ cRIA== 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=b3C7o4Hc/oH2Z2DPHA3GBHJALWKnkW7Nnt4KJ9rD3uU=; fh=TIvUjJslSdwwePWu4ES93OiEpTanoXwXwM6NQ5o/cPc=; b=IWCbcaF1bWdVuGRNFYkdY7OjpqGgYA1OHPHh4/iuXVfLdd/w0ft8zT/5oWh9z7Zj5x RgSnWysCKNwqNwSTKiDN/tgytWjZM8W5xLYovRlw4IKrh702FVfF/P8KM/GRzcSFDee9 zP7S9/TFEWElN4+pk38u7KpLz2HBoEsT+nP/MlGtcM72UM6HmnaNvNizGZibVDQFO0eY Sr13mTXWu6c7rxFL6Fd5DKdgpjrNuAaU3b+RiSSpGN+36V3zdzEcUBU3IydB/DDywjcB t850eWXen86jhHvR80C3dNaZT61N8idgBsSS4qBSKypbPacpcWadntZkYoot+aeevFJj cwog== 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 lb16-20020a170902fa5000b001b896086ca1si795760plb.136.2023.07.10.20.20.45; Mon, 10 Jul 2023 20:21:00 -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 S230237AbjGKDNT (ORCPT + 99 others); Mon, 10 Jul 2023 23:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbjGKDNQ (ORCPT ); Mon, 10 Jul 2023 23:13:16 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22223EA; Mon, 10 Jul 2023 20:13:13 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;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=18;SR=0;TI=SMTPD_---0Vn6n-l6_1689045189; Received: from localhost(mailfrom:xuanzhuo@linux.alibaba.com fp:SMTPD_---0Vn6n-l6_1689045189) by smtp.aliyun-inc.com; Tue, 11 Jul 2023 11:13:09 +0800 Message-ID: <1689045049.360526-2-xuanzhuo@linux.alibaba.com> Subject: Re: [PATCH net-next V1 0/4] virtio_net: add per queue interrupt coalescing support Date: Tue, 11 Jul 2023 11:10:49 +0800 From: Xuan Zhuo To: Gavin Li Cc: virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, mst@redhat.com, jasowang@redhat.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, Heng Qi References: <20230710092005.5062-1-gavinl@nvidia.com> <1688981109.6377137-1-xuanzhuo@linux.alibaba.com> In-Reply-To: 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,URIBL_BLOCKED, 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 Tue, 11 Jul 2023 10:34:33 +0800, Gavin Li wrote: > > On 7/10/2023 5:25 PM, Xuan Zhuo wrote: > > External email: Use caution opening links or attachments > > > > > > 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. > Do you mean the one below? YES > > https://lists.oasis-open.org/archives/virtio-dev/202303/msg00415.html > > The code is to implement what it described and I don't have better > words. So, I copied the text from Heng Qi's. Maybe he wrote code for it. I think you should ask him about his plans first. 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 > >>