Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3057799rwe; Mon, 29 Aug 2022 05:15:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JFWyaOtItP1JFCjAPh27TNGLpCZ6gRux1lrxwhMwEiq/YXxk29Ddxicp7MGRugff6Hija X-Received: by 2002:a17:903:260a:b0:174:9115:ae6e with SMTP id jd10-20020a170903260a00b001749115ae6emr8228160plb.55.1661775354258; Mon, 29 Aug 2022 05:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661775354; cv=none; d=google.com; s=arc-20160816; b=kZVBJrHPaD5vhqGPDLaBajK1xiU2b2Tv5e1czUP0Ijxxq0X96nDdjdBMnPeShMX475 v0MmgGzxedWMr1T+AfPSysenPKPy9to7YMLoLTD7OXRrJfA+Zu+1a8S58b/UXaZZ46UN obozwutS+KMf2JRGg24dYSfLqbT3/9EXQhT7nbvwzlRS1XFwqtmPoFs+baHOy4pbB3gm wMBIuqd1mvmJC9S+2LGzt/V0jbHlju+dzCEOUBD89nvDpXyEKwsf3zcbHpLllf6gpTUG iMhhSlUd0OQxn/IMoTacyscexzfnvCcuv+dtaI3BuosTZW/79d0Q/Q03eoBhpX1ElZwz 1Zvg== 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=Otr20XemgrM8U6I+uWeCK/UAdpdcU6n1kNjIBkES2XM=; b=ntW6jYWLEc9PYnCl2yn3eHomQmZNta0fsPT4gmHQ+mpo7WybXmaUxb7smpZDMG/PD4 7QM2rSsCv7q5+PtIKFWze9vbnpxUIsBDnboLekMRQBfTSxUdiX08vKPaa0lWroYMMw3k SMWvqH3cAXi76wCFQmk82qt4ZVkGzjY/u/qD3DVj3E3Xv2W2UVp8SuZXRW5GQLm9bWqd jtfAF17ZHflmI1FukJghxWr5YC4qblMRdfgsiNn5SGtWLlzr7+KpbK54/D2lnr9mYxpK 81bfjc40bSFwDEks9ZKuAuiTAF5Mh0GTNHBHnqNxZEdFz5Uw1QfNU/bcdgIpl+2z4MYZ zGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZC4eJtFS; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 76-20020a63044f000000b0042a8bebaaf7si8916470pge.106.2022.08.29.05.15.43; Mon, 29 Aug 2022 05:15:54 -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=@linuxfoundation.org header.s=korg header.b=ZC4eJtFS; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbiH2L5o (ORCPT + 99 others); Mon, 29 Aug 2022 07:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiH2L5A (ORCPT ); Mon, 29 Aug 2022 07:57:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13C7A95AE0; Mon, 29 Aug 2022 04:41:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B4BA9610E7; Mon, 29 Aug 2022 11:39:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72600C433C1; Mon, 29 Aug 2022 11:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661773157; bh=PUH3ViVHVj54pbPEDClUi/8HHM7+ZaoZalmXOTxsBTI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZC4eJtFSoF30Mn/CPoOM7gOwz4yywp1R8svyfupEQ1gONEOkmY4t/FSJ5cBgzn2NZ hE7mFlzHVmiLUR5Ntjl/ZbN7QsOAZYAOyDl+S5Ik/s/5UTMCcLZnk2maP/W3Mwb9vT iIhLrzStvmJ1iAJvE1VLxBicn3umbgP2sJ3pH1k4= Date: Mon, 29 Aug 2022 13:39:13 +0200 From: Greg Kroah-Hartman To: Maciej Fijalkowski Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Alexander Lobakin , Daniel Borkmann , Magnus Karlsson , Sasha Levin Subject: Re: [PATCH 5.15 042/136] ice: xsk: Force rings to be sized to power of 2 Message-ID: References: <20220829105804.609007228@linuxfoundation.org> <20220829105806.324347516@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Mon, Aug 29, 2022 at 01:16:40PM +0200, Maciej Fijalkowski wrote: > On Mon, Aug 29, 2022 at 12:58:29PM +0200, Greg Kroah-Hartman wrote: > > From: Maciej Fijalkowski > > > > [ Upstream commit 296f13ff3854535009a185aaf8e3603266d39d94 ] > > > > With the upcoming introduction of batching to XSK data path, > > performance wise it will be the best to have the ring descriptor count > > to be aligned to power of 2. > > > > Check if ring sizes that user is going to attach the XSK socket fulfill > > the condition above. For Tx side, although check is being done against > > the Tx queue and in the end the socket will be attached to the XDP > > queue, it is fine since XDP queues get the ring->count setting from Tx > > queues. > > Hi Greg, > > We had multiple customers reporting that this change makes them unable to > use max ring size which is 8160 for this particular driver (which is not a > power of 2 obviously) so we are about to send a patch that will drop this > limitation. > > To avoid the double work, can you please not proceed with this one? > The other two: > ice: xsk: prohibit usage of non-balanced queue id > ice: xsk: use Rx rings XDP ring when picking NAPI context > > are valid and needed. This is in the 5.18 kernel release, which has been out for a while. We will be glad to pick up the fixed commit when it hits Linus's tree. > FWIW this was a part of -next patch set, so I suppose you picked this due > to some dependency? I think it was, for a later patch in the series, 5a42f112d367 ("ice: xsk: prohibit usage of non-balanced queue id"). thanks, greg k-h