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 981C6A0C53; Wed, 25 Aug 2021 10:22:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACAD3411FD; Wed, 25 Aug 2021 10:22:26 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60078.outbound.protection.outlook.com [40.107.6.78]) by mails.dpdk.org (Postfix) with ESMTP id E00C5411FA for ; Wed, 25 Aug 2021 10:22:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IXE3qyUvHylzgNhQLgAW1MMEIvt8rikXG+MsHXHkUtSlrBkglEzmcOjFg9bavMPmN5mOM2R0GDvvq82Af+jYPQOdol6RN2ljVf8dlwRvpBRnqEsnk1oyGq/BS+ELvMEB2ZQqcj0stBFq+RjPRrd6FKj783qyFsm+ffRbVGw1JAzDvrW+1eJShVUQE1okqDnLKWpYlRu4xfYfhofbGbdVFj+NpA5DtRxLouY8sVqKJyBV0GvAnd/mkrbR9mC0dkvdvv92Yp9cb7Q9dMGREc56u5G17xnkLI5r7deavpT2+SILRotsa1BmBDzn7x3LXkwMZSl6dBfUalW1AQk63em3bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iH5cuKgZBTdYaSnoGB2/fO/69P0Gm9xN1QfkkCR4kfM=; b=K3ORUKfjYTDP8Clucy6sWOTWz3qTuHg2oLNkMT2fGM6uqIV7jnTN/UuHGtqvboie0Stge12d/JmSNmdNGcgFxO7Lbn6Pt1fA5nb7IAPj6OsyI3VYuQt/DPzSfbxvwjjWXiE2uLvD2kx9TCbqTzG0No8+FhS5MQ44/k3IGlNkvWUkx9kT+p1FF9kLlgfv1hUjjy/rdDsSWi+aDDeffpWLLobkNbgzx2REW3nFX/rQUOKeeqciBSdEOPY77R4q1xCY5aTvpS82PDNyzABYmbc9m00w3oGBWu0SCZ+lc9g9MnabjhXG/UXxmfd5gcmTC8nlk72DwzXqPfHa5AEe5bQIrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iH5cuKgZBTdYaSnoGB2/fO/69P0Gm9xN1QfkkCR4kfM=; b=Voqp403tPrRNYCbNOqXk5HkQ4N+PVOWWGt1QY0VvZmXjpzHO/bEFcqO7W/l4Ymt5FAqu3AsdHPqYPaqBLgJ6umTuH9nSOAt4M6P/uCD8gXsebDX1e79cgr1OW15NufCDtSIE4q7zGeEPoXpodskalyHnm0DMYYNj69LdI3mgwQ0= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by DU2PR04MB8934.eurprd04.prod.outlook.com (2603:10a6:10:2e1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17; Wed, 25 Aug 2021 08:22:24 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793%8]) with mapi id 15.20.4436.025; Wed, 25 Aug 2021 08:22:24 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: Franck LENORMAND Date: Wed, 25 Aug 2021 13:48:33 +0530 Message-Id: <20210825081837.23830-7-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210825081837.23830-1-hemant.agrawal@nxp.com> References: <20210721073920.21893-1-hemant.agrawal@nxp.com> <20210825081837.23830-1-hemant.agrawal@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0106.apcprd02.prod.outlook.com (2603:1096:4:92::22) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by SG2PR02CA0106.apcprd02.prod.outlook.com (2603:1096:4:92::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Wed, 25 Aug 2021 08:22:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2fa2469f-1b6e-4b05-0618-08d967a1770f X-MS-TrafficTypeDiagnostic: DU2PR04MB8934: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: R3ps/q3oz9iYdJcTSt5l2pWTqv0kvaGY29vY9vdYCaJ0jQ82CL4OFinX5uy5aIliaFfiR9k9sQqr5TX2sAKlue8F7IwEgQmRic6zZ0a6dQlUsbraGY2Hz+gtoxqCtty0erPcFKnl2H2ylCbD8izeNVOpk9VEJbXCDd4WTTn2mx5AVnh7L8z+Sh4adDgrSYUnkgh50WyJX/nyZrJYfS6iAox7hv3tIlaVFutoiLbnm6V40inJQiJKnBmhHoN5Kb288xtFf+Ry9feihAk8jdoJPjZ743hkX3hhq/Uwg4QLEskrmwy8N8DaPTacUTrSHRKbgTjxWim33R9MzTEdYxlDmjIwP93UzZZpuz06xu5PuEBbC8qwmRU+KKtJ0lW8cjczn/AntyPOkUZzy1CIDxEbXr9Z5N9NzWCIEAoll9qcnhhYukBXwEhw3P8jdjdF9ZIEYfhEC+DMlhwTQupbZCXAWM3SXxoWK9mART3PAL+29552sY5TlqMEloZ+wnF6Ra4RFPYbw9MLkzLCgJLPhUg6nS6VKxuPeZJU6NMmyVuJsf3+FHvLIy1CX2EqizV4J1FEPFYSzJHnb9RSNawRMMtZc3fpxep5qZengfWo4G6js2LYiePIm6YFvk05erS9rU4jD0LqYye5PZPODJOEAmnl2DKiDXiCDavO/AqJwYO7z52TkuZgjyaOJN7yzNAPyvSGQ+TO/oHkltTs+8WqMZXBvg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8630.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(396003)(376002)(39860400002)(136003)(6486002)(44832011)(6666004)(316002)(26005)(4326008)(5660300002)(6512007)(2906002)(186003)(8936002)(36756003)(38350700002)(38100700002)(478600001)(52116002)(2616005)(956004)(66476007)(66556008)(86362001)(8676002)(1076003)(66946007)(6506007)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?38RVoGhOKusFi5nbqVv+t5SB/axp87NwDZB7cqn+PD0m1jgZ6Vov6Kc4Nan+?= =?us-ascii?Q?Zk6M2qHgiGcb+8h99/p0x51OrNCZPyCTaRjREodyctBSERqTgzBT7Q9ZH27Q?= =?us-ascii?Q?DPtuY9AolRr/GEj8Nn2B3PTVVhJMT2ue3AxWzlVfexo3TLm55fIoHtCphmH6?= =?us-ascii?Q?bggXSUixgzI9s32PozLlfzn4azKJmHIZ2p37oQpTYZhtm0ExbPHby9uPvDCG?= =?us-ascii?Q?vXMM0/xqFDeBjuLgk0vQJgRUy2WVwMD6/gxLTX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?CrwYuC1jnY4ykZkZrB58ck2hgxkDp9DlrvDBM0TPvQOGoHpupvWiSe8OdVHc?= =?us-ascii?Q?08JFWnlosq9aWqDprgRJ769nzsKQVzFNpTm2uDps7VcMppvlNgwYacKYYWQX?= =?us-ascii?Q?CrDwNK5mKEgR6F2iQV0+gqNYO+sB9NOBDX+hOpQ4c8gT35emZOGVayQdYn96?= =?us-ascii?Q?Lm8zQe56QGKGteEHHEI1bl/v?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2fa2469f-1b6e-4b05-0618-08d967a1770f X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2021 08:22:24.0100 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: t7bPJyHyr4hWVk6ohopUu2r1rMk8ov6geWtia3vLjQbwdtZJQy9V9+l5PrNy2oQro7qP3CqtgLu3+z6nzPX3CQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8934 Subject: [dpdk-dev] [PATCH v2 07/11] common/dpaax: caamflib do not clear DPOVRD 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 Sender: "dev" From: Franck LENORMAND For SDAP, we are not using the protocol operation to perform 4G/LTE operation so the DPOVRD option is not used. Removing it save some space in the descriptor buffer and execution time. Signed-off-by: Franck LENORMAND --- drivers/common/dpaax/caamflib/desc/pdcp.h | 14 ++++++++------ drivers/common/dpaax/caamflib/desc/sdap.h | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/common/dpaax/caamflib/desc/pdcp.h b/drivers/common/dpaax/caamflib/desc/pdcp.h index e97d58cbc1..5b3d846099 100644 --- a/drivers/common/dpaax/caamflib/desc/pdcp.h +++ b/drivers/common/dpaax/caamflib/desc/pdcp.h @@ -2546,7 +2546,8 @@ static inline int insert_hfn_ov_op(struct program *p, uint32_t shift, enum pdb_type_e pdb_type, - unsigned char era_2_sw_hfn_ovrd) + unsigned char era_2_sw_hfn_ovrd, + bool clear_dpovrd_at_end) { uint32_t imm = PDCP_DPOVRD_HFN_OV_EN; uint16_t hfn_pdb_offset; @@ -2597,13 +2598,14 @@ insert_hfn_ov_op(struct program *p, MATHB(p, MATH0, SHLD, MATH0, MATH0, 8, 0); MOVE(p, MATH0, 0, DESCBUF, hfn_pdb_offset, 4, IMMED); - if (rta_sec_era >= RTA_SEC_ERA_8) + if (clear_dpovrd_at_end && (rta_sec_era >= RTA_SEC_ERA_8)) { /* * For ERA8, DPOVRD could be handled by the PROTOCOL command * itself. For now, this is not done. Thus, clear DPOVRD here * to alleviate any side-effects. */ MATHB(p, DPOVRD, AND, ZERO, DPOVRD, 4, STL); + } SET_LABEL(p, keyjump); PATCH_JUMP(p, pkeyjump, keyjump); @@ -2989,7 +2991,7 @@ cnstr_shdsc_pdcp_c_plane_encap(uint32_t *descbuf, SET_LABEL(p, pdb_end); err = insert_hfn_ov_op(p, sn_size, pdb_type, - era_2_sw_hfn_ovrd); + era_2_sw_hfn_ovrd, true); if (err) return err; @@ -3143,7 +3145,7 @@ cnstr_shdsc_pdcp_c_plane_decap(uint32_t *descbuf, SET_LABEL(p, pdb_end); err = insert_hfn_ov_op(p, sn_size, pdb_type, - era_2_sw_hfn_ovrd); + era_2_sw_hfn_ovrd, true); if (err) return err; @@ -3319,7 +3321,7 @@ cnstr_shdsc_pdcp_u_plane_encap(uint32_t *descbuf, } SET_LABEL(p, pdb_end); - err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd); + err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd, true); if (err) return err; @@ -3523,7 +3525,7 @@ cnstr_shdsc_pdcp_u_plane_decap(uint32_t *descbuf, } SET_LABEL(p, pdb_end); - err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd); + err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd, true); if (err) return err; diff --git a/drivers/common/dpaax/caamflib/desc/sdap.h b/drivers/common/dpaax/caamflib/desc/sdap.h index f1c49ea3e6..d5d5850b4f 100644 --- a/drivers/common/dpaax/caamflib/desc/sdap.h +++ b/drivers/common/dpaax/caamflib/desc/sdap.h @@ -990,7 +990,7 @@ cnstr_shdsc_pdcp_sdap_u_plane(uint32_t *descbuf, SET_LABEL(p, pdb_end); /* Inser the HFN override operation */ - err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd); + err = insert_hfn_ov_op(p, sn_size, pdb_type, era_2_sw_hfn_ovrd, false); if (err) return err; -- 2.17.1