Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp216211rdh; Thu, 23 Nov 2023 01:47:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEd9nQj5RbKuHcbXOWMHNsBVfSPj5WssYtQBbmERHlFrk/jAP81SK9oVZ6002iMYWHmgGey X-Received: by 2002:a05:6a20:6a06:b0:17b:3fe8:b4e1 with SMTP id p6-20020a056a206a0600b0017b3fe8b4e1mr5322352pzk.50.1700732823513; Thu, 23 Nov 2023 01:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700732823; cv=none; d=google.com; s=arc-20160816; b=SJQdzgqVM/V/Tw+IBGUIDa1cOJ+CkyrnQadDdb/VVAdUbLY0Dr7KH1NgJw7XHC6/b8 H3bkNMZsijhqoFTh5IlB+eGhlM9IpgnRusViR0C0eJIucl0Q7tTvnpUDs1TI3lC4sl5Q UUI3q9XcCZmqQJ9mFlrGn6XfE/ASVQAow1exliWU3g5TQ/7yxvluD+1fUGSIdyVuYe6u nOZI8W1ggQ43BQVlAmkq2azomSK2b1/oe0rCsot0UrghOZt7T/UJskrQVZjGyCVgS8Mx BbicLAXwMGyG/787RtTYyxoCoWHbEtmcsjCB4ZPNoXP8Nc4HshHtO+exvxkKvH9ltvoY WdhQ== 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=J04fx9+O6Kxb0xDneHKKkozg4SA4Fmo6KG8wi2omgPY=; fh=XijrauUSAXYWAclf5LpekfqdtVimMfz6tK1jIqEUqJw=; b=DobjyLQJm54KggQfnuU9lfzqtvr2qsT0R3nNNP1J7031SFKX6E8hGRcr6Upf0QDqI5 2J2TD4R6XisSTVfgRnqkmwjziKPmGi1W4ZLJP/FL6FV2tpW/BJShAEncbDXYlfxH5+Lk 0Yz5IZ9iH6cK0R2h+XzcVIm+wVNwS/MD8zAEdLk/w6khJbbGUupN9lX7QzHCYhpAylZt dsOcVgqmtS0Gt1ocK3TrtAdWbcDOEdZl3peMpOGoEHFfhZsF8M5fgQEf+1Uqo7LyZsa/ RM2AKD75bH2FJehUj7fVGC4i+u/u+OfLs5w1RC5KZw65wdy7QgZe/RE9vdUzSBUprOy8 P+IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HWEgfPpr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id g9-20020a056a0023c900b006cb70cd9e2esi934303pfc.253.2023.11.23.01.47.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 01:47:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HWEgfPpr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id F311B8083ABD; Thu, 23 Nov 2023 01:47:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343878AbjKWJqr (ORCPT + 99 others); Thu, 23 Nov 2023 04:46:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235103AbjKWJqc (ORCPT ); Thu, 23 Nov 2023 04:46:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB61910CF for ; Thu, 23 Nov 2023 01:46:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3546C433C8; Thu, 23 Nov 2023 09:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700732795; bh=2l0/Ev7FSIGz1Ko2iOPlx8+jTmBCUrIpJOZuuECMMWo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HWEgfPproWd+Bw30XkqC6qYT5sQ2f/IvQEXSGPCUgG6MKyWvK6m4++6p+CO4FAxoC w3IRyKvlmwdWHbC1lpJe9Wl/ArDiN4QxiGzFdDQS4YN9Vh6ubgT+hRThFKPq8iLfUB DPlkOiXdZVzYqTi3v1rMrewYgEwbFn51/CzU53WteZ4uyCAHfaUck6uvJ1B5wqy8/b MM0GPsVHuGfBu6xyCBvndkPvkc78Cyh5uskHK8jmxWqJBT171QjLWmZSpPeyjjD3L2 4VQqyeh23FUodjSPcZ5pgRWi+uQkeUgh7jTsbQpXNraroxSL+wfGcRY22C0uhFdnY6 LdFYWlAJSqGmg== Date: Thu, 23 Nov 2023 09:46:29 +0000 From: Simon Horman To: Suman Ghosh Cc: sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com, hkelam@marvell.com, lcherian@marvell.com, jerinj@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, wojciech.drewek@intel.com Subject: Re: [net PATCH v2] octeontx2-pf: Fix ntuple rule creation to direct packet to VF with higher Rx queue than its PF Message-ID: <20231123094629.GB46439@kernel.org> References: <20231121165624.3664182-1-sumang@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121165624.3664182-1-sumang@marvell.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 01:47:01 -0800 (PST) On Tue, Nov 21, 2023 at 10:26:24PM +0530, Suman Ghosh wrote: > It is possible to add a ntuple rule which would like to direct packet to > a VF whose number of queues are greater/less than its PF's queue numbers. > For example a PF can have 2 Rx queues but a VF created on that PF can have > 8 Rx queues. As of today, ntuple rule will reject rule because it is > checking the requested queue number against PF's number of Rx queues. > As a part of this fix if the action of a ntuple rule is to move a packet > to a VF's queue then the check is removed. Also, a debug information is > printed to aware user that it is user's responsibility to cross check if > the requested queue number on that VF is a valid one. > > Fixes: f0a1913f8a6f ("octeontx2-pf: Add support for ethtool ntuple filters") > Signed-off-by: Suman Ghosh > --- > v2 changes: > - Removed 'goto' and added the new condition to existing if check. Thanks for the update. Reviewed-by: Simon Horman