From patchwork Mon Jul 19 13:59:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 479836 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4154115jao; Mon, 19 Jul 2021 07:02:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjO0T3LGxExJYem0xSr+zL/0r6JkLh+DVmg1HhOc95x0fYe0pJaJQ0FBKM9Am5MUbONggN X-Received: by 2002:a05:6402:204:: with SMTP id t4mr34402580edv.34.1626703354925; Mon, 19 Jul 2021 07:02:34 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id ak18si20999553ejc.199.2021.07.19.07.02.34; Mon, 19 Jul 2021 07:02:34 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=GOWEpudY; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6719A410F3; Mon, 19 Jul 2021 16:02:31 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20054.outbound.protection.outlook.com [40.107.2.54]) by mails.dpdk.org (Postfix) with ESMTP id 14E14410F2; Mon, 19 Jul 2021 16:02:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yz5yE/cp34qgx+eXy5IFfhuaVdwC8ijqB30u8KqD82iCWPIDotrEMG/IMqPNzESTaNQ7+3rjougkajMXxPC7BQA8bRVQhWA2hwqW2MTWvfZ1UmVftbkDdfjvcpVPygyHYY1yopxnX3a1MQdjtAKUiaAl/1QJjaREUVCNmpyi1CZ899eRX38bwTj681emSoN0RdHAszL3F6uZexwkQjUWHjk09jQZL/39A66PwJEsRVZNOWb9ADCdOynL5WxG9FJotNUZh2EcXe3CHnQjGIeGtm7Xtm1VjxFSsR4WS505GO81/P2fXL4e6mCqul/H3z9puJS6j8SwROC/yFRp65zdRg== 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=pTe/7tFevnaBB9xwYOUJSECAe5mq3g9rbn5pTOXB8RU=; b=VLUOZt51I1lZHUSZ1YLYeifvWBqo4YQes+XuGmlfLY3JyxaUdLs6rY1S62octBy0U5rMNg6A9I+p8WZ3kTi4r+iL6IBfNbSXJD/z1+FNS+ykS2bksXzwU3OkqdSsowih6O3AaSEH9yxXay0zfiiXUSlAUstqcR42c0Z17XLItHnsion/+pKrpQ5+Ui0C97pII2H9nJUQYFhHDiHefWWAJMfNkvlL+r04ZSw01nHKfUqVB5hztJ/E25OdIza/yQQYB4KJDqr6NKy9yT4AoEUUVdQowZ4aKMZkUmwDquAv6y8m2VXpOlmUkl6qHXBeTyXET+mS10W1+NjGrh45e7pygg== 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=pTe/7tFevnaBB9xwYOUJSECAe5mq3g9rbn5pTOXB8RU=; b=GOWEpudYvAZXGwfk79PhwGUFV9nUMi/syA1++IwkyksY/UtgFjXnYNPb5DSidMsOsUu3oNnSgzUhiwKJKCybH2M5/e587VzLMTrGyiQUJjXNbaOPqBSEJHNp0B5U/6fgwd0BHJssDVWARiGTXvWY3luHP8lVMb3JOe9T7y3c6gg= 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 DU2PR04MB8520.eurprd04.prod.outlook.com (2603:10a6:10:2d3::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Mon, 19 Jul 2021 14:02:29 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28%6]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 14:02:29 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Hemant Agrawal , stable@dpdk.org Date: Mon, 19 Jul 2021 19:29:11 +0530 Message-Id: <20210719135917.26241-2-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210719135917.26241-1-hemant.agrawal@nxp.com> References: <20210719135917.26241-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) 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 SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 14:02:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d4200231-488e-4858-7339-08d94abdd836 X-MS-TrafficTypeDiagnostic: DU2PR04MB8520: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:595; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZFlqN5WzoNWu5aCZb2a40hcOqwriZqenGsO2/oZKszZjlTf3xJq1Luql1eeSNx9tgfgyEMfOEgf/p0Qcku+GSWYWqjUGalyqYpxGUeMXmE/v3Xf6Y0uPhkZw8ZUFqB6uchKkN0R73r+63KIpygD2p2plG0vi+7g8SMz3JlKB0GcJZBlXv3XQOeanHlIEPGHD3TIRQ5nfvEgCx5kl9d5t1Z2HUCoDG3bxIO+zdFPsMj5MwjXPT0+7gQAZxWzvBZh8lVNX7cr9K2m/U+CDm+9Efi+wk0jHGnv6p3cmkKURXAtexyah89xM/bdi5qXD21PYiIM5JWHt5Por9vcXv2SLdSn7LxWro6vpYwTIx0JsHp54hNpThSu8gZFMl2kfMelfqVAkOdz9KBHDas1VKFGrVY5zHrq6EIIUjP5QZV5GqJPc43ywdDiLFCdsnPhYMzl9fz3XQS42qJVQTTtvgeMDXjcn3aIq6p0z41Z9pIruyzdE/XxcMz9ZWVO6p+FZh4zN0sQUXdoqeEHAlovtLXWZ+5RWQgi622AMGxlDIo477wWxkN95yX/pJ68JabDN8WbzIa2UQDwHN0uTDh+meM8q7za63YleCiJ3QVFypEd86SlPCGrnxazB5LpfIeInqsNQsZArk5e1+CO5GrsS1OFBvVvq+dv2aNyKbHo4yjq6AgI9wS9KUVwccKaQgAJS6OcxOdKqfsk/jXQuzfK8wde9vQ== 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)(39860400002)(366004)(136003)(376002)(346002)(396003)(6486002)(8936002)(38350700002)(38100700002)(956004)(8676002)(4744005)(66946007)(44832011)(2906002)(66556008)(66476007)(5660300002)(6512007)(1076003)(2616005)(316002)(186003)(36756003)(6916009)(4326008)(83380400001)(6666004)(26005)(6506007)(52116002)(478600001)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: R8umJ9YvML1TGKubkBYh5N6xfDzWP7PTCPQAB2ojSSv3t+8qDJFSO9rEHMNRMVSe1xmNkLr1uVaaMCzFf/0CeObZa4SXoW0T5aYnMTlc3YCHcJHZsChZrNYkvAk3OPibAUNm1EyLRA93t0UcSQdF5Mv32PBKj9aqLRazLboplAFEmSPiXV6ScBUbEiWeoLAfEhL/gGbERHWYBTpoO3UK2MMWuI+HLI+Yj7j7XnbmBBy0qyu4A0DsqHXyvDriAQAjky01eAYnCkcjRcHRaY7RYuUhI2ZV6Sn9VUxz30vq+8wE6xLRoZzSHkYZLMBLtAU1A16f+FWj9TfkokwlHON+2n/t/SbF9y5IVCMIpUjAqRdK5ugVGg38HJKzlvQph83mUhNnl3KbkAXWjkEZraSY+jIEfDZWNF8IoRvqxkcaweYOmBjRiR7tbE/j0sWSr9z08P6VIOT6aYrMRLwdI1YdWpQqfveeQfLNjFcpVE3GIgSsjwf3gXKetC5mBN1S4ZN6JvLUH6fn52jSOQapQ2kiJ5jTXcWTmzGtdpLLWGyF+IllRza9sIfEsrWnSRD7jlTNAO4BxLA5aQCoaFzb41chheKaalKXliIJ/zYPWkIQnPTYyNaK7Rq7CmVMLmhFtWSsTTTCuvC6Ocv5RSG22YvyJ5OWlE7wP7AiAqgI+UgyvOa8yxDcFyN2dwwUP1Bm6rCMnB4TupbcLlnKlR7gU9x1FveNKMWynJ0vQV0e2YlGbHc/RBWT78NIpYLACHkayrqtBXhlgBdj+kuP6sDoijRW6tmcZQi5Kv8rlNxSEI1aM86k6gM1ZgF48dcxiSMSfDuyya2CgW6PK4x9MuTnRzLvOItNcM7nW50g8m91Ilq1Tf8D4gnlkp79FgrkTm1F07D5xBCN5CzJkUPxsXR4NTQ589G+g9TP9XLKsEsunvTDY6/v3X+BTMTe2KltFxBGQxXGvN6VHzbpb0jVwCQPEsZEfnlsro7mboe1fNV6t/ICLVRd+qLpYm0Hvg8uvF6YPy/Gv2ss6XJKwiWQB/yqQIEA74F7CGhP+jIiN09G+1lefLKyivBv+03WCAilrlDucKWxTe1jAL6vtLVv9RphabykahWpUAgv9gN3fW1QrQCKEegokieNDqTKdNqhkwiPRAGpwynFP0WKLpGke8xFFLQzfJdvOAYGVHg0jYR+Ga6S68wN81yrpjFF8kHzEOB7bPgwZVTihEi/XtTBXHuBpRZsRPtKjwicGAYvVOYzP+d/dNATC7o0GSSGHQinqnTSM0Jj2fKit6l28MtqQcZZBVwyB6Aa680zcUD1k2u3kcDPpZwaPYJ02sMOkLDFzuyV7vbi X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4200231-488e-4858-7339-08d94abdd836 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 14:02:28.9662 (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: S6+RHDUvcImzFibY88/UJsnn6krWRIXRl6A3VgaAExgIU0w4gqh7lJYHI4DXI2yVCUs3ypyyX3FjOlAHjjX4HA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8520 Subject: [dpdk-dev] [PATCH 1/7] bus/dpaa: fix to use right type of memory free 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" if was allocated with rte_malloc, free shall be equivalent. Fixes: 4762b3d419c3 ("bus/dpaa: delay fman device list to bus probe") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/fman/fman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c index 692071b4b0..a14004d7fc 100644 --- a/drivers/bus/dpaa/base/fman/fman.c +++ b/drivers/bus/dpaa/base/fman/fman.c @@ -50,7 +50,7 @@ if_destructor(struct __fman_if *__if) free(bp); } cleanup: - free(__if); + rte_free(__if); } static int From patchwork Mon Jul 19 13:59:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 479837 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4154275jao; Mon, 19 Jul 2021 07:02:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsi4yd3GEy+cAzN1FaUfuB1EnbneNnEGiW2cvi/uTaMNCn3JSJ9Iiwod+DRsiPzSrMwnAm X-Received: by 2002:a7b:c041:: with SMTP id u1mr26011091wmc.95.1626703362953; Mon, 19 Jul 2021 07:02:42 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id g9si9453265wro.269.2021.07.19.07.02.42; Mon, 19 Jul 2021 07:02:42 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=S2D0peU6; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0EFC4118F; Mon, 19 Jul 2021 16:02:33 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2042.outbound.protection.outlook.com [40.107.21.42]) by mails.dpdk.org (Postfix) with ESMTP id 3EA3A410FC; Mon, 19 Jul 2021 16:02:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kZS5zCCioNdx6C2s+y4gtbPwRsE2RDd+VKMMsDxPAuIzppTCkVB/m2XTekTKuaaT87xrUs/DyfZP7hHvQ4T71PQPgThNdf80+RgC+niTTh2MsoELpcjMpWtFmtfU4Yk4p6ty/K2se6346+Js3VavUeebU6c5dsiHEq+7Uu8gM0JwoP6Fhz63UeMWj7XIGIMsfm/1ngdS2cXaG+NHfeXBAQCXG/3UExuc23b6ubsbklItNUqloACLWPSVvxJfRrJofvPH7vOyQ5VvqyoSP7zvdyAswCIDCghJv6fnntIcBd+/9Ah4PAE5pYfRzIxNXbeXDBtEpKqr2W/0k8Ljbw8DFw== 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=907gFcqxwqJxvPhMi1m/Kx112gKj18enR/M2Jtan+18=; b=JThSYDooipZCdbK2cEllcjIOIHD6YkAeHHcZy9q0IcGialbD3o69jjGqhyUst7hFRWiqYZPhP7wJVWzVM/8teBaPtvtSrtfOJTPhBOXMdF+PBR9pUkh2WWU/ea3IgrOyjk6vlxcqZpiHZyWiA5DUgBtn3rnQ4AgmP6sDVoKnAd+SwXw8u4IECvx+o+jCPEdjdKOze8hKVXgCq1XWE5MRWgEWQYyKF9s14gZA0hbocLWdXhepuMW9BjJAERvk3+UGFmxt6PCRxLoZXKnccGJ7Llu8B4vB2iU6DDIPnmOfzurGV1/GJhNViJFjpW55kUX8OoVzyEnnt1neckx3StT6QQ== 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=907gFcqxwqJxvPhMi1m/Kx112gKj18enR/M2Jtan+18=; b=S2D0peU6t0NLuCT/J3v0on+eXE8UiZ/RVJi+aaH4Z5SQG+sx4kpXnz/XcCDwAABNYgcUGdCaoEnyIGE96TZ6lT/EhUli7d7GdreEliz06OlX/efeGlRAe7UlLHKVWz6fGiBLO4Xmgjz6cCzuTO2KS2ecmGqyKD97S7zsgQ7Q/bo= 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 DU2PR04MB8536.eurprd04.prod.outlook.com (2603:10a6:10:2d7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.25; Mon, 19 Jul 2021 14:02:31 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28%6]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 14:02:31 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Nipun Gupta , stable@dpdk.org Date: Mon, 19 Jul 2021 19:29:12 +0530 Message-Id: <20210719135917.26241-3-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210719135917.26241-1-hemant.agrawal@nxp.com> References: <20210719135917.26241-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) 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 SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 14:02:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 92ea10e4-b277-41b6-8589-08d94abdd984 X-MS-TrafficTypeDiagnostic: DU2PR04MB8536: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:813; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3s0pKEfw434K0nD5hz1VkeH/rP8fERPNcf7vrfBhr71T4RYuZcMI09GgzMxlEJTmCiChJlPM1h4jYB6d1E0uy1vKxUT3Z9dK9Lo7IPztUTuI8mftaj6LRaC2a4hywMXszM/jukUIc9dCAu/qPGkmPzieQ9TgM7V+eEclpqVLZ/EoTK7JQ5Q/b20gMonsjx0G6ruFsTdgVO+TSnbeeRZacSJG8UA7nC2FmhfBtsMqJ6soUH/H7FPFOuplmwSRNBVKgZ9k44DN5RdvaLZ75G7UkwpQjcebViHlB/edeaTR7Xf1o3A2uE075rUIxl5ywMDnMN9hK965iA0OHFYfaQYpQVtA6cOF6tfEmzU2ZTXkc48w2DnWQW5Jd3dGCCH50yhFnxHU9hH6lFX9II/VXuKrxnS53D/ptOrfeCRjftipss1WRTR2I3AYWNzTPzMGrZqo6SL0eFlJPONUNUlQ7ZKDGg5qazc2FusdqIvOYIMenQXxkx2ij5eo7phZ2yRxe/Eyfy7UOmGB5KUE/SNbTrrTChMW6lRegtMvSNS46LO519PwEug3KuHd/cQjTiYfhBO3YD4sgS9TKMp0kfo/8JOn76OsR93IB/mrS3YxgwJLo+r3btknI+jZLBB7shrdBtXQdQ7eM65MeyEuHRiZFfkxA92/W7yKuGNadP+3lwAbjN8dyHK7DWaIxHkdL6qK9X7TnFUHUsD3vlZUZpGiXTI/bQ== 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)(396003)(376002)(366004)(39860400002)(346002)(136003)(26005)(186003)(6512007)(36756003)(66946007)(66556008)(1076003)(83380400001)(66476007)(6506007)(44832011)(8676002)(2616005)(8936002)(478600001)(38350700002)(38100700002)(6666004)(86362001)(52116002)(316002)(6486002)(5660300002)(4326008)(6916009)(2906002)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: dg9ueMF4DsAlBUjcDUVgOql1D6EOSLYN0yckM8y+iScBWVPwaAYC1FJkvI5nglA87xhZhHiBObFKLCJ+3V7GkNOyXSDJUSWhJsj/WX5xq/iimIiJ3TgTrgd6uVP4CRJhqOKtHgYIWbfN8l2Vax1xX4uE+A1P0pL7xlhY4bPjwQBazmAkrO667os6Qx536LlLveP5VHkm3FdSPPIuax3rttqGHqQ4tyFc1LqvrxBJpUdh8DWCa8Jtr58PnJwmp9JS2TYfioZXwV9KXH58airVKtIcH7Fd4xYdHfer8+3Oi6J9iWQA2QXeUW/YhravU/1xg0D3Rol02iW/NJ/xRPGhFSos4CWqLTzPX0vCvsXEKsjPKrU97lk9uDVschrbDCl0e+unDGz82tLVUD/HyvYCFLmo1UIRw4VlQtNAOCVwmKfFDG6n1BnZmAyVD8VldGvMx+1WKWiPnqCXPYhBpq9oPMDMQsYR7mBUVysFTqiHiARyjHAEpTUmJDvpycfvz8Y7VSPCP7/gde3TFcyRR9B0xynRFn+ojUC/IqujZRdoCe+mQLC7jx9M+sRJgoQDXaMitVkSy4F203BwOkAPCiyooThgee7bu5IeqdzveMhc8MMA0A9CzWpgIHTqrdMgjca9+udt8PoaOc7RyK4ydKwiqubzK7qkThEWYncUJ7xEdkpup//4wkY3yprZcV/yClONSdCMrVaDyUlYlv/6+y/f81f1T4IY2Dvhrj75J3iQAytU8lteZH8Qm5FW5kM9If2soxXTjl85aLFxzBNVtANvgNUytbnDzcI1ilomRkd+Xvk2Ckv1kwMggHoQIcqXvsiXmkdHTzXaN9nElH+d462bbjJCIQeRMhWTck/bSIq0fdlLFc/UM7Dy03dOlxU4M7PO4GShX9gcL/qtdHbZN/QD+NQEoUuSqNhZzspLpoHNna7/B3gKs+rdrAZT9/xRVqnh1xhCqRkLonBi8MDehYMkf6NnPlwrbxUXwjE5bRPZ/wXV2hgS9l5piEYhl7o9/7bKbXk7ahNzUlgh9pHFmOjPHZCU9jMPZ+YjtYG5GBrgrKCPV3aQPPodIj+bK9Ak1dzAg9i/xBO41vUhLsXBkL+vVJm3Imkw0BKYlsaRxhiCpzm3KE/Bruyyyrep0xuhZZ4sCtCbWvQg9WPJ7e/kUTSGegx+QMARHie1DbSqRdYvBgMz25ivmHmpQU92OkK+z3bnczYhdcgca25foRjugVGFQfOryJDvgRL4DKFF47LTLC5e551uXkgvwrE5OmTgPS3LriiL6ZPFAdbFPUkeEQIUTDOPTYfrp6mm+5V4t0qsYRvE2rDVrjtZ9NaKkhrXauHl X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92ea10e4-b277-41b6-8589-08d94abdd984 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 14:02:31.1486 (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: AFDzB267ykdxP3PTRrtATisUrNKm4ycUPYizAEpoWAeiaOwAayhMRM8wZmBE3AZhLlaZAt6QvNGoIuWiivBTJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8536 Subject: [dpdk-dev] [PATCH 2/7] net/dpaa: fix headroom in VSP case 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: Nipun Gupta This patch fixes providing the correct headroom size when VSP is enabled. Fixes: e4abd4ff183c ("net/dpaa: support virtual storage profile") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- drivers/net/dpaa/dpaa_flow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/net/dpaa/dpaa_flow.c b/drivers/net/dpaa/dpaa_flow.c index a0087df670..c5b5ec8695 100644 --- a/drivers/net/dpaa/dpaa_flow.c +++ b/drivers/net/dpaa/dpaa_flow.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright 2017-2019 NXP + * Copyright 2017-2019,2021 NXP */ /* System headers */ @@ -999,6 +999,9 @@ static int dpaa_port_vsp_configure(struct dpaa_if *dpaa_intf, buf_prefix_cont.pass_time_stamp = true; buf_prefix_cont.pass_hash_result = false; buf_prefix_cont.pass_all_other_pcdinfo = false; + buf_prefix_cont.manip_ext_space = + RTE_PKTMBUF_HEADROOM - DPAA_MBUF_HW_ANNOTATION; + ret = fm_vsp_config_buffer_prefix_content(dpaa_intf->vsp_handle[vsp_id], &buf_prefix_cont); if (ret != E_OK) { From patchwork Mon Jul 19 13:59:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 479838 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4154439jao; Mon, 19 Jul 2021 07:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziKwhs1Zf5bIDH8NaCvYtKB1/5WT9gSfcBigiOc0v6d0IxNYKGVv/kN7SFf3ZrN0nLg/uT X-Received: by 2002:a05:600c:3554:: with SMTP id i20mr27041154wmq.68.1626703372533; Mon, 19 Jul 2021 07:02:52 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id k23si23419263wmj.78.2021.07.19.07.02.52; Mon, 19 Jul 2021 07:02:52 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=pRXXuaXZ; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 59AAC41192; Mon, 19 Jul 2021 16:02:36 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2089.outbound.protection.outlook.com [40.107.21.89]) by mails.dpdk.org (Postfix) with ESMTP id A1F7E4117E for ; Mon, 19 Jul 2021 16:02:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VyrEawbGys9FCUjH+VBgBsZic0LzihGgkQh4jtpwFtiHA+G4iQNJ97M1b9lyqlZMizwWFz2Xw0FLruA9XfTbzTlQyR9RSZg0QCgQjjQ1YtJFLbgwO4Z5OdVt44FQT4PlG6qfg+cCAHmV9dIODlAkffzHj/IGCJe5TjQlCsARJWNlLfQomWZh2swky8DgYQTwVlaBcAx4ebRoX0eL0+awx3nTYE1oEFnxQPO0Vf6exV65wqUKfsxevP4oPsU6jr3ZBZsOitaocmbCJxhQcUztzQKU3ulv1PgmfOQS2RhZjFm5Inw7uXfWtELYXboPeW5K8VgBq804FPN2fmuCKoZY6A== 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=3nle/WLL/PVeJ4A+c2QzbAJBUEsbnlfDjn3sFP0OrkE=; b=NOVIpJ7/N+W9phnSAOXzwJQgNKCqizZIl8yZT2xZblm6vlGpnsAaeWoI2lxRkBG0afXXXIEQfzy+/2/LOzmklnRU7u2YKuu6YRZm+0UJUdFZpr+ptzMTRkgYGtVSF4k/cbh0VdOQ6skfWQgc3vvxcIVabRWNx9NR8lx3NDOl2pERYeY6sqB0ZZjIWMjpdxLl7wsPgn0uug5du2Elr0/mBe6gEC/SIBe5zFvSVzpaufl+fDbkY5V5nR14iLeGRyZBcjcSOG1yp1fJUi2NQzTTcTY2HbD97juIyN7FkrcaGF1kgpfrkivgj3wjrA1Pm9fi3mWhBNRXFCF8/rfUCKWbGA== 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=3nle/WLL/PVeJ4A+c2QzbAJBUEsbnlfDjn3sFP0OrkE=; b=pRXXuaXZak6eHWoK4iw83ZKjR3n58K/EltxfHIZTeIanjbl+jxTKWlY0XJl/mjG8/i4gINEJHpzk1wZ1FQulDmlZYVzohhiAZxWQgKEM40QhK7bJPvY8rjj+47tPwZ37uIe1B/DGCnXrwsqeM8HeyYny9bLoAojymF8e/Q97U7M= 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 DU2PR04MB8536.eurprd04.prod.outlook.com (2603:10a6:10:2d7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.25; Mon, 19 Jul 2021 14:02:33 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28%6]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 14:02:32 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Hemant Agrawal Date: Mon, 19 Jul 2021 19:29:13 +0530 Message-Id: <20210719135917.26241-4-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210719135917.26241-1-hemant.agrawal@nxp.com> References: <20210719135917.26241-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) 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 SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 14:02:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 01da1f31-b3ff-4f0e-b698-08d94abddaa4 X-MS-TrafficTypeDiagnostic: DU2PR04MB8536: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:669; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0KAuJy8JZjzbabonHxrFDkbzDmwm0RKa4xmVIP0B5oaHhArfw9CbwCJNEEM7snqUwEI0NFms8xoFgy1iswRL8z9RxNQfyXiTWD2FEwdCnpiSIDSWD0yfBzxnGoBEtvzmrrxv3xe4A3FhCV8VLBgqdrwg8V1O8lNiYbQ+APsQkXDmsBzAezn2qWdV+SNoaPWP/+2l9GantNBLE4JKW16EbanXbiGol3D2a0ZbPaLOyQeCH7VNxkM65FgwCIT0LzYSibE38hrf4uLVqbGFU3Q4c/1ul6UBC1fHqz6VkCTkzDlzdD8zP2gqmwq1rmICV4lXGcI2XgTYtHmimblqiWAXqHjhUsnXarC/aIbammQ1UHp9xy3vQULfIkgYJCzUQWUMWKtKVBrLd1tQZFFFOSkbwaYFlEmrwb9xan6o0OZgxrI3Lvk5dn7+oI5tcSxgu2emb+62Xo4MYdaUkExxagcN4d1+CZtS8QJN+xrAb9+F3y/xWOikpdvYhef1nLr7mKqdcTPGo9nOli6Uf+kVDzC6dlTOZNokkwnNJu6vHxAlbYS59HfBw+QAQ6PHorjVDJ3OYGLnasMmIPRYXvJI5sWbn4NYbv8SX+y2I9tAt6QzhHxIkinCOiGEgDqM8qvhwKgSDpsrejVyzdBSIqI1p4CM2PuxhawJikSzeAhOR3ykXWJXOV4o9qGSBbYcoachp0Mh8Gc5Utli0a8Qm0z7+kifyw== 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)(396003)(376002)(366004)(39860400002)(346002)(136003)(26005)(186003)(6512007)(36756003)(66946007)(66556008)(1076003)(83380400001)(66476007)(6506007)(44832011)(8676002)(2616005)(8936002)(478600001)(38350700002)(38100700002)(6666004)(86362001)(52116002)(316002)(6486002)(5660300002)(4326008)(6916009)(2906002)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: w3C2eKmBdAiaTlAt7kC4ImsL5DVru/YHOxXcFcM6WZEtUqB4QaGzGJSqNQkV64pk9oazBAlzF7B2qWjyJEz/D58PoSx6ipOErbUhTDSnLw9YBshSTwTnTnXGDxbj75bow99c0T7eWQCmhPkZJVFsrDjfn0oXo7e6NKv9f33WMbqDZoYFOzEWcLTydODufILosrRUns4oDMDVYrX5m8oAPkhmJsf+jVka3Ezo/OPnTzHh48BSacyvfeW2/prylH3HSuE+EG8FImvHz3NHdnr9Nap2lVIMgx2aqZAdsRCXidBM++OfJEZVWvdduQ0XFnHBuNonmpfUQUtCp0qzdA3P+XcDhbSY0Vs85/N/b7OS9IMVj+5H1o1/ZZHsP2+4kUF8URSQ/6Wf3hF9dgPg09OmGGqqqMJAojVRX91IoaqG/zkXuw9qzEf0L6HYFgbhvY102zIsx401zgLsNxiSxfYKrpU+pPdgLFlMb5UN1o0wOuP68me0h6pgnKqXR/oa+ZWiXpCbOm9p4akJYRXYD2h7DzwXi0x2Ofc9TOlzTJs9RZmhtWLXt5yc8fbdowZ2ZUAs7gQVk9tPQ+QHqVzSXuILc8PCPA5vYLqnOYZWjB6lMKVrfLJRHg7kSIVPtaHl7vF/DDUV/FSNJSJKpsGAjaylw6etnmNn4mWxZH8qORWCnTJYPGgEsbsBvcIOImRpX3XFPyoFt2Ih8vXeRVEtdzNuDrrT5IkmOhuy5lIgKYls52JBZANum0VCUXJAEv/GxZxguOa5m6sTmX0NyYPYPdIB4+REVUqE+bi9+qeoi5whnh762nVAOtNWryV1AjNzQVTIuNFovSBh7GQQ147T6sbaaJJboq2Trj5WxCiU9QuX1WMiKALUerfyLXhAJgz7X/Ayjddk67rA3F5QWfGqNfvdw/enBU/mSh9RE6MrFsji2N3A66rlrrCQTeqg7nOvmssdOr1fe45YdEczHVJIhE2IxoUNl7DG7lNArCxoqwirjOOyuhVfTOooiTjaqK9uFVizAlkXi5wlmzowkPAMG3O50L3qS8KlCFO8KCrSWFbeclzHy2uPOfvyP7JAa3/c4VBrDzY9yIn+41FOXwqG3wuosRZH4INXQE2KEMYDzyDEQnY+CctKATmR/F/CdI8yn3iyaHv5mZRxnOKrthFs6bbQrMJIu3AAAp7jZxCQasaLyMY4piVdxYc4UqT2b1gLNVGoMmf4SelPVSB9BRs7+gtKKyXiaIQZK61OuWG81+XSUxHiUTZ2YvsnpHbOeIOHHt6Xu1Tx5qvQzdN5vNPUQPL5j4p4cAEkxpEEyFmNsHDl35TOpr5lZS8sSbZNWWhurn1K X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01da1f31-b3ff-4f0e-b698-08d94abddaa4 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 14:02:32.9248 (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: G9fzZotXg69hN/Elpo/g6dom8SCF4TV/YqEca+R1wOiM/cQK7YM19xNO5r54m8/J+6htf/jdhBPfHOpako37rg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8536 Subject: [dpdk-dev] [PATCH 3/7] bus/dpaa: reduce syscall usages 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" Reuse dpdk rte_gettid instead of syscall. It will help to reduce the dpaa portal allocation time. Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c | 3 +-- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 2f48d4036b..e499305d85 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include @@ -314,7 +313,7 @@ int rte_dpaa_portal_init(void *arg) DPAA_PER_LCORE_PORTAL->qman_idx = qman_get_portal_index(); DPAA_PER_LCORE_PORTAL->bman_idx = bman_get_portal_index(); - DPAA_PER_LCORE_PORTAL->tid = syscall(SYS_gettid); + DPAA_PER_LCORE_PORTAL->tid = rte_gettid(); ret = pthread_setspecific(dpaa_portal_key, (void *)DPAA_PER_LCORE_PORTAL); diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c index c6f8312a1d..c224a883ae 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include @@ -278,8 +277,8 @@ static struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(void) return NULL; } - DPAA2_BUS_DEBUG("New Portal %p (%d) affined thread - %lu", - dpio_dev, dpio_dev->index, syscall(SYS_gettid)); + DPAA2_BUS_DEBUG("New Portal %p (%d) affined thread - %u", + dpio_dev, dpio_dev->index, rte_gettid()); /* Set the Stashing Destination */ cpu_id = dpaa2_get_core_id(); @@ -310,7 +309,7 @@ int dpaa2_affine_qbman_swp(void) { struct dpaa2_dpio_dev *dpio_dev; - uint64_t tid = syscall(SYS_gettid); + uint64_t tid = rte_gettid(); /* Populate the dpaa2_io_portal structure */ if (!RTE_PER_LCORE(_dpaa2_io).dpio_dev) { @@ -332,7 +331,7 @@ int dpaa2_affine_qbman_ethrx_swp(void) { struct dpaa2_dpio_dev *dpio_dev; - uint64_t tid = syscall(SYS_gettid); + uint64_t tid = rte_gettid(); /* Populate the dpaa2_io_portal structure */ if (!RTE_PER_LCORE(_dpaa2_io).ethrx_dpio_dev) { From patchwork Mon Jul 19 13:59:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 479839 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4154569jao; Mon, 19 Jul 2021 07:03:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYusq4m0vyrPm6xoFEl4mmlP3Tma0vY2sPU52S2LFJssMwaCxzdYesuKlaaY+29p2otugf X-Received: by 2002:a05:6402:1242:: with SMTP id l2mr34229891edw.97.1626703380429; Mon, 19 Jul 2021 07:03:00 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id g2si2834713edb.596.2021.07.19.07.03.00; Mon, 19 Jul 2021 07:03:00 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=dU2qpESn; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F4CF4119C; Mon, 19 Jul 2021 16:02:37 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2041.outbound.protection.outlook.com [40.107.21.41]) by mails.dpdk.org (Postfix) with ESMTP id 649D241197 for ; Mon, 19 Jul 2021 16:02:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GEP9H8/LtHKp2A1lC7M5GVlwYMuD0zuNGkRlYf94DH1IvqXrfewv8IxSy9EBPBE2QfqpHm2Q8qZtyQFMvQWEY/JieBymeGawY7dqpHyQourebF8u0B50oQVwYwnBWmgJ/QgxRQwo2TAYxPCHkgnE4g4RE2B9W6BbKtTH+gJO4m4ek6Y0OweRx838Fm0NvoV0HazI4aiIO4PUmEK4wAqR3WbiYJgatFfQ6M93yIg+0VJOXGDbHZCMzUPhnTzpL2tcSuu5eQ9dWyCSA8hDYW3bQ1C9tEumdzvRrKRFo+i02vQyNsQ4mdVlZNzMCcBFk4J0SsvAjedATbxpmkKZc+DBUA== 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=saH+C/SQIS0BJK42ggVhfu3qYFzdMz+gwVIe1sSbIBA=; b=kTr4xFVbPUzg9n5vlSWH1bY6MxdZIKY27WGwrmrx+bHwxeSvK3d5mm6g29ja76w0/HWdhclKbOwJ52uEEY7gZPTmp28LGNh8mPCQMK20NcTOKpxJEcMn6JoYECh60f/2KKoGJtdpcY1HaU7tnBhPMmIbuIyXSrVfVa5Zh2Lka9M2lk1zXpB77T3V+3+594owC+9n8so1OXdjf2Glmxive3A7n1R373gC8//SqOpz6nGEhEOsUsk6q54Flpz23IJ696abEi+dRE8MKZkcQ4pYwVcs50vPSkZZ89yuBfWrR4993zv3zdjxbF8L29/RPm8/U3ILXNfulA9AaGeosbvvlQ== 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=saH+C/SQIS0BJK42ggVhfu3qYFzdMz+gwVIe1sSbIBA=; b=dU2qpESnnoIkUVGtXVFApOwB0ZYF6YLYkvBDRYHuV4IZjPynbpsrl6SnoilKguaS+zr6Z2d6fe0uoXYQcDDXustrNlj+GJUJ6GjooMKhb6GAisT5tK2hnixjHudeCuxRaESR520oiQVG5FKziSEgdm+97bHT0H1Y8AIQcsY082U= 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 DU2PR04MB8536.eurprd04.prod.outlook.com (2603:10a6:10:2d7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.25; Mon, 19 Jul 2021 14:02:34 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28%6]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 14:02:34 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Rohit Raj Date: Mon, 19 Jul 2021 19:29:14 +0530 Message-Id: <20210719135917.26241-5-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210719135917.26241-1-hemant.agrawal@nxp.com> References: <20210719135917.26241-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) 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 SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 14:02:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6258f99a-5685-4619-759a-08d94abddbb1 X-MS-TrafficTypeDiagnostic: DU2PR04MB8536: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3XxS+K/1ekI8MifePCAE/rS2AJ4Ku3xfOVgvM4HlSNDa4e3MInsP/ve/akYs5PXpreYu4HnuoTB0SjWv4ON2mv1w6WihFpSKDgeKSRtFrlRJ4gaCRB2H0FYPmC/Iu0MJ4kkDKdlkNn0XrVUu+r61XkwfXQGpV4D/Hu0UDZhMYMm98D8nt4uwHNeXxHbo1XhAhU3/cUi4IhZDoONjNM9YZhXy/l1i3CCNY2Qx30TxIprtkF9Zz79siYr2HLMoBBNuS53N90oBmVpRukwAXZMHwKszT8Rwa3CrMhp3DCdf/8ppu5sCOIcRti5d95MT6zjDohXelS3/l3KCd46WGv1lpuOPhD6OTtcmZQ71yS2iUeZ5k4jhpbCUg54SUllXAQdNgrWWfEaR+Fo7nhqge3j+bBp5gbpWKDmzVbeK9aQqSALZP+V38BLlPutXZSfQAXXLS+yEirKcpQAwZBCF4IvHj+wmi/5/yJNHvcN1fncR441ukeuW42QbUSf/cvUN1DEQGzz7P21mcMpU/KHf7Ykpiewf9HVV9jV/dIwKRf1+i3qXdzB6BPwKZO/aV4O/DBvuk4CLxYJNJ0ljbbld0TEFYwvkEGLGcOH38LajPoxGmp3xw5S7lLlP/mKP7YWFa1P8s8qkDEm2oWF1EASbze1aU9YNdxotEZovKOUimgysBJyVtWBZCqrrFgaDZhoUF2m6DHOWUw7NEN02OnvGKqv1Fg== 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)(396003)(376002)(366004)(39860400002)(346002)(136003)(26005)(186003)(6512007)(36756003)(66946007)(66556008)(1076003)(83380400001)(66476007)(6506007)(44832011)(8676002)(2616005)(8936002)(478600001)(38350700002)(38100700002)(6666004)(86362001)(52116002)(316002)(6486002)(5660300002)(4326008)(6916009)(2906002)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S46Fj0AXimfdUE9vjD4WHnlfXLork3vANsvZmwszezO4D5qjaTzdObfmUSocOI3XYIXbz3nc/QgilMKNZsThyyf6U08971YIpDliWWyRBO70s2Zz7vxTopFGMhFAO2/4fySfYWzfu9B6QlwZz+9gWNH+r0/CNsA0dxYQDmeGXM3G6l8ITxzwr9naTcByRQZYPC1zcyhhmb8SbazO6ALfcLG3OZohA5NS+VgfuQPPAd7QRl35f1dSqzAL4OTdkZEyRCgIxJgd37KIwwDQ4O39YD++w6N14aEIUs2T4LFQErlads0dovlifs/+4YEkV6H23WL5mDtyzzKfgox8hjrLq97LGj8SFAo/Mz5tulvjS/6T0q0Q6rg2eMdWGtvOWuAXZ9n57NWCgimDSIUMhvI8FcZp7ZWtZj5/pg3jVDzrcFRmKNKhoXMOAmkd39CExYI92mAXRDH2yh+Gr8e9W0VHU/M+HwO9yoxYPX6kDXE1+Paw3ylSt1uKeh4lMQ/q++78Pcb7jLhFGtITUkhIFwOJdjeSEO9vpwZiyv5hRKU1lYVWQTk3dA0PjQUJB2M1QASaccb2SnP8qTqPu2nVwxMvvjfe/iTdtjlo5p520U+ETqTG1gI2nc1WFwVXRMj6vlW84FCKfdEYZ0nkx7pdfN15MC8e5gRCWpXlk7kc0Gewf+5tGTGThfLRs7Y8OCDx1na33C8jKAYjp9PG+JBqnBefZde9pEclTMttjx01XmQaVIsXcKq7kontByoJwvW0SVljTQfc5FQy3/oUgBJGVWDl+1+NzhjCvOjiJIYcUprJhhQCY4RpdzrYpGxkAjtcpk9rpi9MGTNebjR4KaY0zneo2RTPGFMEFtJkqAveEMP6vqU+yn7cHUJzEFn75y1kylLgVWCl6Gti3jnIRx9Qzg8X0/znTLBnZMLwanVpxSzXiMGgfWss8HnVUDjc28yjp/HcKcx3/zfNSD4eaiYjLRGvW2SKIW3hKd9P6Ea/e9Rr0acOhoIhpqrlqB2tKg3TSFRw+fBdwgCpGYFlSNl+d2Dxa5yZKWJ1cerdX1KDCp15yynOlRyQ99RzyAWIy6iiELKokapfAJ4jkdomQBvYOPp1Chc7LYG+x6GtX5hqS1Shyh3XOCNPbicHlhB+8sCfzjrYehqge7AVIZKLuIpnNYhFJSiwDOa+AOQ++meCkucQjUpF9AxDQyCNdIf4T6EVL7WmrZPt3Mi9wDxvLCT5EHTl8jI8MufMFtah8YqskUhrKUAlVJC5350qwUTlJJQpB1YzOhBuYBrgPeRHFxEqwjfIZE0dKwHoZy3vow4jSwdxMjxDZ9T4TG0AagKyuHE6b7mV X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6258f99a-5685-4619-759a-08d94abddbb1 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 14:02:34.6572 (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: eNfOtY3Zc1T5vkOOTVO6AMiFHe2tZ68R+6uXSSsealsX+57pdfWGSMwPBHM7/19alQCjUE5LOTrPlCjri3Kpng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8536 Subject: [dpdk-dev] [PATCH 4/7] net/dpaa: add check for parsing default Rx queue 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: Rohit Raj Add check for the PCD queue from the kernel interface for default and error queues. Signed-off-by: Rohit Raj Acked-by: Hemant Agrawal --- drivers/bus/dpaa/base/fman/fman.c | 16 +++++++++++++++- drivers/bus/dpaa/include/fman.h | 7 +++++-- drivers/net/dpaa/dpaa_fmc.c | 5 ++++- 3 files changed, 24 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c index a14004d7fc..1814372a40 100644 --- a/drivers/bus/dpaa/base/fman/fman.c +++ b/drivers/bus/dpaa/base/fman/fman.c @@ -214,7 +214,7 @@ fman_if_init(const struct device_node *dpa_node) const phandle *port_cell_idx, *ext_args_cell_idx; const struct device_node *parent_node_ext_args; uint64_t tx_phandle_host[4] = {0}; - uint64_t rx_phandle_host[4] = {0}; + uint64_t rx_phandle_host[6] = {0}; uint64_t regs_addr_host = 0; uint64_t cell_idx_host = 0; uint64_t port_cell_idx_val = 0; @@ -511,6 +511,10 @@ fman_if_init(const struct device_node *dpa_node) goto err; } + /* Check if "fsl,qman-frame-queues-rx" in dtb file is valid entry or + * not. A valid entry contains at least 4 entries, rx_error_queue, + * rx_error_queue_count, fqid_rx_def and rx_error_queue_count. + */ assert(lenp >= (4 * sizeof(phandle))); na = of_n_addr_cells(mac_node); @@ -519,11 +523,21 @@ fman_if_init(const struct device_node *dpa_node) rx_phandle_host[1] = of_read_number(&rx_phandle[1], na); rx_phandle_host[2] = of_read_number(&rx_phandle[2], na); rx_phandle_host[3] = of_read_number(&rx_phandle[3], na); + rx_phandle_host[4] = of_read_number(&rx_phandle[4], na); + rx_phandle_host[5] = of_read_number(&rx_phandle[5], na); assert((rx_phandle_host[1] == 1) && (rx_phandle_host[3] == 1)); __if->__if.fqid_rx_err = rx_phandle_host[0]; __if->__if.fqid_rx_def = rx_phandle_host[2]; + /* If there are 6 entries in "fsl,qman-frame-queues-rx" in dtb file, it + * means PCD queues are also available. Hence, store that information. + */ + if (lenp == 6 * sizeof(phandle)) { + __if->__if.fqid_rx_pcd = rx_phandle_host[4]; + __if->__if.fqid_rx_pcd_count = rx_phandle_host[5]; + } + /* Extract the Tx FQIDs */ tx_phandle = of_get_property(dpa_node, "fsl,qman-frame-queues-tx", &lenp); diff --git a/drivers/bus/dpaa/include/fman.h b/drivers/bus/dpaa/include/fman.h index 516c6c1515..3a6dd555a7 100644 --- a/drivers/bus/dpaa/include/fman.h +++ b/drivers/bus/dpaa/include/fman.h @@ -2,7 +2,7 @@ * * Copyright 2010-2012 Freescale Semiconductor, Inc. * All rights reserved. - * Copyright 2019-2020 NXP + * Copyright 2019-2021 NXP * */ @@ -329,8 +329,11 @@ struct fman_if { uint8_t is_shared_mac; /* The hard-coded FQIDs for this interface. Note: this doesn't cover * the PCD nor the "Rx default" FQIDs, which are configured via FMC - * and its XML-based configuration. + * and its XML-based configuration. These values are being parsed from + * kernel device tree. */ + uint32_t fqid_rx_pcd; + uint32_t fqid_rx_pcd_count; uint32_t fqid_rx_def; uint32_t fqid_rx_err; uint32_t fqid_tx_err; diff --git a/drivers/net/dpaa/dpaa_fmc.c b/drivers/net/dpaa/dpaa_fmc.c index 0ef3622744..5195053361 100644 --- a/drivers/net/dpaa/dpaa_fmc.c +++ b/drivers/net/dpaa/dpaa_fmc.c @@ -243,7 +243,10 @@ static int dpaa_port_fmc_scheme_parse(struct fman_if *fif, uint32_t fqid = fmc->scheme[idx].base_fqid + i; int k, found = 0; - if (fqid == fif->fqid_rx_def) { + if (fqid == fif->fqid_rx_def || + (fqid >= fif->fqid_rx_pcd && + fqid < (fif->fqid_rx_pcd + + fif->fqid_rx_pcd_count))) { if (fif->is_shared_mac && fmc->scheme[idx].override_storage_profile && fmc->scheme[idx].storage_profile.direct && From patchwork Mon Jul 19 13:59:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 479840 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4154686jao; Mon, 19 Jul 2021 07:03:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh+T1zxIA7ukmZLvjtNSZjWV0jrnjm6+WhPa0UpT5bRSSrDVxuAxI2h/hCDurWxhDwk+iS X-Received: by 2002:a17:906:f743:: with SMTP id jp3mr26869456ejb.370.1626703387587; Mon, 19 Jul 2021 07:03:07 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id t10si20352409eju.92.2021.07.19.07.03.07; Mon, 19 Jul 2021 07:03:07 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=qqUcnw5+; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7C09411A3; Mon, 19 Jul 2021 16:02:38 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00078.outbound.protection.outlook.com [40.107.0.78]) by mails.dpdk.org (Postfix) with ESMTP id 116144014E for ; Mon, 19 Jul 2021 16:02:37 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UfTRoE8RoRyiqklzKOZeQOQD1IPXLZsv9PgqHdhGxQif1AAbf2CDVmfmh2ayqdXXj2be3FLqiSDr7taXaUOVIFEZp3AXgjIl1PPtEBfQlZfJGyJRPsyXgMbOO+gSRVMil6iUty3OhKIEogNQewt2z5SRxIGWlGCdU2fK27eGAl1PtLTIUjDcTRJqdvE5YkDnf/lQhtA1BKixhDI9rBEenBg65iFmhzje/DLyAmVneoCl+P1khi4Vat3PmOUMIwZUgLBJC64BEKblzve2GusHcqZtRVyR9hJDpE6c5QMwPtin63UJeg7mFP8iegjIbADjQqwkn/o+wHAhtL97mOr6GQ== 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=fVTh9SGQD6IyFRR5I6qvdtBfeVqXBkT9iT9HR0RzIc4=; b=YKVu8hJR0wd0Yz4sk0Yq4cR5xwW0DgrH33VrRM21PqlyGqgNg6Dclobofz0lBKikNT+fi+JXa9/eg5aqdGMigxOraOAPYqY0H1OMBL3CazblHTk6e/ARlP766e0iUqCTWkgjvJU91huys7kFmGXTEy31ZDH/TWGZwzhbRwCp3pgayALOWvrnTgV4xFg1e3ZgCEjyuCSBkulqwlSMMey9x/WyqPWDetNsXhSAw8CnQYX5fQtX8MGdVqe4ttV2E+a8SU3zSHKgEyc8Lgtz5OykYtGxigTamkAcrz+jA5acS6pJNaUlXAAHWl2pl8QO681EXfi1WA2ZYuEiiLuKkfQgQw== 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=fVTh9SGQD6IyFRR5I6qvdtBfeVqXBkT9iT9HR0RzIc4=; b=qqUcnw5+PsZwTJBEzJRDgzxlN8av0XqQDo3u721gMRFmi8WdmDS4cl5XtbBSZtNPOFdco3iyU+cWEUkWY22anqt5GCGdRI+U2Abxfa5qiRYtDliLBJ8GZhCPqYkD4drnf+k+lq11Lnh71V41+cXBC+lU3JRerAycEudmstETbEY= 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 DU2PR04MB8536.eurprd04.prod.outlook.com (2603:10a6:10:2d7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.25; Mon, 19 Jul 2021 14:02:36 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28%6]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 14:02:36 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Nipun Gupta Date: Mon, 19 Jul 2021 19:29:15 +0530 Message-Id: <20210719135917.26241-6-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210719135917.26241-1-hemant.agrawal@nxp.com> References: <20210719135917.26241-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) 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 SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 14:02:35 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9e28ff57-bf82-43a4-d688-08d94abddcbc X-MS-TrafficTypeDiagnostic: DU2PR04MB8536: 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: gYgrxlaD8mFBS1Nh41NpHCCLCcB5d6i1Mrv391S4ZzvkO5vFDnQyfEm9mxqOujLpHMW5IJUV/BwpbvT4+LKyUPiMtT9ZltkPwAHLI4g6jKuOOEQKYpOdpooLI2BA22K57rFV85IM7ieXum/GPMnKe/R0HKzjna4uP8Wj3KHmsj5Qeljq/wl5Xe5ZSBdV3D1I0vbOpMEWzIkKfu70KS19WY4jPvQx4CVloRQT4UJVAVlRsIMz4+m5sD3K1YQ7pzsSEXZzFpqAKDJSr9cvnQRFeRwF87cKb3/d/TABKYjk/7lG/8oWynBPkIY01CYcqBN3aPdS2aiWJblQlt0ftJ4Qht6SdtSMJdu9ZjSG/3TGVIw9xxKDPmWaLb6GXjbQ2ZBE44st2Kzpk3seYb7s3KlDvnif5caMEyxmUG3ma77fK0+Mgnz0Toixi6g5mGsqi4ivjC0qj22t3r0ZGIML3Up5+pY+XmL6pv6/6EeS5yNp3tUqpuW1WmmuD6QEqO2LHq61lmkmtfl82b3URIzFcMkYwBPFqWVhcgJt/Wdb7IosQ7oa7o3JTsyIwyoMwQhRI44okzZFokZWeKjNSGpCHmN33ADzckbSSyYX5wPb7cFkLMDKCaV3UvsU/N8HKMySTdoScNVh4c1aqj5R0Qpx9IKGAFrUBjvP07iB0CQODnd3mKeh1WJP+DNHYDne7/ZNxQw4A54lkk1R0ABFVQJi6pC/Wg== 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)(396003)(376002)(366004)(39860400002)(346002)(136003)(26005)(186003)(6512007)(36756003)(66946007)(66556008)(1076003)(83380400001)(66476007)(6506007)(44832011)(8676002)(2616005)(8936002)(478600001)(38350700002)(38100700002)(6666004)(86362001)(52116002)(316002)(6486002)(5660300002)(4326008)(6916009)(2906002)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: h97YSZVi0jT+M7MsN1gAeSmf/4Sf9GcOkf7oW40NcWmT1BPUEDKB6yWNct+gapxtEyOkew6go4lOBi7q4tEhq4f7tkix3ILAkVAlomm/8fFlruwOkcQpyNj/H/AEpyguR4Ztciso9TCBILtxdnWXQBDd1uWh1YMfAGhpoeeeVp0OLPi905A63P9sl/NTTpIP0wFgMxA1O6HeWZnEvEFrRE6ZFGH4K85qNl6w/I+SioFEhQi9oDoFO44vB2jFuK58Ayv8tshHxMZGMQ27sZ94n9rNC2+U9SYdZoEGGXG3NT5eOksEtONakwkZ4NtOr51thUcO7M5T8knxVcGameBgFtq48qg7wzFWFU4peYL5ctGCBnGgR1YKAW1dU/2k46jDhm0TydcixgtXL/KQstG9FCI5ZbfDoFw+fHaYy52OFSbxLfoDpZq+232X9Yu71aEsCbp/EjUX1teeV+hdnGAr6mjUZ/1UArvbn3IbkVulNI9ZG1heqq347+GuG5d25/iqPJGjtfp1x6vA6HFrh07bqr1/lwwQb1t3shaU7jXdEvWM29Z9UryzMxy4KNk6zH0i00/VhXSi31NapUVcCo5qvBx/CcHVZdeeGvmJQXOyEQI1EPEpMgOKVCmjts3qk1MPCNmi1V7WzuDhdwYKKOXRwQuBNfNYbqg2p/6xciR0b1tXtLoW4Xk2DwFtiHHt8kDBI9MQucOZuEeJ3avu6qtBeTE90mP7u6Ng4PkVZreKQpNcWlzsDdJqLL31X/kaY265ECbRuXdjSmSjGT90STlpih29pavY5qJ9lRIPAmXWojw7oISlY85gw8F25W5PvEMJl1IJwSf9qfyHsC0gLmxYR6Y3jNGKselcMJGMo8wpfd/UC/YKoC2R3sLSkfrl4Oo7Q5lZWHNm05od88qx/O//f23oZS5TO+TmB9eAEDuhhxxSyMCYMQo6m1A6t7t+7wsn7TlPsX3HcBLC1c3IuOI6RPh5RjlfGe8cvVYizngsugkmtgya0KvF9m9j4PJbJm5+U9N36nSD3VdM9fVJua0dSwisSmj+XIC0F2P/xwuhFWFFYMpQpr6iGtmDzNi0rRwlWgs9m8WhEeS2OAM/HP3GIZWg8dMqBH50K6NB7K5qX+bhXnoQQSxXOS4f6JQhLTjOfmEhdI4EAaO9sgGmAYRUXqqbPaZ9jCc7SnJ8eI+3DYNC45mbroZa+DHrqIaqXE74iCrpoG5UN5WBJjdTMvIsaO/0CsmgxH5bzlQCnzfGjJRDtXstHnd1LmKVjNg8nNGgvGOw2OFTYfknRemaxUNGxofp48JfA0jYstc4MhDCdrCs8DtsFHC6NGS2tnAa+qK7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e28ff57-bf82-43a4-d688-08d94abddcbc X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 14:02:36.4214 (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: 2yHtYrRwz/nQCuImenzjSjq8YWiIIIvSyH0j6y02ZH9AL7YmVD0jKsGI6QJyCjCKyhgGOsgRdbFcWnXbQ4Hc9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8536 Subject: [dpdk-dev] [PATCH 5/7] net/dpaa2: add per thread init PMD API 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: Nipun Gupta DPAA2 hardware require a hardware portal context. If a thread doing DPAA2 i/o do not have portal, it will allocate it on run-time. This may cause a delay in the datapath at run-time. To avoid it, it is better to allocate a hw context portal at the start of thread expected to do i/o with DPAA2 hardware. This patch makes necessary changes for the same and creates a pmd API to allocate a hw context portal for a thread. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 10 +++++----- drivers/net/dpaa2/dpaa2_ethdev.c | 16 ++++++++++++++++ drivers/net/dpaa2/rte_pmd_dpaa2.h | 10 ++++++++++ drivers/net/dpaa2/version.map | 2 ++ 4 files changed, 33 insertions(+), 5 deletions(-) -- 2.17.1 Acked-by: Hemant Agrawal diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c index c224a883ae..1a1e437ed1 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c @@ -20,7 +20,8 @@ #include #include #include -#include +#include +#include #include #include @@ -168,7 +169,7 @@ dpaa2_affine_dpio_intr_to_respective_core(int32_t dpio_id, int cpu_id) fclose(file); } -static int dpaa2_dpio_intr_init(struct dpaa2_dpio_dev *dpio_dev, int cpu_id) +static int dpaa2_dpio_intr_init(struct dpaa2_dpio_dev *dpio_dev) { struct epoll_event epoll_ev; int eventfd, dpio_epoll_fd, ret; @@ -205,8 +206,6 @@ static int dpaa2_dpio_intr_init(struct dpaa2_dpio_dev *dpio_dev, int cpu_id) } dpio_dev->epoll_fd = dpio_epoll_fd; - dpaa2_affine_dpio_intr_to_respective_core(dpio_dev->hw_id, cpu_id); - return 0; } @@ -242,10 +241,11 @@ dpaa2_configure_stashing(struct dpaa2_dpio_dev *dpio_dev, int cpu_id) } #ifdef RTE_EVENT_DPAA2 - if (dpaa2_dpio_intr_init(dpio_dev, cpu_id)) { + if (dpaa2_dpio_intr_init(dpio_dev)) { DPAA2_BUS_ERR("Interrupt registration failed for dpio"); return -1; } + dpaa2_affine_dpio_intr_to_respective_core(dpio_dev->hw_id, cpu_id); #endif return 0; diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 8b803b8542..d892819a7e 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -2382,6 +2382,22 @@ dpaa2_tm_ops_get(struct rte_eth_dev *dev __rte_unused, void *ops) return 0; } +void +rte_pmd_dpaa2_thread_init(void) +{ + int ret; + + if (unlikely(!DPAA2_PER_LCORE_DPIO)) { + ret = dpaa2_affine_qbman_swp(); + if (ret) { + DPAA2_PMD_ERR( + "Failed to allocate IO portal, tid: %d\n", + rte_gettid()); + return; + } + } +} + static struct eth_dev_ops dpaa2_ethdev_ops = { .dev_configure = dpaa2_eth_dev_configure, .dev_start = dpaa2_dev_start, diff --git a/drivers/net/dpaa2/rte_pmd_dpaa2.h b/drivers/net/dpaa2/rte_pmd_dpaa2.h index 7204a8f951..84ac9d38d1 100644 --- a/drivers/net/dpaa2/rte_pmd_dpaa2.h +++ b/drivers/net/dpaa2/rte_pmd_dpaa2.h @@ -84,4 +84,14 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id, uint16_t offset, uint8_t size); +/** + * @warning + * @b EXPERIMENTAL: this API may change, or be removed, without prior notice + * + * Do thread specific initialization + */ +__rte_experimental +void +rte_pmd_dpaa2_thread_init(void); + #endif /* _RTE_PMD_DPAA2_H */ diff --git a/drivers/net/dpaa2/version.map b/drivers/net/dpaa2/version.map index b50da13bcb..49f69dacd2 100644 --- a/drivers/net/dpaa2/version.map +++ b/drivers/net/dpaa2/version.map @@ -6,6 +6,8 @@ EXPERIMENTAL { # added in 21.05 rte_pmd_dpaa2_mux_rx_frame_len; + # added in 21.08 + rte_pmd_dpaa2_thread_init; }; INTERNAL { From patchwork Mon Jul 19 13:59:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 479841 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4154858jao; Mon, 19 Jul 2021 07:03:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDzpIZepZbGcdxDqMG5s2BH49GKGSZbb6lqqQ0GRLECi/ditboXuJcqWcAXVKn1uXdQcjK X-Received: by 2002:a1c:a58b:: with SMTP id o133mr26439032wme.160.1626703395963; Mon, 19 Jul 2021 07:03:15 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id e12si9471074wrq.302.2021.07.19.07.03.15; Mon, 19 Jul 2021 07:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=GwNjoLyc; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 52A56411A5; Mon, 19 Jul 2021 16:02:42 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20046.outbound.protection.outlook.com [40.107.2.46]) by mails.dpdk.org (Postfix) with ESMTP id D110F411A5 for ; Mon, 19 Jul 2021 16:02:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P5f9qZ1XnuSI0+Hp6Q19hgQdYGVNbLHVHaEvS9j9T9ksEy4VxL0tOayl4pN34Y3swFFvsCne903XjG4TaNEQ6sG390cdTed5lHKXNh6ft8JmObUc3uZgfWFK/1UK0X5WUhD59hFds25mYVPRHR8uBUy2JdvKJC7QFiR9f15SdJySToH5yMC8L4wwo+e/0LZrnue5i52w04dS8yXS3wr0/iep8eMSS38wsYk2m2sXHu1X10YGlA+L7nNdby38Xw2D1dZ0MaqgGLVavgIwZ+mKRZyWODBTWESv3QC8Tr9D2HDPu0qUTjRLyQGQuRUkDmVOaLug6kqPbz2T3+Cv5INJqQ== 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=UVu06kTWYfE5QXohBSFrIC8CEeYPBfrHa3YsNHBXwxI=; b=l1zczs+NyCahWUmpoAdfq7Im9bHXht/urTiaVbQIAe3DZPgmAgrbH+K2xJRFAc/r6H15jKBoPY9jXIfyIug76BT94RpAPSz3J1mU5zhm4+1COIvSLcrCqe4armUS4f5nj0WTTWSpfowQaZF74X6zPp82CvJlSTejjzk2PEVxrCLfEvRb2YHy+VRJ6dEM0su336evOh6FDq2GuemxTWs6BeyCAph6ymm4SWugX0oGa0QgU9OtxOeuZUOdsmOCDETOdCGemQhw31+Y22OMerddKBlMHLihQbGHW6H7bEAB1lMOteebw5WNfogHhwSXlClv5Pj86BCJiS1FARdRGDKb2A== 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=UVu06kTWYfE5QXohBSFrIC8CEeYPBfrHa3YsNHBXwxI=; b=GwNjoLycRSKUb0yz/U0hzKvU42G2dgVE+XkYWxy74nwBTu/R7dCAO52KGmmBmvBMXrRcmXCOY1dDOsr1xYEigrlBB4Iuhpt2coHzlr2h7pOT3u567aJVZMcsBhrYWCVAAuLlv4GUiGKcDmHRMk5OJJuHGT3HGlUVRzcSlqlQ9IU= 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 DU2PR04MB8520.eurprd04.prod.outlook.com (2603:10a6:10:2d3::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Mon, 19 Jul 2021 14:02:38 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28%6]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 14:02:38 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Vanshika Shukla Date: Mon, 19 Jul 2021 19:29:16 +0530 Message-Id: <20210719135917.26241-7-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210719135917.26241-1-hemant.agrawal@nxp.com> References: <20210719135917.26241-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) 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 SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 14:02:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2885497f-58d2-4ecc-3118-08d94abdddca X-MS-TrafficTypeDiagnostic: DU2PR04MB8520: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2582; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KkF7KsYQd6/ZR89EiTyCcigFVKMn7EVI4FqazVHNoWsGiyvoUL4Prjy/c7+sGYY49FiO1Pz/0dTn7O59zX2xTyrWDrDuvUIfL8IbStrWzlniuSZOlIlIL7fvL6bHB63xooG/oGYWcH+Pp60tCj8pOg8h2mS8D+T4nahBkht+7XWH5gcZKYvwKp19Qz/ziOi/Ov8ZawdIWDicwd3AWEoE+Wlqx3HG66iep8MItO/hbon7TLHaN1+9dczFJvr4dLvxD9sr7b19RcNlQxh6yOaW02agMOJhFgHkG0wAWwDHDfEh6BwuPKYHX+TfJ93KCzkCfeKDi+OgdwXzfIe81s8C6wVH+kgGhRtvd3rvH6+wW2OgY9YOnLAze4SniU6AcJPnBG/ctEG5RIOWSDOJpc5NiGMuFMRyEIge7nemGxJJ2DaXv34SiuLdWbzdXaVh3h5CqIqy3nzU3g26wjo9GgETOhGneDFxBFnnjACckxBc0maqz3ln1U0uOo0cR3t+lCTta2wD4ESkmlHgokSmdcDHOmKdmegK4bj7fNzDYS40a0NU3QoZOXOy08MftyfTqOFdLOtxwt0yZSSg8zrEixYNUO8PRUpEdiHuYLFmd18D2PDvBdV/MC9wbWfCD3tVXwPqo6vo8kZ/qwyJnXGGB2+75SWcwZlyuWt4UNuPcGzsL/tHSnybJdbCGVvu6q3M9lJm2wD7aLHiC2Q/DOuh9QGDog== 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)(39860400002)(366004)(136003)(376002)(346002)(396003)(6486002)(8936002)(38350700002)(38100700002)(956004)(8676002)(66946007)(44832011)(2906002)(66556008)(66476007)(5660300002)(6512007)(1076003)(2616005)(316002)(186003)(36756003)(6916009)(4326008)(83380400001)(6666004)(26005)(6506007)(52116002)(478600001)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7v4F23xKw4d54mVceLOMCeEIl0nerDg8fgQ0W2fXAJ68/G0yGbPgvVN4NJKzb/T7psnKTktLG+ylGGNbhijrBaxK8rAuLhsrfE7dD1zNKPIqVvD679CHl3ZtDS5OrlXHelRIYi5CjOWbzzjSgu5/6vdAGR+1PQ1pW0EaiHBl2E5jabwBy0uFlJhGh2tYF2wdhvQj4YdLho9vZkJWAgJSheOpSqW1vasvy4EQUtQOVLsDb2wGoLCcEQp++ExGF1U/X/ZVXw1ORwaR1NREE7G/tIk8kudSLrYyDC1eEiyZiiDZTa0lnhj0wjqKy6a9rfpnKLN50edhyHnC0ADMzw2RWV21HaLlI26vmj2BnWL5hc9tSffeSupXOUI16Hhx1ZkWjSw0AcLR+UADOihKpT9LyCQESGJECQyhkqjzh8m8EHGqloTCbN0jF+85IdbDoZ+pitA/QRnee24ySqLsOjT4XBVnoOqhc1ETEsCKlsSaa6su+8lUwKmMhaf+i+JsPYetWlvRT8IUr1I2r66VpXxtiQ+tDN2ixaP+HN2I0YnG4bRJEibPmatyfh2n2ESGQGswdiR4XUhyIQYdVSf4tCAdquMxh2Se1pUE3GpOXV/vTOaWzAQBJf0zTQYXvzwCdYMHO1wGg9lglGTG/J/YGEeum9FUNDOzrp3JLAOkiDYBmx1MO9jIj5YUVtUSPjqgGLtqE+wEHjEnoJSjqDq7jhGWC616NTcND/vFhoMxJrYT2qxCB/r7GI34mAYub5cSIPDYpQXYUe0prBULLzY4dNOKnZZIL+zvyfnKD73BEQCTuuIJbMyQstQtJWcD/56yGYRjFhjME45N4565EWA2ASSAAYrhN/ixy6xqCb4YfFuHGYn1OKsUTwmMbx+vKdDnA6wjEFgLkrCynwwjUb6yqjZEEs6y8ulGQnUTy+1jAH7J8STKZ+QuRw6S9L5WkyX59Evsfi9hCxIQ53Y2HW33r2aaVMrGRV0lhhDFo/AP0FexoIhbP7KkXRnmkhjb5ecs6HXul2yrcUVxFlej1/J+SH5uQ3QFV2ptmmIR177+k0Dti8iajIH3KgqOvByCUHUjMrvSXyCiYZJL+y7UZq9C59Jl7wNMTUNBqukGtGo40pKpAzEA73a8x77+KA7EuZ7ap/60w0WWLux341aj3qlQITxiYJLwB2pTyquf63MyhMlQmiAJwA3OHx139N5Gl7gP8YqTmmp0GZ3Vi1sX8kE/1qYKymefX/8hu/yRSHj1Fuug2GZmmZNOvbYLyV9hMH1eox69U2pbzi0IBhgJcbqZboYIXwIaQ5eaTu63JujuIKnCQOqwMEpCvtsdKCujttgyk5gr X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2885497f-58d2-4ecc-3118-08d94abdddca X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 14:02:38.1857 (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: UjmCQXbB+V5W+R+rwTosJRazNpxCGoan3+rVrMoi7YC0qrF03O9DQN/EADrPJFk7OuvOTBmn7omGwXEGz4oEJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8520 Subject: [dpdk-dev] [PATCH 6/7] net/dpaa2: add input validation 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: Vanshika Shukla This patch adds validation of the port id for rte_pmd_dpaa2_set_custom_hash API to check if the port is a valid DPAA2 port. Also handles some edge cases in the rte_pmd_dpaa2_mux_flow_create API. Signed-off-by: Vanshika Shukla Acked-by: Hemant Agrawal --- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 11 +++++++++++ drivers/net/dpaa2/dpaa2_ethdev.c | 4 ++-- drivers/net/dpaa2/dpaa2_ethdev.h | 1 + drivers/net/dpaa2/dpaa2_mux.c | 3 +++ 4 files changed, 17 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index b901b4342f..641e7027f1 100644 --- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c +++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c @@ -41,6 +41,17 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id, void *p_params; int ret, tc_index = 0; + if (!rte_eth_dev_is_valid_port(port_id)) { + DPAA2_PMD_WARN("Invalid port id %u", port_id); + return -EINVAL; + } + + if (strcmp(eth_dev->device->driver->name, + RTE_STR(NET_DPAA2_PMD_DRIVER_NAME))) { + DPAA2_PMD_WARN("Not a valid dpaa2 port"); + return -EINVAL; + } + p_params = rte_zmalloc( NULL, DIST_PARAM_IOVA_SIZE, RTE_CACHE_LINE_SIZE); if (!p_params) { diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index d892819a7e..c12169578e 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -2905,8 +2905,8 @@ static struct rte_dpaa2_driver rte_dpaa2_pmd = { .remove = rte_dpaa2_remove, }; -RTE_PMD_REGISTER_DPAA2(net_dpaa2, rte_dpaa2_pmd); -RTE_PMD_REGISTER_PARAM_STRING(net_dpaa2, +RTE_PMD_REGISTER_DPAA2(NET_DPAA2_PMD_DRIVER_NAME, rte_dpaa2_pmd); +RTE_PMD_REGISTER_PARAM_STRING(NET_DPAA2_PMD_DRIVER_NAME, DRIVER_LOOPBACK_MODE "= " DRIVER_NO_PREFETCH_MODE "=" DRIVER_TX_CONF "=" diff --git a/drivers/net/dpaa2/dpaa2_ethdev.h b/drivers/net/dpaa2/dpaa2_ethdev.h index 7b76ca7b2d..b9c729f6cd 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.h +++ b/drivers/net/dpaa2/dpaa2_ethdev.h @@ -19,6 +19,7 @@ #define DPAA2_MIN_RX_BUF_SIZE 512 #define DPAA2_MAX_RX_PKT_LEN 10240 /*WRIOP support*/ +#define NET_DPAA2_PMD_DRIVER_NAME net_dpaa2 #define MAX_TCS DPNI_MAX_TC #define MAX_RX_QUEUES 128 diff --git a/drivers/net/dpaa2/dpaa2_mux.c b/drivers/net/dpaa2/dpaa2_mux.c index 811f417491..d347f4df51 100644 --- a/drivers/net/dpaa2/dpaa2_mux.c +++ b/drivers/net/dpaa2/dpaa2_mux.c @@ -68,6 +68,9 @@ rte_pmd_dpaa2_mux_flow_create(uint32_t dpdmux_id, int ret; static int i; + if (!pattern || !actions || !pattern[0] || !actions[0]) + return NULL; + /* Find the DPDMUX from dpdmux_id in our list */ dpdmux_dev = get_dpdmux_from_id(dpdmux_id); if (!dpdmux_dev) { From patchwork Mon Jul 19 13:59:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 479842 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4154997jao; Mon, 19 Jul 2021 07:03:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxczU2xz+VcTweTCm2O5XQ968zloHE0psC5Pre6UGE7uiNqUB4X3jGHTydLHvuJwv6lJpdt X-Received: by 2002:a17:906:4c8c:: with SMTP id q12mr27379569eju.254.1626703403268; Mon, 19 Jul 2021 07:03:23 -0700 (PDT) Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id y13si5979223ejb.410.2021.07.19.07.03.23; Mon, 19 Jul 2021 07:03:23 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector2 header.b=jecdKQQk; arc=fail (signature failed); spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7995C411B6; Mon, 19 Jul 2021 16:02:43 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20041.outbound.protection.outlook.com [40.107.2.41]) by mails.dpdk.org (Postfix) with ESMTP id 9E251411A5 for ; Mon, 19 Jul 2021 16:02:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IFi/8u9K8EhXeL/yY063VaLtk5DqgyiRExib7tX6TirwL8In9rOh1a5VRNqVMXNMOp+kLiotebwroiEL+hH+iFtLBYtkvLlRkVpzLBig9duh/GUIgFprB6Nea4y8O5krJxE2onsrLl22QrcXM2SmnwrhF/o/6kngPJaz135lYNhB69y7BVzl3xxQivBwYI6/bgxg9h5A63+ma1c6d4eQn5lpDb201y/VSyi0NwqiXWlsCCyVwGcFgIQWJwe123deDZ9mOThXuzibzC+lB//X+2vY2WBOa9Rw0vaCMy6zNPcm9hS92fdMDbqi0zc2Sz/3Q7FDVlvT89WSZ7EzJqaM1g== 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=r31FsHsNmMyVYxcXDrF8AE9pbhNXzpy+c8/Sum88R7A=; b=H6s1dF14Q+V4xU50e6ePAj2pMTC9aSbg54mT+zSKTXg9Xzu7Ya6lSDEW/yHBchkJbHTaDlGdFwG14RnFotL2ZYpcagqVpzHlApfLzfNRkhBVl9S2MxOw/KPa9kW5O+FbR4L7mGLlB0DRVer7xmmP1+SuiBchsiPbaS1GT3gsaILlePRlbYqssbrpZzSDxHAGoXzG17yQO3/4NPV4u8/uhdTU2ZV2iayq5H+v4dZ/9tG2PHfUvt1Res596Y6rARismuhw1vNYXt20p9RK8JuX8XjnCzuTvdSSBdUgQl5XxmE+e2qE4S0S44vxQHAdOX6MCGY2mcmwANIIha6S2vSb6g== 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=r31FsHsNmMyVYxcXDrF8AE9pbhNXzpy+c8/Sum88R7A=; b=jecdKQQk//tRaLmZsTySmB5MG9aqzCjskAl4AHLVbCwyy9UsKkKZNCHaWlRwSKJBmftUbmh937z2L+/Jei7ilwB4HqWOxaDVhUYY5SJvRAvG20jKAJdS+cPADolp74T1enlMuI0INPga7b36+WH8qIlRnZEFebEAWcryORMcN7U= 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 DU2PR04MB8520.eurprd04.prod.outlook.com (2603:10a6:10:2d3::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.23; Mon, 19 Jul 2021 14:02:40 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::f483:9bb1:cde3:8a28%6]) with mapi id 15.20.4331.032; Mon, 19 Jul 2021 14:02:40 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Hemant Agrawal Date: Mon, 19 Jul 2021 19:29:17 +0530 Message-Id: <20210719135917.26241-8-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210719135917.26241-1-hemant.agrawal@nxp.com> References: <20210719135917.26241-1-hemant.agrawal@nxp.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) 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 SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.21 via Frontend Transport; Mon, 19 Jul 2021 14:02:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9d24392d-debe-4e77-cf9f-08d94abdded4 X-MS-TrafficTypeDiagnostic: DU2PR04MB8520: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O433YtW1KUTKPIXub9tfsPx1Hb4OTEabZo3E33B8lnAAD56klefmnSoExEDcfxA6Y2zQqpplwqEsjLiAC5A3zgA/DpFBlwZRjKv2vJNA7oDz5KeEYD1Oe+965NQq3y4wNAraczcSlFwIJhfwNlxvCQOHVg6t4+v8gQ9Uor7HDbP78JiV1QzHXH4xDO2/AfwV8hkHxS4mz3X81n1ReySwO5/0VV3m1ApAt0w3u4zRf/1tj2FtOBmjVrn74lnGAF1ssfFqsqovlcZtB9V2XosF5YIrK6owkZYdNm49MgrubtmOxtIi/Yz13rh4WJ/bZq8iTzgwcM11u8wZrKYclCSYW8aySmOMxManW1FM+E149n0E1hbehS6Xt6ra8Ng1uWiL8YrFJcyugx6jhAbBChV+gHWAfR5DJjglGLA0MGACYvGMV7Ip3raCRzWzJ3HDIz1h+86iNJ3JkkDF1cpvCGxQeuX9G16jv6dfhFl2plpd8b6dJe6kkGGg8Keh2CLyP7yz0G1cKMqRYCL9JJ7o8JKRXop0gXa/AlRn/q30bHwLW2pkrf2Jp2bWwc4y88AcKx3JbAzJd90WaHBD440GXrySIL9PQyNL6Qs5ZW0X295RQlvO/0oZqn20kYHKP0fOuiQ7er4vjdwjeqNJlJXY3avWbZj0ce2d5OoV7sTiogOX7rqo6EzFrm0QWo2Km3cgA5aYSsZpQOFCSWu0P2XA1N7gYg== 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)(39860400002)(366004)(136003)(376002)(346002)(396003)(6486002)(8936002)(38350700002)(38100700002)(956004)(8676002)(66946007)(44832011)(2906002)(66556008)(66476007)(5660300002)(6512007)(1076003)(2616005)(316002)(186003)(36756003)(6916009)(4326008)(83380400001)(6666004)(26005)(6506007)(52116002)(478600001)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zk6p2vDJFKPU18QE26SYW1VP7QMo12S/m4Km+Z/12zvIuh/LECzKHQxO+DDxaKm6W9/lEUe2Kz3nYx1+yEZb4U+HuLh3QlI7LwsOGSNuVjNjh0BptSoHL+sNFDt5xBjBcaeC2TrHRDAnbFfnCEQTbUn4clJ4ChS1B+1qJQR9aO/kZka4oHH/vQX60ls3vuitTJ34n69w7nP/H6302lJf6QPRujVMuLJhh4aEvPtSoKcGFzfUGY4IWJrPuCP8Xj2MbWYvkf+k7eNL/8Izj2dhQyCNZHUTne04sJo4KKx/+zweoOUAAufljvsZrYBEitaNJR0fyQJFktKyvT3Rt65iosbBp7l3oeG52dJV3B0RVMBnbubN27lIbEkxEgK+jEzu8JadvhmqOHiDg8SMGRcxkRaCHXKOJzknHEDqr/jX7NRGWs1oJDscKzTVN6V09JMqtN3A2ymRZNcYk4VfY7xgLOHvzz7yMNgHypgkCNB6aCPTwCW9f3gZkOFY5cIRZecxnFoFwr5BaMPfY2D2UV3ig64rcllFyaBZa+Eg5wQOwmZdoKSy3q24quepMwEjDM2j0/jU17i9kBmMBRVkER1rbSqtf4+OPtg0U+dnW15HbjmezAd3z6kGFqWCLjmJF48+bWsxqWINx3efwD3Z//U7MV0lQrd/8YN9QaYPPyPpfBXlapsrm4nT1ziUtYFHwC/wsA5K389gvyuvIdeBVV7ApE5TbAQyYdfI28O77JzGPpe+0caPVDejWmOHPSQ9Qw4dPr43gS5o4D6EgFUvbDNDCozc0wFBguWlP3D/NrKtpdZiY7Qd3OHRt+m3YsG2K/aOfgjbjogiyiyAh+J6XA/yaF7hWpbt9wygitnqVFbEfoPS0WJl+QZWauHkbfYi5W2ApzMxbmoSQiWs72JKZdq2EWFAasVFcVxj3xP1mGOfmAA04qBoO/UNH3XtQSp70B/7wiq8o5g2BnoX4MkohjwMxX4d320igRoauH+7o4ogcf+c8rP43HT53I9E7eP6EaPOZJ006oi2J6UZM6/vupniKYrSVlU87h6Y6qrdhteNjp/wuQgErV2ogCh2y0OukVgQsHMJVzOQTPzFjWzhDDSjsxL7sITsaiK6Z+1L0EVp6/QG2khp8197jk27jtrHDxdXCbXZ9iQu2ibm2GL2wQa6917kvBwWrDqH99vCfCO7RMRTvqRfce14JjbiwnmnqexT8MBfYhi5fotF1zVf0sjWSjuV9AqXm7JzSx61QFgPGspgkrjV5exA6Svo9UxBvPc0uZT0FrjbOSHOnJn1qwgAxjcW+JTE/kDPOUT5T9oevhuZ19uLkWc5aJRli++afv6A X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d24392d-debe-4e77-cf9f-08d94abdded4 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2021 14:02:39.9410 (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: n6/pfSjt5e4AMKbTXvHmvTnB/ZKH/Y5sIuBohkQM5zhk1c++4RPH/S1QBfYKgsHkmrrc935sfNmkjk8jIeTu0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8520 Subject: [dpdk-dev] [PATCH 7/7] doc: remove SDK info form individual dev guides 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" The prerequisite info is already present in the platform guide. No need to repeat it in individual dev guides. Signed-off-by: Hemant Agrawal --- doc/guides/cryptodevs/dpaa2_sec.rst | 6 ------ doc/guides/eventdevs/dpaa2.rst | 6 ------ doc/guides/nics/dpaa2.rst | 6 ------ doc/guides/rawdevs/dpaa2_cmdif.rst | 6 ------ doc/guides/rawdevs/dpaa2_qdma.rst | 6 ------ 5 files changed, 30 deletions(-) -- 2.17.1 diff --git a/doc/guides/cryptodevs/dpaa2_sec.rst b/doc/guides/cryptodevs/dpaa2_sec.rst index a7fc9cef99..06de988d51 100644 --- a/doc/guides/cryptodevs/dpaa2_sec.rst +++ b/doc/guides/cryptodevs/dpaa2_sec.rst @@ -161,12 +161,6 @@ The following dependencies are not part of DPDK and must be installed separately See :doc:`../platform/dpaa2` for setup information -Currently supported by DPDK: - -- NXP SDK **19.09+**. -- MC Firmware version **10.18.0** and higher. -- Supported architectures: **arm64 LE**. - - Follow the DPDK :ref:`Getting Started Guide for Linux ` to setup the basic DPDK environment. diff --git a/doc/guides/eventdevs/dpaa2.rst b/doc/guides/eventdevs/dpaa2.rst index 33f13d0543..538d0be8b0 100644 --- a/doc/guides/eventdevs/dpaa2.rst +++ b/doc/guides/eventdevs/dpaa2.rst @@ -36,12 +36,6 @@ Prerequisites See :doc:`../platform/dpaa2` for setup information -Currently supported by DPDK: - -- NXP SDK **19.09+**. -- MC Firmware version **10.18.0** and higher. -- Supported architectures: **arm64 LE**. - - Follow the DPDK :ref:`Getting Started Guide for Linux ` to setup the basic DPDK environment. .. note:: diff --git a/doc/guides/nics/dpaa2.rst b/doc/guides/nics/dpaa2.rst index 6470f1c05a..df23a5704d 100644 --- a/doc/guides/nics/dpaa2.rst +++ b/doc/guides/nics/dpaa2.rst @@ -421,12 +421,6 @@ Prerequisites See :doc:`../platform/dpaa2` for setup information -Currently supported by DPDK: - -- NXP LSDK **19.08+**. -- MC Firmware version **10.18.0** and higher. -- Supported architectures: **arm64 LE**. - - Follow the DPDK :ref:`Getting Started Guide for Linux ` to setup the basic DPDK environment. .. note:: diff --git a/doc/guides/rawdevs/dpaa2_cmdif.rst b/doc/guides/rawdevs/dpaa2_cmdif.rst index 7ac3963938..4eed661c8e 100644 --- a/doc/guides/rawdevs/dpaa2_cmdif.rst +++ b/doc/guides/rawdevs/dpaa2_cmdif.rst @@ -31,12 +31,6 @@ Prerequisites See :doc:`../platform/dpaa2` for setup information -Currently supported by DPDK: - -- NXP SDK **19.09+**. -- MC Firmware version **10.18.0** and higher. -- Supported architectures: **arm64 LE**. - - Follow the DPDK :ref:`Getting Started Guide for Linux ` to setup the basic DPDK environment. .. note:: diff --git a/doc/guides/rawdevs/dpaa2_qdma.rst b/doc/guides/rawdevs/dpaa2_qdma.rst index 92921fafdd..1b619ea1e1 100644 --- a/doc/guides/rawdevs/dpaa2_qdma.rst +++ b/doc/guides/rawdevs/dpaa2_qdma.rst @@ -35,12 +35,6 @@ Prerequisites See :doc:`../platform/dpaa2` for setup information -Currently supported by DPDK: - -- NXP SDK **19.09+**. -- MC Firmware version **10.18.0** and higher. -- Supported architectures: **arm64 LE**. - - Follow the DPDK :ref:`Getting Started Guide for Linux ` to setup the basic DPDK environment. .. note::