Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp242830rwp; Wed, 12 Jul 2023 12:33:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEc/4L352zfda4On/2f398eZqd96SAIChJnFyiZFXqZVjT5njgXtGxai22sQf+hOq4b4k+6 X-Received: by 2002:a17:903:41c6:b0:1b8:8670:541 with SMTP id u6-20020a17090341c600b001b886700541mr17848316ple.25.1689190384163; Wed, 12 Jul 2023 12:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689190384; cv=none; d=google.com; s=arc-20160816; b=cDMuQ7o/382/ZHyr5M0sHmTRdHmsURawRZPpW4ctn7tpr3hpgKr0cTGKze2vz4ZzxE bKoOlpwZigot1G3YlP0yUFl12iB5c1oKjoumSJk9syK5cK6FXfMyYq+/4wxLIKwZ7XTj 5/QJAnDJn5zMK9vAZ22FAWfL8gsjFQ8OmDERIHXrw/dFCWuawsf0vSPvev0A1wn0+CgN HUSZlYhjK64wJR+ilCPobbI7Y4RRAcaONbjMMWxhE8AUOS4WMBdPxqdFqv6GdYqmBhqF /xiyGYIyN3mZZibJcAkT//avcc4XNQDyIceAokcAd0lZeOxq6ivF413ePolZ9PqCWYkd kg1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QKUU6pO05tC6nslWQtTK7aayznxqpJZOlTSHV8yJb9A=; fh=8BysWdIUD72wuPZqtkSc4JC0uejJVOnel8rBwmgfguE=; b=TZmheWaSD3e28F7sjRtP1xb3nZsgQmFeev5uzdd2Ucyj0oNpjUWhfwBBlNzRbmTVRL /XTyCLhHDOrMPLFJrrIIoHmVsmbUcIej05iNv94FJzqzFVcKmY3mKB8kihMSYXTaVQ9z FGGbvlP4s04G2acDNRVpENPlaIyW+XJfS5Ch5cWs+eEuKI7kPcresNe2ZFbRjZR5sizC 52lmGkP+Ett2Pj26TezUyfXscUyuT177dZGz6ku4j6j7rYpeqVRrWnH6gNWKOYr7YDPJ BjnfRwfJ4MyVcapb9tEor8biEB4vHoZB+2AOCcUDV2+WrphiSl71jSvlOSn4WM5XLpJU dWkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="O/uUoRFY"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a170902ec8d00b001b973681493si3965393plg.16.2023.07.12.12.32.51; Wed, 12 Jul 2023 12:33:04 -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=@gmail.com header.s=20221208 header.b="O/uUoRFY"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232332AbjGLTRF (ORCPT + 99 others); Wed, 12 Jul 2023 15:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbjGLTRE (ORCPT ); Wed, 12 Jul 2023 15:17:04 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 062EE1994; Wed, 12 Jul 2023 12:17:03 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b6f9edac8dso114592161fa.3; Wed, 12 Jul 2023 12:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689189421; x=1691781421; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QKUU6pO05tC6nslWQtTK7aayznxqpJZOlTSHV8yJb9A=; b=O/uUoRFYLM7U2NaSQXgscGqN74q0Yg2vt7V9h/3r7QIr97BinTaq7rwWN02QRsAdQL XAHhIr6NlO8mIugdArNXlEGF4v4Eled9AlUq9ZwzizdhHDF9icc76Rukho5sQcyy/TuZ awFn6wh87++yeUIg73kky9mAyS+AAkJzuMtfX0Z+iuPkKUh+0xOy+X+suIinN27RcQ1w ByeW+pft8rq3yPk32YhcO6QKFbox2mwhy8mPCcWQG+XuPiILbpozwWc3GFSaoInnMHbw 1m/uov2UsL6ErM33f6++xonSk1O9x43XZgHwual2C4wUxJERw+ntGlT5My+UcznueaFF C5Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689189421; x=1691781421; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QKUU6pO05tC6nslWQtTK7aayznxqpJZOlTSHV8yJb9A=; b=T2X/b3HvLCtBZskx2m8CMFqJg6POQcz3xL0LLmqukpD9d8H4JxRMp5dLoqGHp49ZGz 50fArM/zYtzMKzsXeXzAj+OCdn1riqmHb+FH9Hoe62J7lwr+rMh4hYLv9ow2nTwmS/iq lIa9b72k0P0n+s2Ovy73akWaqBrPFIDg8snS/PswiEkrQiBeufsGf2MkvLVwXJ4nSphU asgTAYO+pJBT7vUyeBsCVi944Rk2aHQ2E/SQPEztp0JtRZkYHSB8/UV4MTJB7z7p4rO7 ncv94B8GKx/puI5IWF+hKRw1rulQd16mePWuP1Ce91qzLqL38LHK+UhpdPMOLsXmX4cu C6aA== X-Gm-Message-State: ABy/qLZxWv5GVO9rxH4Bfy6AimATTIoSS3AKAa+cG5ocekq/WexFJ3T1 w+yDteDIRDtYqkkKeeOLvempHvBJGi+Fc9V0Mtk= X-Received: by 2002:a2e:9b4f:0:b0:2b7:2ea:2e27 with SMTP id o15-20020a2e9b4f000000b002b702ea2e27mr16092031ljj.19.1689189420809; Wed, 12 Jul 2023 12:17:00 -0700 (PDT) MIME-Version: 1.0 References: <20230712184011.2409691-1-sumang@marvell.com> In-Reply-To: <20230712184011.2409691-1-sumang@marvell.com> From: Sunil Kovvuri Date: Thu, 13 Jul 2023 00:46:49 +0530 Message-ID: Subject: Re: [net-next PATCH] octeontx2-pf: Install TC filter rules in hardware based on priority 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Thu, Jul 13, 2023 at 12:10=E2=80=AFAM Suman Ghosh w= rote: > > 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 > --- > .../net/ethernet/marvell/octeontx2/af/mbox.h | 9 +- > .../marvell/octeontx2/af/rvu_npc_fs.c | 10 +- > .../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_flows.c | 2 + > .../ethernet/marvell/octeontx2/nic/otx2_tc.c | 315 +++++++++++++----- > 7 files changed, 251 insertions(+), 103 deletions(-) > > Suman, net-next is not yet open, please check the status here http://vger.kernel.org/~davem/net-next.html Thanks, Sunil.