Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1000891rwp; Thu, 13 Jul 2023 04:48:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGhacEzdIDSez/L7MRuz/b3zp8N3W6AhVlsogAz+HmjhYxZizdf5NEAWjYrN/isS8uohZdu X-Received: by 2002:a92:d98e:0:b0:346:4f3d:9133 with SMTP id r14-20020a92d98e000000b003464f3d9133mr1212974iln.20.1689248925771; Thu, 13 Jul 2023 04:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689248925; cv=none; d=google.com; s=arc-20160816; b=aeNWX1uHuwerVyaFEh9oT77JJnmbH5ma6l/63QyiSVsvC4sD3/DPUcBXiC5lMBjNp9 WlRo47mYFfvbE9joB2CMshF2SzTdpu4htkZl+4XfSOHfuDyYzkwdkQqtc17drJL/87fJ WvMEYXSfl8MfvkgnDzevomDZN8tZb1GqL2lbLypAJrqhp2/lGwyxYBe4iFAwifD1mOjl pwf+nRW3U+lZD3n+js1owBW+Th/ymOLUwulwwqPSCjSvi8R9fgMz4GZcNDKaC0BCYBM+ Lu2odD1ksGNzg98SaCnwy73dj6WBPf8lHn7Xpy+sKut5UU6JsmpbuE+uuk/a3I027m5/ j1hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=guFh+wPFNIRuesCzeZY5yldfMavaJ0y5Zd0rOUtQc9o=; fh=Lm6zSLKplzuKwsQDVqrNSJEizx0vMMjLSy31tnU6szs=; b=epsDIGCvYDmP3Phz05LHUHAew3aF53aPasII7dmUm4cnUfpzxYXm2LVXm0++ISdjvh CfI91XGcv7VuC8XqmF0HuNOZ9azUDwGFjLyyNkBbBX50lcNwk/UjHTus0quPAAT9+jGC 57pLZl8rFd/oWzbKdRdmHYawB6YWxrjlNObIclRsXboO/eZXEZy3U/oacb0FdVGF357R LuiGhZ5UCTQyRfBXMWZ+FZMgWSDNLiZ2dLtucpNiL5L7LMSaHiJLaz9hX8HA/Z+w6fW+ 86SU0yT2xWhMbbq0U/u9FAoY187qZLP/Qcfk07GRroNJeXsF7JfiST6OUX1E0rPNc53z PQaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h6DJ05wp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c1-20020a170902d48100b001b9e8ebe5a0si5380652plg.613.2023.07.13.04.48.33; Thu, 13 Jul 2023 04:48:45 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h6DJ05wp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230514AbjGMLlk (ORCPT + 99 others); Thu, 13 Jul 2023 07:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233994AbjGMLl2 (ORCPT ); Thu, 13 Jul 2023 07:41:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AEEE3593 for ; Thu, 13 Jul 2023 04:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689248419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=guFh+wPFNIRuesCzeZY5yldfMavaJ0y5Zd0rOUtQc9o=; b=h6DJ05wp9e9KrmT3f6LWUu2SVoi/Lqj0PsOcZ++L+lcWf4yCuw8uPfGxvfzW/S2IAGZwqi xY5aO3Xqz258UYtzOfGrvXho41qlW+B31DaU0/njV1Hhz8ItY5ZLYPcZHmI7P2XetpVKkG lOV8AGxoYsjT8BjPKKKbcESrVJlGUJk= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-423-3P11YhbfNryUxRegfZPD4Q-1; Thu, 13 Jul 2023 07:40:18 -0400 X-MC-Unique: 3P11YhbfNryUxRegfZPD4Q-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3f42bcef2acso3199845e9.2 for ; Thu, 13 Jul 2023 04:40:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689248417; x=1691840417; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=guFh+wPFNIRuesCzeZY5yldfMavaJ0y5Zd0rOUtQc9o=; b=ZxlGSD5la+uLc1483M1Cf/FOznkO4x2cAeacjFdaNDdlKdGenlak58c9OxQRMFzQlF maJsjnMkL0Lo6h3R/+atU6QGEtK09jdW6yPhyjLZR0W/PW1qhKhacuvx4fz0eqwohopT Eb2uafoWR0QO9AMn/kkHG6xxKxIHmqigSp2R8k1tLbDEszB33MtOCpa11JEOR73mKbr8 GdnUCUg4VRcob3XJGgXpRzk9vWCOHc2tsrFc3r2Adt7aXbfSaUa5jKKNXaN0DTHuat7z 6sLhLb3hJtq/Gah4DgbYU7fpwlf+maFXUN8FeYnedgR/2D8pot75MXJUWjm2XazLAgNx JkVw== X-Gm-Message-State: ABy/qLadSMcg/nw7LwDg/JuR3tELpb19YqbZpHnfsg6KK/PkM99N+Buy z/evLr8VM1X8c0XnlqkttczXsq9j549DfnzlaURCM6dBV4FXQUPLfIazURfOffIHFGXuR3vVvxk fHtWF9I9rzeWep3cJ09DMMqaB X-Received: by 2002:a05:600c:240d:b0:3fb:b5dc:dab1 with SMTP id 13-20020a05600c240d00b003fbb5dcdab1mr1150146wmp.39.1689248417231; Thu, 13 Jul 2023 04:40:17 -0700 (PDT) X-Received: by 2002:a05:600c:240d:b0:3fb:b5dc:dab1 with SMTP id 13-20020a05600c240d00b003fbb5dcdab1mr1150120wmp.39.1689248416901; Thu, 13 Jul 2023 04:40:16 -0700 (PDT) Received: from redhat.com ([2.52.158.233]) by smtp.gmail.com with ESMTPSA id v21-20020a7bcb55000000b003fba9db141esm18158573wmj.38.2023.07.13.04.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 04:40:16 -0700 (PDT) Date: Thu, 13 Jul 2023 07:40:12 -0400 From: "Michael S. Tsirkin" To: Gavin Li Cc: 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, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH net-next V1 0/4] virtio_net: add per queue interrupt coalescing support Message-ID: <20230713074001-mutt-send-email-mst@kernel.org> References: <20230710092005.5062-1-gavinl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230710092005.5062-1-gavinl@nvidia.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 10, 2023 at 12:20:01PM +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. series: Acked-by: Michael S. Tsirkin > 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