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 92747A034F; Mon, 19 Jul 2021 16:02:42 +0200 (CEST) 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> Content-Type: text/plain 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: =?us-ascii?Q?dg9ueMF4DsAlBUjcDUVgOql1D6EOSLYN0yckM8y+iScBWVPwaAYC1FJkvI5n?= =?us-ascii?Q?glA87xhZhHiBObFKLCJ+3V7GkNOyXSDJUSWhJsj/WX5xq/iimIiJ3TgTrgd6?= =?us-ascii?Q?uVP4CRJhqOKtHgYIWbfN8l2Vax1xX4uE+A1P0pL7xlhY4bPjwQBazmAkrO66?= =?us-ascii?Q?7os6Qx536LlLveP5VHkm3FdSPPIuax3rttqGHqQ4tyFc1LqvrxBJpUdh8DWC?= =?us-ascii?Q?a8Jtr58PnJwmp9JS2TYfioZXwV9KXH58airVKtIcH7Fd4xYdHfer8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7e/kUTSGegx+QMARHie1DbSqRdYvBgMz25iv?= =?us-ascii?Q?mHmpQU92OkK+z3bnczYhdcgca25foRjugVGFQfOryJDvgRL4DKFF47LTLC5e?= =?us-ascii?Q?551uXkgvwrE5OmTgPS3LriiL6ZPFAdbFPUkeEQIUTDOPTYfrp6mm+5V4t0qs?= =?us-ascii?Q?YRvE2rDVrjtZ9NaKkhrXauHl?= 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(-) 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) { -- 2.17.1