Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25955697rwd; Mon, 3 Jul 2023 03:30:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTcPP8Qz/Y5JsfukhaA7g2zcmi9P9GCMUGz+DqUfv056rSnI7CjtassHXPpemHQgIXR7pn X-Received: by 2002:a05:6870:1495:b0:1b3:84a4:630d with SMTP id k21-20020a056870149500b001b384a4630dmr4994596oab.40.1688380248223; Mon, 03 Jul 2023 03:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688380248; cv=none; d=google.com; s=arc-20160816; b=fOtQR8i1B/Q8KPrB+irfPSgyUa4ajGZyQ+jwqpEBvHYjHL9Kb0nx9FLV8U6+oMgPo9 GC62BzCBMNtwnm/uKQKQVTqrn3R07GR/v05nF7e1hZZG7TcJY/K/fdN2qo6WiBSJfLHz AeoNc4kGdkkt7v3RvYWvbXQYex20U3Da6YNJpcW+wRX5vd2f5/4j2Xv5jiQjsQKSVwsa 6zNS2nW5DOsl+5mNZaNJmrEw1xrIcb/xvILhbMd06i2VOV0OWgecJuSTQI44kvd48R6u Pa6C1FXLqk+mSsqwpLEtVGj71qRaRRBcgF+Ph8z2eNLNKR/eDKhpklTeTykLidRmjBH+ /DHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=XvxK+fIsyjrDQkIYelBKm95I7W5xSKZhQqP3NKGrN5Y=; fh=6C6r1z7I4O4luhNfY8U/8tb1rMd0svgN8ro0P7ZEzQ0=; b=Lmg0pvFM616kr2mbb5EV/H+IMfPTAK16fZwPGMPWpwXu3LF0b/2/ll8cGgLw76Srb+ VYSjgpwAt9UjXRzjuFLlh410xMOMoeb6FijCqQq4UXx7FI98D16akPBbZsE17TDslvCf 7AF2gNqA9FJKNLwmJVubAREJlIGabk0tVDzishep2M2CxF9YXWiuin82O77IEgfX+q4h LjZtOhx2EnZZJZm07hXOvw3y4cKU2cFeljhZ0717WP8nA5IOUfH71/VsTnfl4/R5jo1O Cl8K/+R7vGJIq9W2j0DzZeGvo9nTVNe5Xu4NP7ysMzlt/95L8exBGyPSjWP9Ef6YDFPm VQAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LrFYHwFY; 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 p3-20020a17090ac00300b00261113f2843si20229139pjt.131.2023.07.03.03.30.30; Mon, 03 Jul 2023 03:30:48 -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=LrFYHwFY; 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 S231143AbjGCKPg (ORCPT + 99 others); Mon, 3 Jul 2023 06:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbjGCKPf (ORCPT ); Mon, 3 Jul 2023 06:15:35 -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 888021BC for ; Mon, 3 Jul 2023 03:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688379285; 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=XvxK+fIsyjrDQkIYelBKm95I7W5xSKZhQqP3NKGrN5Y=; b=LrFYHwFYmSMTBCsFd60d4N/5RqATYE2ITQOgcTz5tplBff9TFKwacpN9Lg7GQz/9EoSIwb i8s/aI68qFS7+vH9hru0hDHVydOa1AxQYL1fcTzO9ukxPIaBnkXVPJSdm/NPk9M8WyMJAl euGbgNthqed0O5HbafKXk20WrwsNKYY= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-445-qnbUeF2XMci7HzsNAhoD3Q-1; Mon, 03 Jul 2023 06:14:44 -0400 X-MC-Unique: qnbUeF2XMci7HzsNAhoD3Q-1 Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-7673887b2cfso122597785a.1 for ; Mon, 03 Jul 2023 03:14:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688379284; x=1690971284; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XvxK+fIsyjrDQkIYelBKm95I7W5xSKZhQqP3NKGrN5Y=; b=X5JOhVVR9Jl73a6cHxWnPs2zs3RClTl6Jlcgo7SIfvSr+QKNFpL7F3lLEmC1Fw7EgK hwakDfpaC6NuIjOGwyPB1u/pjRlzPCbfIZrsP7DPCv/sTrCrc3z0CEUhSMc5jMmXxZfO 0cKMruMuxAYLeE+3Ymg5Uy7YouWmYdrzKBDY+NNI7oRR3NPEIJjUeCKKYAC7e97dSFSL 5aNiKi9UmoAM0HEpf7EobHHlhMuwyGzPaJ2g2Qgm7t0ij+caD2SiZe3qn+iQ1dKUV/31 DRJ4oL5hCIkYWVLYcTJJHhfRJJ+tUiABl2BtNSmGJ+WnnYue8mkp09a5vcKF8Mvzkwe+ niPw== X-Gm-Message-State: ABy/qLaE5wWTjbc1eoUXromgex+AUVwWpXrmOI8ITES2qlqxoJMJwF1p ytqs0bcJ8GQ323DAluTaVk8wOqXLGge0xDcT9aG32Ih+p+JjoQYGixvsj+IgrZWYEhMxKoRWgIO GC1o8TYDBVqcjweqTt8W2Ypq0 X-Received: by 2002:a05:6214:202c:b0:625:aa48:e50f with SMTP id 12-20020a056214202c00b00625aa48e50fmr9437529qvf.6.1688379283891; Mon, 03 Jul 2023 03:14:43 -0700 (PDT) X-Received: by 2002:a05:6214:202c:b0:625:aa48:e50f with SMTP id 12-20020a056214202c00b00625aa48e50fmr9437518qvf.6.1688379283620; Mon, 03 Jul 2023 03:14:43 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-247-156.dyn.eolo.it. [146.241.247.156]) by smtp.gmail.com with ESMTPSA id ec17-20020ad44e71000000b00632191a70a2sm11047509qvb.103.2023.07.03.03.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 03:14:42 -0700 (PDT) Message-ID: <8fb0c81c022d58d3f08082764038d17cfc849ba1.camel@redhat.com> Subject: Re: [Patch v3] net: mana: Batch ringing RX queue doorbell on receiving packets From: Paolo Abeni To: Long Li , Jakub Kicinski Cc: Greg KH , "longli@linuxonhyperv.com" , Jason Gunthorpe , Leon Romanovsky , Ajay Sharma , Dexuan Cui , KY Srinivasan , Haiyang Zhang , Wei Liu , "David S. Miller" , Eric Dumazet , "linux-rdma@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Date: Mon, 03 Jul 2023 12:14:37 +0200 In-Reply-To: References: <1687823827-15850-1-git-send-email-longli@linuxonhyperv.com> <36c95dd6babb2202f70594d5dde13493af62dcad.camel@redhat.com> <2023063001-agenda-spent-83c6@gregkh> <20230630163805.79c0bdf5@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 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_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Sun, 2023-07-02 at 20:18 +0000, Long Li wrote: > > > > > > > > Subject: Re: [Patch v3] net: mana: Batch ringing RX > > > > > > > > queue > > > > > > > > doorbell > > > > > > > > on receiving > > > > > > > > packets > > > > > > > >=20 > > > > > > > > On Fri, 30 Jun 2023 20:42:28 +0000 Long Li wrote: > > > > > > > > > > > > > > > > > > > > 5.15 and kernel 6.1. (those > > > > > > > > > > > > > > > > > > > > kernels are longterm) > > > > > > > > > > > > > > > > > > > > They need > > > > > > > > > > > > > > > > > > > > this > > > > > > > > > > > > > > > > > > > > fix to achieve the performance > > > > > > > > > > > > > > > > > > > > target. > > > > > > > > > > > > > > > >=20 > > > > > > > > > > > > > > > > Why can't they be upgraded to get that > > > > > > > > > > > > > > > > performance > > > > > > > > > > > > > > > > target, and > > > > > > > > > > > > > > > > all > > > > > > > > > > > > > > > > the other goodness that those kernels > > > > > > > > > > > > > > > > have? We don't > > > > > > > > > > > > > > > > normally > > > > > > > > > > > > > > > > backport new features, right? > > > > > > > > > > > >=20 > > > > > > > > > > > > I think this should be considered as a fix, not > > > > > > > > > > > > a new > > > > > > > > > > > > feature. > > > > > > > > > > > >=20 > > > > > > > > > > > > MANA is designed to be 200GB full duplex at the > > > > > > > > > > > > start. Due > > > > > > > > > > > > to > > > > > > > > > > > > lack of > > > > > > > > > > > > hardware testing capability at early stage of > > > > > > > > > > > > the project, > > > > > > > > > > > > we > > > > > > > > > > > > could > > > > > > > > > > > > only test 100GB for the Linux driver. When > > > > > > > > > > > > hardware is > > > > > > > > > > > > fully > > > > > > > > > > > > capable > > > > > > > > > > > > of reaching designed spec, this bug in the > > > > > > > > > > > > Linux driver > > > > > > > > > > > > shows up. > > > > > > > >=20 > > > > > > > > That part we understand. > > > > > > > >=20 > > > > > > > > If I were you I'd try to convince Greg and Paolo that > > > > > > > > the > > > > > > > > change is > > > > > > > > small and > > > > > > > > significant for user experience. And answer Greg's > > > > > > > > question why > > > > > > > > upgrading the > > > > > > > > kernel past 6.1 is a challenge in your environment. > > > >=20 > > > > I was under the impression that this patch was considered to be > > > > a > > > > feature,=20 > > > > not a bug fix. I was trying to justify that the "Fixes:" tag > > > > was > > > > needed.=20 > > > >=20 > > > > I apologize for misunderstanding this. > > > >=20 > > > > Without this fix, it's not possible to run a typical workload > > > > designed for 200Gb > > > > physical link speed. > > > >=20 > > > > We see a large number of customers and Linux distributions > > > > committed > > > > on 5.15=20 > > > > and 6.1 kernels. They planned the product cycles and > > > > certification > > > > processes=20 > > > > around these longterm kernel versions. It's difficult for them > > > > to > > > > upgrade to newer > > > > kernel versions. I think there are some misunderstanding WRT distros and stable kernels. (Commercial) distros will backport the patch as needed, regardless such patch landing in the 5.15 upstream tree or not. Individual users running their own vanilla 5.15 kernel can't expect performance improvement landing there. All in all I feel undecided. I would endorse this change going trough net-next (without the stable tag). I would feel less torn with this change targeting -net without the stable tag. Targeting -net with the stable tag sounds a bit too much to me. Cheers, Paolo