From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C72C1A04C7; Tue, 15 Sep 2020 20:57:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AA1AB1C11F; Tue, 15 Sep 2020 20:57:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id EB6B91C112 for ; Tue, 15 Sep 2020 20:57:28 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08FIuWQj009746 for ; Tue, 15 Sep 2020 11:57:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : mime-version; s=pfpt0220; bh=zqwg3rp2XgRxgaLM7dVhhflEDvBRvZXw0yGrV9tkoUA=; b=jpL8gx7zTu7wcyhE8nxp4zgOxDyemLdT2QGQnKWimx+3LcLKVVTsEvhI4epvxa0FJ2s4 rHZ4dbJcCps1LTH8/iCL7PIc7Do/oRDHgZY83LyLtL+G6PUvnaGLSzcq3Bou+L6qdlSD CuPb7kmXsBEF/8QAlIdUc3i+ncxL2L3bgs8fbjZ+fJ/eJ986Tn7uVgbabrGUWEVPTt/T 3CX3NK46DwUNEHkPyylLJxuhmQqr8tL2wFvvzQWFgiL/vbJylOk2qulH9UDMFN+o/8iH RDCNLmhrr27H62U8kM0wKzk/YAOFhoRGhcJH10ivA109cIEf3A3DvxnQx71SQolYyjxx 3A== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 33gupq2n0u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 15 Sep 2020 11:57:28 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Sep 2020 11:57:27 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Sep 2020 11:57:26 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 15 Sep 2020 11:57:26 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eDc557QmKgGnl2UneLr1CGvJ82R2Kj7+MoMLm1eM+zRjoiWmYKTp9LVR+vcLu8vgmOT0Krpr9+SKp4Q8x4fGEbv+jQMtrIYZGZJPY1jDdiEiKa5rPUhhNmu/smwMo4sRVVA+nYbnlgUS8SwvWIFS9p55WEGjtIvgmkLbWLXHy/28IfdIaik8SMjl4PWDrwTmh8mYJZaAlbvPjYCbkyXv4fAWVuw/ewj/wbbjsGpKEbUA0AdPruCNyVM0b7PJ5air2eXATCghAfEm/a40CWyy66+ESQ7Bfn9fssCsU3y7ihayBC05+fS2gZxYPJvLIIJInF1XSls+u3STRuxFQjlwcA== 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=zqwg3rp2XgRxgaLM7dVhhflEDvBRvZXw0yGrV9tkoUA=; b=TlzHBcU+Jn089A91eUKLb9yZ3oW95KqsXBX3Ru9qdC83/1HeZqx9uRaH5Pg9ms0lwfhvCc+GppOAkLCLX3/kxZWonf93mjqRbkT52ASFz9y3kINzm4mpZdkPn/QPKBzsJ6CpdxQn6pfgCZzmQdmSOOkgssBc4CS1IsEtntYHde3p7843G60ceOT0ckGle8PN5Bx+dyHhJYlo5bqnGXOn64fs5ysGVbd6luX35eyc8c88B/sJ8td3pfjZYIg9HH1hA3GWKOom7xwrEYeKM1TO/takZ63CWrDyi39c3WHj6vW1t0uNE/LmQK0ZkL7AIEqaF6+aAlJdX3yyrsT6i3YE5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zqwg3rp2XgRxgaLM7dVhhflEDvBRvZXw0yGrV9tkoUA=; b=i621cZAuwUvEOxgPRlXaJT9e8IJgZNZxvk3Aj9gK1Rn5/vx8Puqu2cbeBnzMe70sdW6dz7BRhXOdpeopUbKLO+2uJ8kPudF4F17f20Lp5d2jjnybj7jTqUTHOIVOloxIbSJAhkSGrxkNZW6RKtc7RlcV4gyzWFTvS6XDQYe5XJM= Received: from MWHPR18MB1070.namprd18.prod.outlook.com (2603:10b6:300:a5::11) by MW3PR18MB3643.namprd18.prod.outlook.com (2603:10b6:303:5a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Tue, 15 Sep 2020 18:57:26 +0000 Received: from MWHPR18MB1070.namprd18.prod.outlook.com ([fe80::4838:1132:399f:ea55]) by MWHPR18MB1070.namprd18.prod.outlook.com ([fe80::4838:1132:399f:ea55%12]) with mapi id 15.20.3370.019; Tue, 15 Sep 2020 18:57:26 +0000 From: Harman Kalra To: Jerin Jacob CC: , Harman Kalra Date: Wed, 16 Sep 2020 00:26:46 +0530 Message-ID: <1600196207-31258-4-git-send-email-hkalra@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600196207-31258-1-git-send-email-hkalra@marvell.com> References: <1600196207-31258-1-git-send-email-hkalra@marvell.com> Content-Type: text/plain X-ClientProxiedBy: BMXPR01CA0070.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2c::34) To MWHPR18MB1070.namprd18.prod.outlook.com (2603:10b6:300:a5::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from hkarlara-OptiPlex-3046.marvell.com (115.113.156.2) by BMXPR01CA0070.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3370.16 via Frontend Transport; Tue, 15 Sep 2020 18:57:24 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [115.113.156.2] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85f27a63-8092-41b2-804d-08d859a92f7e X-MS-TrafficTypeDiagnostic: MW3PR18MB3643: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s1CbMl7BYSgQfNlfNpXVjzkUjRd1/Iq9IgmB1MhXDRgQd85n7t5y/PjcMfy2116G5Tuocmy4aD+hyPksT88j/Y5Egg+4RJi86h9Qd8iM7AgPVvH45IbOR7zQbYNtW68L2yCuEaBphkl8OWrplXOId4H1c10lFdcgm6qSuj7rhwgaQLUp0pfhbMs3zOyUzOKcBM/ZmR+48fxN6Kv0pDdQcokRlH39toEMzxgwLMR0yIbW/NxhXMcs2SMu5zv1gIDFEce+bH03pJlcXdwH5BfVJMc99gOLv3J21xIeOJ29QLePzTu2DnhYgf1qHBRJCCxNjzh9l/IElbLSYJfxyf3KAA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR18MB1070.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(366004)(376002)(396003)(346002)(4744005)(6862004)(2906002)(8676002)(186003)(16526019)(66946007)(107886003)(66476007)(8936002)(52116002)(5660300002)(66556008)(7696005)(55236004)(6666004)(86362001)(956004)(478600001)(6486002)(2616005)(6636002)(37006003)(316002)(36756003)(4326008)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: H2ai9hyiH82yaISsJC6t+H/aw2Bv2rMsT2wRnGkVbzlEwmu2SivqodPzeLHFgYsAP7LyfbGN83fEvlfTe5m6HxsoMPFwwQ8j+2ddM8TEfgtD1TRyIHg+KtdUwC/hKDYpadjGqh/HmaLv82SyrsXv+yyuLK22eYZyYy0xvhwcXUECi83jqeMhQ7KBnbX9bAm4+/k2wzh5X9L7117NUDoPfs6uniFvz53Bclrxb9PTrQvwWI93542KXVJ1Uu4iqL45Jv8nvhIs7UwMk2YVt/AKZ8CIukZhKXZ3zeIF7DnJTzOkt84JhQD2fVSciNpTcVt40CZ2885SnOCtkkEzsRtoEc1GVAOyDvVAtEDSdPunadpimoVjDqnWPletgLdnG4Zq/00qswDEBEluLak8ETbWJBEOzUv/HzN1RBrvnvMoANuIj0QsJa8Mu8lEMJx0FE7hM4yZ2c1XyMJCLAymNvsVOOoHL0fhEFJBSO72ag90IlG4NslosD/grU38FNc7M8o3fvxhI++6c0BDoaGpPREpxr0p7NGfx+4z9Soa1da58g5frWp1noWdBJ4XHameE1ryrZIu1jTR5RJGH9hRxq3wTvB0UR0mCJNWrs8ExG51mOBmD1o1lVJ/qOvflAnS0cPcaoUClMMSuJBnZsd+NlbrwQ== X-MS-Exchange-CrossTenant-Network-Message-Id: 85f27a63-8092-41b2-804d-08d859a92f7e X-MS-Exchange-CrossTenant-AuthSource: MWHPR18MB1070.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2020 18:57:25.8967 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XzAXmpE4sOdFggsM8aNrxV+gggkSZTOdjGIkhY+MgziVA/J3kaJtpWtw5dZIJI2i4OCcs6HhP14VjrH5lwZgJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR18MB3643 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-15_13:2020-09-15, 2020-09-15 signatures=0 Subject: [dpdk-dev] [PATCH 4/4] app/eventdev: enable fast free offload X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Since we are not holding the mbufs or creating any references in the app, hence mbuf fast free offload can be enabled. Signed-off-by: Harman Kalra --- app/test-eventdev/test_pipeline_common.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/test-eventdev/test_pipeline_common.c b/app/test-eventdev/test_pipeline_common.c index 17088b1b4..f0c0ffea7 100644 --- a/app/test-eventdev/test_pipeline_common.c +++ b/app/test-eventdev/test_pipeline_common.c @@ -219,6 +219,11 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt) return ret; } + /* Enable mbuf fast free if PMD has the capability. */ + if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE) + local_port_conf.txmode.offloads |= + DEV_TX_OFFLOAD_MBUF_FAST_FREE; + rx_conf = dev_info.default_rxconf; rx_conf.offloads = port_conf.rxmode.offloads; -- 2.18.0