Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6761967rwp; Tue, 18 Jul 2023 05:41:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkwfm/PSX5xmKNskg+ejFWfeQauRmKrXdAcYEpmD2yTJy+PSqVMX9rTkEs6oaWu8UMvW4W X-Received: by 2002:a17:907:7204:b0:995:3c9e:a629 with SMTP id dr4-20020a170907720400b009953c9ea629mr9761782ejc.31.1689684082305; Tue, 18 Jul 2023 05:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689684082; cv=none; d=google.com; s=arc-20160816; b=Z4m/rjkMlXBtBI2f/FO/B5Phciash171nb/0W34AZ4EHagS8GmpG6Bk0U2vxBNhwKA Z03SZvm5+El2N64nV+LhnotFheIPRgYi+o906sNFGPZeh93D3IjVAjQnChv7knWTOzl0 b0xtrvnOQWwaS+HoOjQmJDliH9dO+iF4h/oZbxfD0oxi2ekMiWiZg20PpyXMRa/umUtt bne+p79Y1Qo6bkAV8EV9XPbhTmOOu7alKp27iFskT5qUqNbBSCwIoQmJ+a3HtzxWYzSP Pz2SNG5A3g+CFMX4vFlp44qDPyFdXJHTdjWzARXtO6YxhN2VBtfXD7/+tH6Bhd4Rj1Jk FR6Q== 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=97b1Wd9ApY6nvfpc27Ea/C8GEHQKIrdQTVX0h0u8Jto=; fh=sOcE0Q2QqTbZbv9eTdbirwSVk7wRAfoRiML8VY/DQ7A=; b=E81vsHnIk8qsuBLGPkYrBJH793SKKa76+d9czItMAu78VqbXrx0LeFiemlp4tBj8LF TWo8ItpifF0e95gMPxlgLFK/xlBTZC1pns+AbyCwvC9wnf6YYKhEOtcZS9sk0iAIsQFP 9mwrUnP0i4JW0ykP4xkUmiXHgTkspZPF2K5rXVBybKvcUqtsjLpEsONBOVU4q2dIeW6I QRtfH1uvibeE2/40r+3Xj+u0UtC1sNXOEh4YnKvV1E7OwVde59RXLJQAPlUvJkfd6EVJ XopeEoUvDxa2W65idZcHzDtD3gLi48WDho0ymSphOaphhu/J/RODdkGMrzAKg+2IIX61 qpYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q1IBPkGM; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020aa7d506000000b0051df8ee23f5si1143579edq.175.2023.07.18.05.40.56; Tue, 18 Jul 2023 05:41:22 -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=@kernel.org header.s=k20201202 header.b=q1IBPkGM; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbjGRM2K (ORCPT + 99 others); Tue, 18 Jul 2023 08:28:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231645AbjGRM2F (ORCPT ); Tue, 18 Jul 2023 08:28:05 -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 E86AEE70 for ; Tue, 18 Jul 2023 05:28:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7C54761560 for ; Tue, 18 Jul 2023 12:28:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FD00C433C7; Tue, 18 Jul 2023 12:28:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689683283; bh=R8sOcqcXecALVQwiIRsJk5h3MaygnnkPbEwfmlj/MC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q1IBPkGMgdov8HhHI+SZXO385pfWvIlMvE3LMSZXQmHfb9Hn+z4mx1uteAhHMMtuP G3FImlLNRgGDQ9xzJQea/AoRhq3ZC1kVDCKDjwlY1aR2O+3BnaXC8rHOq2nsdiiwGk 72qXvFSZTSGzU/0pXQe07bQKfv2y9K0hnm+E5tZ3NZGBIkD6SZHIJXYbd7DelAIAqn jPLW5V80CesSSPUj/ldoM0APhDnOJQf11l/+zZ3bUowfJzcPMzZx+XHqsvufaToJN0 1FUhNZyRgJFNnLkZ9EWkrU0AhXLEQRQR3XWYZvSR1rUViFPp4+/2FrCIO3qqsVumoi e+l0/ITnt0ciw== Date: Tue, 18 Jul 2023 15:27:59 +0300 From: Leon Romanovsky To: Suman Ghosh Cc: sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com, hkelam@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lcherian@marvell.com, jerinj@marvell.com Subject: Re: [net-next PATCH V3] octeontx2-af: Install TC filter rules in hardware based on priority Message-ID: <20230718122759.GE8808@unreal> References: <20230718044049.2546328-1-sumang@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230718044049.2546328-1-sumang@marvell.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,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 Tue, Jul 18, 2023 at 10:10:49AM +0530, Suman Ghosh wrote: > As of today, hardware does not support installing tc filter > rules based on priority. This patch adds support to install > the hardware rules based on priority. The final hardware rules > will not be dependent on rule installation order, it will be strictly > priority based, same as software. > > Signed-off-by: Suman Ghosh > --- > v3 changes: > - Addressed minor review comments from Leon Romanovsky > > v2 changes: > - Rebased the patch on top of current 'main' branch > > .../net/ethernet/marvell/octeontx2/af/mbox.h | 9 +- > .../marvell/octeontx2/af/rvu_npc_fs.c | 9 +- > .../marvell/octeontx2/af/rvu_switch.c | 6 +- > .../marvell/octeontx2/nic/otx2_common.h | 11 +- > .../marvell/octeontx2/nic/otx2_devlink.c | 1 - > .../marvell/octeontx2/nic/otx2_ethtool.c | 1 + > .../marvell/octeontx2/nic/otx2_flows.c | 2 + > .../ethernet/marvell/octeontx2/nic/otx2_tc.c | 313 +++++++++++++----- > 8 files changed, 248 insertions(+), 104 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky