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 8A0E9A050A; Sat, 7 May 2022 12:17:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 647FA4068A; Sat, 7 May 2022 12:17:58 +0200 (CEST) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by mails.dpdk.org (Postfix) with ESMTP id 83EED40395 for ; Sat, 7 May 2022 12:17:56 +0200 (CEST) Received: by mail-io1-f48.google.com with SMTP id o190so10518692iof.10 for ; Sat, 07 May 2022 03:17:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RY5HK3OVy53Y2+l8yemJzlGhl3Izdgrr1CIAJn/CQQI=; b=aTCBz36fKBxu+MvVPJtItdA5dnIWJbDCBjM5EPRY7jPoUo/LC4R6cbLkh8+GhrW86N o26IFfo2CdT4+FKUNyyw2q4QLy2KeWjd5bzQe9cScg+/qsOPEyfoEveQmz0juxNKZfOu g5fCfemXjbblMAmO2S11GeHaoAf2MqmU5D5WAoqdfm67AQIGONNRjPPSIM+ZMYPplAHD jOW7zZkMS6JeY4jlEV0De1SYxUyEKhDyVz5on7gHCUm+hKlfd0kg5dofzKA0L7sWWYuz iPUwtnfouE3VX9iJJEsnBKkhvHmBRz4jNmwhEE/YiZWp47DdOsjazUDQqMFNfg9T2DIb 6QJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RY5HK3OVy53Y2+l8yemJzlGhl3Izdgrr1CIAJn/CQQI=; b=ZWDfsExDqXcqE4qvU+07TT9yx0TLbul5rPxLZSdRZ+tPyhPKXQiDYdFThEzjwHFu68 1G8wt7ShUaQFV+7PlcblSiiEVMXvcZ42mYj5Wu1Tk3uCQ5wvgo4PNP3BYtKMTyLgq7XV NWWSgrWuVNgbakIiX5d9o4CKxYDW4mBHkmLHwYJqBgoE5I0rpEAxIS4e5BrX/y+eUw3e M0paL8BAJGvSe4KW1GqDvwLn1ykRk0a3wQzK1z5Wf5eeL2uJNpqFRwpcnU19hP3p92t6 lIfsATuQXP7/CTFyiYaIDVrBdSATMyugTy3lbq2cVkA9haIRVztzXC7xCmUqkA/9tdjd VVAg== X-Gm-Message-State: AOAM532uagY4dA42stYhHauAIjYujCP0k8brOX6W8aWmTj343k/BLyC8 Uv6Hj1/5hxi9aX0kbr4lN3WKbtXwhPuctsSX3+T4LSVDzWZKKg== X-Google-Smtp-Source: ABdhPJxFZTb+JqWJDwFwia9nzjtI402ftvfpoo9Qk9SUIioQ73R9GTUo8D4EjeP/X3Fa5QIPcwZyayp1rDiZxKKhfIU= X-Received: by 2002:a05:6638:150a:b0:32b:93df:83cf with SMTP id b10-20020a056638150a00b0032b93df83cfmr3260771jat.280.1651918675843; Sat, 07 May 2022 03:17:55 -0700 (PDT) MIME-Version: 1.0 References: <20220422043857.2154566-1-kirankumark@marvell.com> <20220504051118.2314804-1-kirankumark@marvell.com> <20220504051118.2314804-3-kirankumark@marvell.com> <87wnf1k7qk.fsf@mdr78.vserver.site> In-Reply-To: <87wnf1k7qk.fsf@mdr78.vserver.site> From: Jerin Jacob Date: Sat, 7 May 2022 15:47:29 +0530 Message-ID: Subject: Re: [dpdk-dev][PATCH v2 3/3] net/cnxk: adding cnxk support to configure custom sa index To: Ray Kinsella Cc: Kiran Kumar K , Nithin Dabilpuram , Sunil Kumar Kori , Satha Rao , dpdk-dev Content-Type: text/plain; charset="UTF-8" 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 Wed, May 4, 2022 at 2:14 PM Ray Kinsella wrote: > > > kirankumark@marvell.com writes: > > > From: Kiran Kumar K > > > > Adding cnxk device driver support to configure custom sa index. > > Custom sa index can be configured as part of the session create > > as SPI, and later original SPI can be updated using session update. > > > > Signed-off-by: Kiran Kumar K > > --- > > doc/api/doxy-api-index.md | 3 +- > > doc/api/doxy-api.conf.in | 1 + > > drivers/net/cnxk/cn10k_ethdev_sec.c | 107 +++++++++++++++++++++++++++- > > drivers/net/cnxk/cn9k_ethdev.c | 6 ++ > > drivers/net/cnxk/cn9k_ethdev_sec.c | 2 +- > > drivers/net/cnxk/cnxk_ethdev.h | 3 +- > > drivers/net/cnxk/cnxk_ethdev_sec.c | 30 +++++--- > > drivers/net/cnxk/cnxk_flow.c | 1 + > > drivers/net/cnxk/meson.build | 2 + > > drivers/net/cnxk/rte_pmd_cnxk.h | 94 ++++++++++++++++++++++++ > > drivers/net/cnxk/version.map | 7 ++ > > 11 files changed, 241 insertions(+), 15 deletions(-) > > create mode 100644 drivers/net/cnxk/rte_pmd_cnxk.h > > > > Acked-by: Ray Kinsella Series Acked-by: Jerin Jacob Updated the git commit as follows and Series applied to dpdk-next-net-mrvl/for-next-net. Thanks commit 5aa4c7ec93062381cdd155b2a87962a7e0186451 (HEAD -> for-next-net, origin/for-next-net) Author: Kiran Kumar K Date: Wed May 4 10:41:18 2022 +0530 net/cnxk: support to configure custom SA index Adding cnxk device driver support to configure custom SA index. Custom SA index can be configured as part of the session create as SPI, and later original SPI can be updated using session update. Signed-off-by: Kiran Kumar K Acked-by: Ray Kinsella Acked-by: Jerin Jacob commit 1d63211bab5e87695d118b3b80e7b97c7eb18d99 Author: Kiran Kumar K Date: Wed May 4 10:41:17 2022 +0530 net/cnxk: devargs support to parse custom SA action Adding devargs support to parse custom SA action. Devargs can be specified in the following way. -a 0002:02:00.0,custom_sa_act=1 Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob commit 8f8ce5cce0f29308edca8c65520c52a2d45b9f45 Author: Kiran Kumar K Date: Wed May 4 10:41:16 2022 +0530 common/cnxk: support to parse custom SA action Adding ROC Flow changes to parse custom SA action for cnxk device. When custom sa action is enabled, VTAG actions are not allowed. And custom SA index will be calculated based on SA_HI and SA_LO values. This allows the potential for a MCAM entry to match many SAs, rather than only match a single SA. Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob