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 BBBF4A09E4; Sat, 24 Apr 2021 12:38:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1B1E41110; Sat, 24 Apr 2021 12:38:31 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00080.outbound.protection.outlook.com [40.107.0.80]) by mails.dpdk.org (Postfix) with ESMTP id EDA83410FC for ; Sat, 24 Apr 2021 12:38:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hZsqSdzC/HvlgYt+cSsXOXtYWK2MUYRxdl5HX6+BCCM/K7RtlzhMuWyScAF5qXWgHVGHe+ZufRZhpG/3aY+G+pkpWs5c5ChhZzqcrQh9QcVY/T/8su3imlNL6khlUt+eFSe9VWcLxF5Em1lt8iRn2g/dqVu3cWdLSR8n3li4JH4r7L8wjthBWmkVbg3O2abtMOT8t6k6K5zGAXyF1EcVYC+P77aMvpgISEskDzuNbeW3yZxcMTtCcb4DKbqujY4uf/yyEAoJezALN5eOMAK0eptNiJC9wv2PHf/2AsMvGsHuJGvMLsD77fy7W3CHxwqs3dCpiBTix+oYsQHdtPAWpA== 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=iMDLT+c+iGsxua4W6Vd2B+fDLnnsEAvRKEFGRAmVx88=; b=l7Cvkm8HRSEFQnXAS93X76SVD6Ui3oefroLaREewsm29mkgAqTNbjS8ov2PE0zw5Mp8ajagWcm73rLAOTEm+2bEQ+aWqzgCke+NyXFA7M30tf9HGSJMz2T47XFyKtBu6tXKEMjjbZ9yEcCKMTjScNPQuMEp+p5CGuMXezOpro3vJvtmgzFrzUyOvQSK2glBSkgdefDSbC+vrrKY8YNHqisrykV4UVnGNPQPMYpoLVg9Lhc6JgdPpE76gfaUhGABbTZji8ZR6nYL5L/Iz1dI2yQqGx7sfxtiCZYGNoCPRbDDa0ejhPoa+zVJz5p3E4olsbVb1P/cglhP2JGJrNTt06w== 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=iMDLT+c+iGsxua4W6Vd2B+fDLnnsEAvRKEFGRAmVx88=; b=e0RDhuJUc9uhYXp26fE6rPiNXkvZLA+DHFzD1ixC7GxuaiJ2XkXynztBWELdiYyFOQzCKhQTQlO6/AiebrzwAeGJ9E7+B2oQCr+Zr0+tCdwlGkv5q8j+9MoyR1x5t8MMjLq2syOiofRo/XJzPImvFVvZRyB7AnkBhp2/5SYRxj4= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) by AM5PR0401MB2564.eurprd04.prod.outlook.com (2603:10a6:203:38::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.19; Sat, 24 Apr 2021 10:38:28 +0000 Received: from AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::ad9e:a38e:e84e:bf55]) by AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::ad9e:a38e:e84e:bf55%6]) with mapi id 15.20.4065.023; Sat, 24 Apr 2021 10:38:28 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com, nicolas.chautru@intel.com Cc: david.marchand@redhat.com, Hemant Agrawal Date: Sat, 24 Apr 2021 16:06:53 +0530 Message-Id: <20210424103700.8098-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210424103700.8098-1-hemant.agrawal@nxp.com> References: <20210413051715.26430-2-hemant.agrawal@nxp.com> <20210424103700.8098-1-hemant.agrawal@nxp.com> Content-Type: text/plain X-Originating-IP: [92.120.0.67] X-ClientProxiedBy: HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) To AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Sat, 24 Apr 2021 10:38:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e264edc-d69e-4ff7-2be2-08d9070d18f7 X-MS-TrafficTypeDiagnostic: AM5PR0401MB2564: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qVCiRCdcdx1O6m0W7GV9+kMD5b0geRjaVic61EzWq4vtxbWffOwSkusGq7TeoanIQjCaKXalRJLSCPCghAk3IK2ufJvdZK6dv/VM8kJVHT180qHTsV37jS048FvRgLFF951uiKpZivQDeOA5+AswyBGYTcwKTbFAM6One47LUWiWDKc917Q87i5wjZdxjB5y+iT0e6Y71amqvZMvSqWaTKDLKd/82YfHc+Y8urILf2uLSxJcxbN2b9Sn4pcz7faFuQkCrvExRvkD0qvrwRlAKhF9mAtKUa9mcFPbF4YEdrB6A14rok+2HZxac+M8mnPZLabTxfHEyE+3EN0PmmSmXGEzf9SHcWYltj3uf00m7L4FjJ2oE/NxaInVjo0szH+CbjNnxmkQN9/xSMaCLjjnoBQG0xYZTPe55Oj1wPD+XCKbR70xUYrTRtJS6Oq1EOm2/OPK7gRCJ2NpiTbg+cvt+IRTCva2+J7k3i6Zav1jpu09Pko/E42CxXKlJz06I70AWpzdWEb7jo58sFoMjY2AN2axOfxCH29prqrZ5GFDM5ADYO2XZjITpRjErn4Kd49Qd78+2roJ1PS1pM4/MskJSMZ47ejie3PB590zWNis8O2gYRSt6nUo/iHzR1UCZzicoFViS878i3CNDraMPeNO8vxbeoVDEv5HorgnXZgLmkM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4456.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(136003)(39860400002)(396003)(366004)(6506007)(5660300002)(38100700002)(1076003)(52116002)(44832011)(316002)(38350700002)(4326008)(478600001)(83380400001)(2616005)(956004)(6486002)(6512007)(8936002)(36756003)(86362001)(66946007)(2906002)(26005)(66556008)(66476007)(186003)(8676002)(16526019)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?czUjT1VaTu4o+nVx5NhjDSLF1vz0nWYmqC/McwTjH4sn/7tFxZdr0N1lf5E2?= =?us-ascii?Q?rU0xwi8W4csizv6UBK8LNnQt72J69Igs/ojOyFNdxrgi9N11sesIpayQnPVh?= =?us-ascii?Q?bNLf0x3NgyjYO80p8De7lr6fF1cZc/hqcJiACP+9abreo/2p6h7z8r9KA7d/?= =?us-ascii?Q?RxiBd8RLpEe3MJwLVLFQUDldsdE3C9nn+1cAEv+5UJW2IMLmA9y8qmsD/3hx?= =?us-ascii?Q?vyyiz+t3S7uOQNIfXfR2Ctce0K35U9Bki96ODn6tTCtb5FJ4nkXVATqJkLnk?= =?us-ascii?Q?wfJFy0evG2t8ueIZ/h2KTvN17J/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Y?= =?us-ascii?Q?Hi1XtIC/Wi36pBfw3jAzQGfI3sRdwIcSZWzRd02/PlS+KbcpRJWgPjlfeZC/?= =?us-ascii?Q?sv8pRDsD9+fVucKPAmwuVtv1WAJbU7KvoXnqbTsjS9ewrbocht/rfs/ocm2C?= =?us-ascii?Q?HrV2zUNoWEQSmm35wkqEMgmH?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e264edc-d69e-4ff7-2be2-08d9070d18f7 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4456.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2021 10:38:28.7335 (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: HypFq0Pnrw+2q2h+DOAL7EecwF4RBWF9lQiLyvemyP7PRPp5uSZmO8ta4X89WwH0CpY43kyX2zAQ0Xv4Op3hZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2564 Subject: [dpdk-dev] [PATCH v4 1/8] bbdev: add network order data capability 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" This patch intoduces a new capability of the bbdev device to process the LDPC data in network byte order. Signed-off-by: Hemant Agrawal --- doc/guides/bbdevs/features/default.ini | 1 + doc/guides/prog_guide/bbdev.rst | 6 ++++++ lib/bbdev/rte_bbdev_op.h | 8 ++++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/guides/bbdevs/features/default.ini b/doc/guides/bbdevs/features/default.ini index 5fe267a625..e5da644099 100644 --- a/doc/guides/bbdevs/features/default.ini +++ b/doc/guides/bbdevs/features/default.ini @@ -14,3 +14,4 @@ LLR/HARQ Compression = External DDR Access = HW Accelerated = BBDEV API = +Network Order Data = diff --git a/doc/guides/prog_guide/bbdev.rst b/doc/guides/prog_guide/bbdev.rst index 6b2bd54e1a..89a86d10fb 100644 --- a/doc/guides/prog_guide/bbdev.rst +++ b/doc/guides/prog_guide/bbdev.rst @@ -747,6 +747,9 @@ given below. |RTE_BBDEV_LDPC_ENC_CONCATENATION | | Set if a device supports concatenation of non byte aligned output | +--------------------------------------------------------------------+ +|RTE_BBDEV_LDPC_ENC_NETWORK_ORDER | +| Set if a device supports network order data processing | ++--------------------------------------------------------------------+ The structure passed for each LDPC encode operation is given below, with the operation flags forming a bitmask in the ``op_flags`` field. @@ -942,6 +945,9 @@ given below. |RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK | | Set if a device supports loopback access to HARQ internal memory | +--------------------------------------------------------------------+ +|RTE_BBDEV_LDPC_DEC_NETWORK_ORDER | +| Set if a device supports network order data processing | ++--------------------------------------------------------------------+ The structure passed for each LDPC decode operation is given below, with the operation flags forming a bitmask in the ``op_flags`` field. diff --git a/lib/bbdev/rte_bbdev_op.h b/lib/bbdev/rte_bbdev_op.h index f946842727..8fab617768 100644 --- a/lib/bbdev/rte_bbdev_op.h +++ b/lib/bbdev/rte_bbdev_op.h @@ -186,7 +186,9 @@ enum rte_bbdev_op_ldpcdec_flag_bitmasks { * for HARQ memory. If not set, it is assumed the filler bits are not * in HARQ memory and handled directly by the LDPC decoder. */ - RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS = (1ULL << 18) + RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS = (1ULL << 18), + /** Set if a device supports network order data processing */ + RTE_BBDEV_LDPC_DEC_NETWORK_ORDER = (1ULL << 19) }; /** Flags for LDPC encoder operation and capability structure */ @@ -206,7 +208,9 @@ enum rte_bbdev_op_ldpcenc_flag_bitmasks { /** Set if a device supports scatter-gather functionality. */ RTE_BBDEV_LDPC_ENC_SCATTER_GATHER = (1ULL << 6), /** Set if a device supports concatenation of non byte aligned output */ - RTE_BBDEV_LDPC_ENC_CONCATENATION = (1ULL << 7) + RTE_BBDEV_LDPC_ENC_CONCATENATION = (1ULL << 7), + /** Set if a device supports network order data processing */ + RTE_BBDEV_LDPC_ENC_NETWORK_ORDER = (1ULL << 8) }; /** Flags for the Code Block/Transport block mode */ -- 2.17.1