Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp494675rwb; Thu, 22 Sep 2022 02:31:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7wXcaRkSC88CWSL/voZHuUwhYTkgCW3ttRFg2VKT3keUd2/BlYVu9OGz9rQm+UyhsEqkJW X-Received: by 2002:a17:907:d07:b0:72e:ec79:ad0f with SMTP id gn7-20020a1709070d0700b0072eec79ad0fmr2065269ejc.296.1663839068711; Thu, 22 Sep 2022 02:31:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663839068; cv=none; d=google.com; s=arc-20160816; b=J2dd3Rwd6NwTC1vUCd1qK1Y7n2XxX1VUZZY3IeK0eSnyVVPrQUmqbZ/lqGWF3PJxN5 +Xyq7UwA0L4a2DL1mrh1Tv8+jCyNLp0+PbSXJvry5yELav/QjyGjltWQmLT7YAimKA48 q9Xc5xOwVpNUPFEyWGFNGmcUsjjlKu3818uVHlzzP2cRA+HrSYjRD30tAOf3hYfUqvW9 jQVbehzn7bJfSWM0mzvRSM2b8AzpkrgjtCYILk6/aMwpq71Nml4iUJXE9TU1DfZdqq6O PG4QaBuIopJTovLiu5TewTdfI02oRZ5OjXWFgMUU6uI737w1/B2XrsLNsHKTa93grTG/ WEFA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PhZLFn1R5tarTTTxU9XzOLKoFe4nPWuQCWD3fmeWO70=; b=fsLXyYsGiky00ykb0pnktgryA80z+9a8yI32OPsh751mPO+a1ao5EW9Kie3pTTDeDq hcEPXvJ1o2KtMOgFzcYWQUAB+3/czhmFZ2tgGVYvkJiQd1pbf/x8j/Qr7ot4OOzgo2bc KOwBqFhjGv+m6aJwlmYHa7sW2OX5RhtJC5oYS9ZzxmZ2lzEo9PcuNiw+P/OHCe8T9ayt N2EFaaxf37Lzsy0wQLTGP9o389FF7W4ZGw/sCKzx6RxmHn8+ge7KURLgQISU0DiVceWn wF4ZCfYTYAvz/uiCsRxZ+pwtcXVpQIfv5dXnHRZeTm0rd9h0+RsRTxQSmUtsFo6o3X9H 2jAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R5a4MQCI; 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 p34-20020a056402502200b00452e74b64e5si4680116eda.60.2022.09.22.02.30.41; Thu, 22 Sep 2022 02:31:08 -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=R5a4MQCI; 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 S230098AbiIVJQQ (ORCPT + 99 others); Thu, 22 Sep 2022 05:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbiIVJQO (ORCPT ); Thu, 22 Sep 2022 05:16:14 -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 7D09CD01E1 for ; Thu, 22 Sep 2022 02:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663838172; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PhZLFn1R5tarTTTxU9XzOLKoFe4nPWuQCWD3fmeWO70=; b=R5a4MQCIPjorIOui5cPHj9jBJjqwliSIYFWDW77TJcXy6jP/KTQeT2qxz717bYWltff+xP QXykeHyS4PnnCySzRiKm4HwkNZKZdNJEFkT1YWR9pvVYVIxh4/K8d46z66YZh54X63PbYe sIXwbqPgcEeH3HZaE0dzvHbPAz9Hlc4= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-277-OKmmfhkQMJO9A6cxZsanFg-1; Thu, 22 Sep 2022 05:16:10 -0400 X-MC-Unique: OKmmfhkQMJO9A6cxZsanFg-1 Received: by mail-ed1-f69.google.com with SMTP id m13-20020a056402510d00b004519332f0b1so6196915edd.7 for ; Thu, 22 Sep 2022 02:16:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=PhZLFn1R5tarTTTxU9XzOLKoFe4nPWuQCWD3fmeWO70=; b=ZKFqFpAtw055SryfH0u29UgrHyZHNFOZrn6ubcBEXKvcO6xvKWfxmO4pn6sxMF0FF4 41ZX0whNJIdGwT61JX9zeZ7sicnh6oKwh0wvGH7D2pyMchbga517rNK+ulNR9wzPySLD demrAZXP0lWj3UImgcWhisu3JrpA/OMMK8lH7nd2sFy0yCjMktD/x7JEclON4A9jtTLD RTy79s3D5gC6VStsLLnDcAqDQzofXo6ikCdJT+onvSuuu7MxkjXjR2DujqJkPi/op9UF +Oxb5AZDdqW6nRp9o/uGu4V2sW0DsbtA/67jtyJMnMZ0DRVYboyxBlx78IjNHKqgODMp 3kAg== X-Gm-Message-State: ACrzQf3vTUUQW8NBpa+DfyUFLuKfULOA6AXnvZn5D4O7hmvMHkuS8W3U QcbbbEENs9Xylcj9fpqC1/dgHSVD7k6L/Z9RZPEW3uB/kvbwM3Eh1ClbJSW3xG8QbbLWg130vgg /9T9Rx/mo4B+w6WNL/vLJ4Tl5 X-Received: by 2002:a05:6402:2547:b0:450:668c:9d93 with SMTP id l7-20020a056402254700b00450668c9d93mr2326115edb.92.1663838169833; Thu, 22 Sep 2022 02:16:09 -0700 (PDT) X-Received: by 2002:a05:6402:2547:b0:450:668c:9d93 with SMTP id l7-20020a056402254700b00450668c9d93mr2326091edb.92.1663838169658; Thu, 22 Sep 2022 02:16:09 -0700 (PDT) Received: from redhat.com ([2.55.16.18]) by smtp.gmail.com with ESMTPSA id 11-20020a170906300b00b0073d6093ac93sm2417360ejz.16.2022.09.22.02.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 02:16:09 -0700 (PDT) Date: Thu, 22 Sep 2022 05:16:03 -0400 From: "Michael S. Tsirkin" To: Junbo Cc: Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] Do not name control queue for virtio-net Message-ID: <20220922051317-mutt-send-email-mst@kernel.org> References: <20220917092857.3752357-1-junbo4242@gmail.com> <20220918025033-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 Sun, Sep 18, 2022 at 05:00:20PM +0800, Junbo wrote: > hi?Michael > > in virtio-net.c > ? ? /* Parameters for control virtqueue, if any */ > ? ? if (vi->has_cvq) { > ? ? ? ? callbacks[total_vqs - 1] = NULL; > ? ? ? ? names[total_vqs - 1] = "control"; > ? ? } > > I think the Author who write the code maybe want to name the control queue to > 'virtioX-control', That would be me I suspect ;) > but it never worked, we can see the name still be > 'virtioX-config' in /proc/interrupts, Nope, what you see in /proc/interrupts are the interrupts, not the queue name. > for example? > ?43: ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? > ?0 ? ? ? ? ?0 ? PCI-MSI-edge ? ? ?virtio0-config > ?44: ? ? ? ? 64 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? > 1845 ? ? ? ? ?0 ? PCI-MSI-edge ? ? ?virtio0-input.0 > ?45: ? ? ? ? ?1 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? ?0 ? ? ? ? > ?0 ? ? ? ? ?0 ? PCI-MSI-edge ? ? ?virtio0-output.0 > > Because in function?vp_request_msix_vectors, it just allocate 'xxxx-config' to > every virtio devices, even the virtio device do not need it. Oh yes, we can fix that. The result will be this line disappearing for devices without a config interrupt. Not for net though, that generally uses a config interrupt for things like link state detection. > in /proc/ > interrupts, we can see that each virtio device's first interrupt always named > 'virtioX-config'. > > So I think it's better to not explicitly give the "control" here, it's > useless...?? it's used for debugging.