From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CC7A0428CB; Tue, 4 Apr 2023 09:31:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB418410FA; Tue, 4 Apr 2023 09:31:16 +0200 (CEST) Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) by mails.dpdk.org (Postfix) with ESMTP id AECFB40EE3 for ; Tue, 4 Apr 2023 09:31:15 +0200 (CEST) Received: by mail-ua1-f43.google.com with SMTP id x33so22572777uaf.12 for ; Tue, 04 Apr 2023 00:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680593475; 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=VLYRE3AOgoObdqf7QlTBJqsRWaAbeu+r09bGAIWKaBY=; b=JVp/+zFAt4Ig81ph3l//kuX12f1b1NTRz/Cm/uuYHO2oEzwM6mybuBG3STVbYIab7U Es9VkPHz8ZRiXS0WXlqvA5zRZ9JbQt5HBjMK3s6ojiYj4X5kIWtjGMU+kPCZmGA/AlnV mcwu2JPRfPJRJiyUaISrfQbHfiW9BJhpBzkmqViQs3E0AljhmUfdEhk5Z+ZRmmImCxJM 1nlAMDrx4VP/ivr3yTqC9//HfoWEKLhFUSoUKAACwa9PtvnZOOG5TjOeDXriibFty3sA 9BL17vJXF3YMPBLQWXgHfG3aVfGHEZ55FL8eFVI7ehE0oPfY4VzRhcT92dMp8/Whp4vY MaVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680593475; 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=VLYRE3AOgoObdqf7QlTBJqsRWaAbeu+r09bGAIWKaBY=; b=EHRc5GJAygdO2veRxr7DpF1mXoOmJyBRooA6V/60Ba9IObl3xpDrcfMaM+Ps0yjstE oZVSSJMqM3+XxFVFgT924uYJZWCF3FuljsCh4PWbORsXZCkaGWEVivn+Dc02HRdpGlt0 UiwRVa9caoF/S1hhLnRzCxxkbsHfly2J+C0Ggf/ka7bbk5KikAgSercE2Bc2jvtx9cVI dJsVxnhXgy3fZF4EaNCzPx+yuEIOGtEmaCsU6GJ76Mx0udaH3UORtc4LnNtUgYRhoPce rWoz+k7uAFpHpZbqrNa91+hQczYJiOEKM8BmNAOsbRlPwszdzOSrb12QH9Fh4cUtYBBG gLkg== X-Gm-Message-State: AAQBX9cRooqGR3K+BmmDoioai34CUm5YBFmzze8IzQlgMj9BHVYSZZPS ig7MSoH/9KO3KY66x7SAarRb+PfPfd1AD8EFLx4= X-Google-Smtp-Source: AKy350YBIoy38UuunE8TuMhcqgJoQD2D+eCfbs6cLXpOuR0KBlp5tddoI83Cb8zX0bk4k9bI2fNd723WB16MfWaO7pM= X-Received: by 2002:ab0:5485:0:b0:755:9b3:fef8 with SMTP id p5-20020ab05485000000b0075509b3fef8mr887027uaa.2.1680593474986; Tue, 04 Apr 2023 00:31:14 -0700 (PDT) MIME-Version: 1.0 References: <20230313052403.230953-1-psatheesh@marvell.com> In-Reply-To: <20230313052403.230953-1-psatheesh@marvell.com> From: Jerin Jacob Date: Tue, 4 Apr 2023 13:00:48 +0530 Message-ID: Subject: Re: [dpdk-dev] [PATCH 1/2] common/cnxk: support SPI to SA translation action To: psatheesh@marvell.com Cc: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, Mar 13, 2023 at 10:54=E2=80=AFAM wrote: > > From: Kiran Kumar K > > Support SPI to SA index translation action with > SPI bits MS_28_25. > > Signed-off-by: Kiran Kumar K > Reviewed-by: Satheesh Paul > Reviewed-by: Nithin Dabilpuram Applied to dpdk-next-net-mrvl/for-next-net. Thanks > --- > drivers/common/cnxk/roc_npc.c | 4 ++++ > drivers/common/cnxk/roc_npc.h | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.= c > index 47536c8ce8..7228cffb57 100644 > --- a/drivers/common/cnxk/roc_npc.c > +++ b/drivers/common/cnxk/roc_npc.c > @@ -438,6 +438,10 @@ npc_parse_spi_to_sa_action(struct roc_npc *roc_npc, = const struct roc_npc_action > vtag_act.act.vtag1_lid =3D ROC_NPC_SEC_ACTION_ALG2; > break; > case ROC_NPC_SEC_ACTION_ALG3: > + vtag_act.act.vtag1_valid =3D false; > + vtag_act.act.vtag1_lid =3D ROC_NPC_SEC_ACTION_ALG3; > + break; > + case ROC_NPC_SEC_ACTION_ALG4: > vtag_act.act.vtag1_valid =3D false; > vtag_act.act.vtag1_lid =3D 0; > mbox =3D inl_dev->dev.mbox; > diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.= h > index 61d0628f5f..26a43c12cb 100644 > --- a/drivers/common/cnxk/roc_npc.h > +++ b/drivers/common/cnxk/roc_npc.h > @@ -235,6 +235,7 @@ enum roc_npc_sec_action_alg { > ROC_NPC_SEC_ACTION_ALG1, > ROC_NPC_SEC_ACTION_ALG2, > ROC_NPC_SEC_ACTION_ALG3, > + ROC_NPC_SEC_ACTION_ALG4, > }; > > struct roc_npc_sec_action { > -- > 2.39.2 >