Re: [net-next PATCH V3] octeontx2-af: Install TC filter rules in hardware based on priority

From: Leon Romanovsky
Date: Tue Jul 18 2023 - 08:28:12 EST


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 <sumang@xxxxxxxxxxx>
> ---
> 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 <leonro@xxxxxxxxxx>