From patchwork Wed Aug 29 10:47:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145407 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521129ljw; Wed, 29 Aug 2018 03:49:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYQwkMervtV9Xgz+bEIUqk2BxJof8h3o+RXRpHd7hj5c0+TXRqOiFQ2vrLsELVDkcQaYOmO X-Received: by 2002:adf:a211:: with SMTP id p17-v6mr3893436wra.196.1535539794444; Wed, 29 Aug 2018 03:49:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539794; cv=none; d=google.com; s=arc-20160816; b=jT8yGLnA5RaWmgOtdZJqCFBMN0fHVWc6rvZ/9jFnOe1bUigYOUC8/bqCmfPLXja66G emFk73NFVKxpRUOYcjat2k8Wts2sDt7l2vRVbleOHBGUEkLkX2KT4PoasP3fy9t13Pz0 W8hNFrA4AXMG//1yVidScWzrWdaYUCA9PK90ca0LMG1TRI6iLtikWgT6CIq1vtY2Dxlr TZ9+ZjCN8jz0VWeA/NE4xJy0BVSF9bEWYBkK29RDbN+FfceqHkv/HKu80Jc+Gw1INDaO yj+8chX5C/EUwbD8bWOrG2gP3ice3shGtExdKLY3G/wDHMv1sv7xHsnQQywarSxELsrZ ArhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=yJegQVA4mrpennmub0h3FxIE2isfh25gInCoui/lB84=; b=pSq5j0tosbq0DuNHR9hzNhgcBeiBjNplo7Fw5B5FRNEVHPP1gGZfDgGELVx0T1rONV +o4qQk0YHXJWC9l2qCLTgp6SbZvOmEIJbzbx+S3gtCgVKZN9SCJWB6XFozsJd2Rv9mwF dgVBjZMYRdumthi4Y2lA2Xuv9eMIp6RgMG8nqzS+3WLULp+P3MrxLqHLXA2IFCTv1FwM m0SGJgRRI52prD0Ni5uNJM2O2yljYnt7gYsNVa4EtrLQN5WFmAqwpDGz6nhjTtUfaEdK pprhsXVS2rlkD6JHEOskHgnfsfwta+jBUERwHHegpQ/S5aDGYmbEPO9TMoWjz13VEyCi nuJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=UhgL4DvV; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id t3-v6si3051858wrq.287.2018.08.29.03.49.54; Wed, 29 Aug 2018 03:49:54 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=UhgL4DvV; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AA6534CA2; Wed, 29 Aug 2018 12:49:47 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00076.outbound.protection.outlook.com [40.107.0.76]) by dpdk.org (Postfix) with ESMTP id 871584C74 for ; Wed, 29 Aug 2018 12:49:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yJegQVA4mrpennmub0h3FxIE2isfh25gInCoui/lB84=; b=UhgL4DvVrzvyHxXfB2FOfz7abpfq6CRktVFDqg0f5Xp0lcQxZWFbN44vh0HLGBimGO/RfECVHk2ozkPREs78lQc89hBiUKGqJ3y4cBCO9sKul5KFdDJ6o2KneZN0s9AFzzr+z5VPf/QL/o2WxypNNtNcYol27mfqkF3CswQVFO0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:42 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:28 +0530 Message-Id: <1535539660-20228-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8631d76a-46a4-49a8-bd93-08d60d9d2117 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 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Ck8CJSqMRLydNgjF+fRO40bhHZKqVztmgFGaV7DqP/6gddi/6Hq/H3dWpBWlRCUCQK9XY8snoSB/hwVvjT8nkHTIkaxyuLEEYcSl2nYocKpMvC5oclQrqjwexiGsmL6QTFQDy5O3w0n/4iwuKox55EhXNyafywJNs+PSwFDKOZ35NldFH1pr7YrsPy9RUi0S3r0z0iNPM/MoP9tySP4SF4ON4GDoxcFMV8Y+mhrAudgqpccUECZ8vhzZm94E0Zy0+s99k387EhZSGAyxhtG6CKKVx7G4A53FzQKBJWIJKbUisQ3qLGl1oRHyUP7bDezE+dJr41ksD9b2rS7WMpuprN47wvs/O8rk7N; 4:qiWfPPPGdtiBrNvl1Qrc29gYsbowfpL3SQq5q5B2EIXjJ/JCtmhXIh3effonbA+JV7KNoqzCfmfYHIzHYI0Ww+LwAWPEgwmcw2xFYHI3B6IfM4Pqp671Bxr0bSnf8gQYrLqcdaBiyxCepeOuVGSH8u6K8JxGI3FpdaxVO10MHFLQw0kRQOOFt2xAgc19gB2hLr1paBMs1yAhzdgsL9Q/NDV7I7S5aldCEv063901ALMzt25hjPQlyEBa8aPX8UvhGNflyt41QUFkanQAS3Ycv/A9TsEKghaP4LykztA35JjHnlWvFg1WbQQQFsIsztiQ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:qD+7UnaHgj5Il0Yrqgj3ncXgS16gunEgt6hNQn+?= P2SbggA4dGfz7/V/mktGQOqbjL0/FE6rbKJZv96nwoibeXWPb3U87r8gION54LMaXtHm3BW0nvOvhViF3cJUpI4MW+IZ1h2XkJYd5q2DOvX47Ea0X+AGXlukS//ZoyXTu7UQYW8Ch6trqigieWRnCVN+LfMX1bjio0Jy5i+Kxcc0Nf7QRN/srhyjLe6hjZkJhATVJ6Wsrcg3nJuW9TdNquzhDg6wtmerwnB1dikjC1WztsYUeuOQMMfxEheUVgHlqMNMseAmqWcmmJIjoxPCtkvcXce1DqNFAQKHo5OQf3nuO3d7NLPz0ar9Bquu8VBhIBbALFCvwDN7KJw8XEgSc6Ta2BiycoIOYyQtchwUlNnEHFS+mWs4Q94u5pfrGhklLxlCdwrYoy5y8EL1yQgyA2rQiz7/e5dLNia9ajqdpAikYKa1ItBcLnvIbXfAYt0P5W0yMjfV4Igc0/WEsNqFYSA7db1lw6wdeGJ2ddTBwddL6fhEUFENMe9qjlHrXr2FoXZfGJOAVNcYvO1QraYH+0l+9y5A5djPiep3ngL3WNtzn5gifOR2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Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 6:OZepQIhHhvjwm2duzfHwkgYItkFqPIEqKOw6H21fTG/OEunPjukNnl1wXIFvJxDigvaWAto1O6encWNbJsdVkKGlnvGxEdUArHHCwdcJT3y1PXNHT/9AxjNF8/1aCDoH81xPNZUOVF0glRS6WD8MFgWCbkSohu/BfP5nUgQwifSHGakllUIGTIbw2R0I6qzs5YNYu+SwKJCyS2z2+1XVYrlImKLjefPyhL5jmVQhgYOgLkg1mwCGlS6FEn+sciCGxWQEPW9dwguzvJf/Gd1hJe9deMZ+0ZBLdBT6uVHYSTay1ZsqweoDqKMyAxy8pAI7Ot2VJwPSZ4ltNZ71Rd3HACrSqHEE9CcGm5zr6NgFoZtDapog36TW9pMDvlOwe9fjNok1iR/9aRTNrlsq6/TzBola5JoaEk3x01dflucGLRb9SJZ/hHT0Y+o2BpoLwwIBp3Wa9TERaAbNGcqtLXWSHw==; 5:6YpgaH7AXplyKDxJb+QRbJYaZhplfnSsYa36Dj53HHuipcMQ5nFowUzkiGve35BJ35lZ7pCH3Ykm8KED/ILR1PtnVyJgHdI3x8jY01H0cjY3NZL92+95A+XcPlar778pt8I0SaGwxajrPs/wyv8OJXorWx4lVqd6AFBq560muU0=; 7:+q6U6AOOv3RdI/OWus0dhzrvCJ/Ql9aSCvD7axMhoKUghay5+IsIaE/3L7nJHBuDOwO6j0fpM2ALJ9xeJPSqpHD7+4RVXLWp0bDA3sfm9wCa5iPtEcUDLNBbNGIfGRZc8hzgYg8ngdr4AAz4AF3fLnoZSmqQmWMvcfMz0a23du9O8By1YvKZrRiqA2USVeG/bV19v+9q7U6KmNofPe9y+BozkveifWmDcU5ZU17d/aaQsrG1neQ1oox856Y2I+gF SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:42.7837 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8631d76a-46a4-49a8-bd93-08d60d9d2117 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 01/13] net/dpaa: configure frame queue on MAC ID basis 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" Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.c | 25 ++++++++++++++----------- drivers/net/dpaa/dpaa_ethdev.h | 2 +- 2 files changed, 15 insertions(+), 12 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 7a950ac..009ef84 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -1012,7 +1012,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, { struct qm_mcc_initfq opts = {0}; int ret; - u32 flags = 0; + u32 flags = QMAN_FQ_FLAG_NO_ENQUEUE; struct qm_mcc_initcgr cgr_opts = { .we_mask = QM_CGR_WE_CS_THRES | QM_CGR_WE_CSTD_EN | @@ -1025,15 +1025,18 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, PMD_INIT_FUNC_TRACE(); - ret = qman_reserve_fqid(fqid); - if (ret) { - DPAA_PMD_ERR("reserve rx fqid 0x%x failed with ret: %d", - fqid, ret); - return -EINVAL; + if (fqid) { + ret = qman_reserve_fqid(fqid); + if (ret) { + DPAA_PMD_ERR("reserve rx fqid 0x%x failed with ret: %d", + fqid, ret); + return -EINVAL; + } + } else { + flags |= QMAN_FQ_FLAG_DYNAMIC_FQID; } - DPAA_PMD_DEBUG("creating rx fq %p, fqid 0x%x", fq, fqid); - ret = qman_create_fq(fqid, QMAN_FQ_FLAG_NO_ENQUEUE, fq); + ret = qman_create_fq(fqid, flags, fq); if (ret) { DPAA_PMD_ERR("create rx fqid 0x%x failed with ret: %d", fqid, ret); @@ -1052,7 +1055,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, if (ret) { DPAA_PMD_WARN( "rx taildrop init fail on rx fqid 0x%x(ret=%d)", - fqid, ret); + fq->fqid, ret); goto without_cgr; } opts.we_mask |= QM_INITFQ_WE_CGID; @@ -1060,7 +1063,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, opts.fqd.fq_ctrl |= QM_FQCTRL_CGE; } without_cgr: - ret = qman_init_fq(fq, flags, &opts); + ret = qman_init_fq(fq, 0, &opts); if (ret) DPAA_PMD_ERR("init rx fqid 0x%x failed with ret:%d", fqid, ret); return ret; @@ -1213,7 +1216,7 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev) if (default_q) fqid = cfg->rx_def; else - fqid = DPAA_PCD_FQID_START + dpaa_intf->ifid * + fqid = DPAA_PCD_FQID_START + dpaa_intf->fif->mac_idx * DPAA_PCD_FQID_MULTIPLIER + loop; if (dpaa_intf->cgr_rx) diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h index c79b9f8..2c38c34 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -63,7 +63,7 @@ #define DPAA_PCD_FQID_START 0x400 #define DPAA_PCD_FQID_MULTIPLIER 0x100 #define DPAA_DEFAULT_NUM_PCD_QUEUES 1 -#define DPAA_MAX_NUM_PCD_QUEUES 32 +#define DPAA_MAX_NUM_PCD_QUEUES 4 #define DPAA_IF_TX_PRIORITY 3 #define DPAA_IF_RX_PRIORITY 0 From patchwork Wed Aug 29 10:47:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145408 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521222ljw; Wed, 29 Aug 2018 03:50:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaRlidXk5PD7tzpXg5d0v7XOb4sDO6c+BUNr7fPoiKaLsNAw9ymuDh/1IUA1h+AUgUOGJD4 X-Received: by 2002:a1c:9550:: with SMTP id x77-v6mr3629515wmd.135.1535539803177; Wed, 29 Aug 2018 03:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539803; cv=none; d=google.com; s=arc-20160816; b=xh3bZ6uF8yFP7XUE155z7GJvcZ4Z08hVJM1XdmpfhxrR3eRByRmOjox98lzmBIVCDC Ih/JapDXrcHV04QT30yz7kn0q79NTHqXJUfqGjYXhnzmL05tZAkhZ3txK4V8CRs5F8sl V0muEKCCb3zrOaB2AY9uIKb+COEPXQ4ILdLGe8X6Tg8iMOa55xzURQ0K0WoyN/JjEJbH +AoXAfCar8jjjN8/qMa2hT1PIFrf9xk+jb8pCTdXR/lS31jZayWKs7a84hsEJ562hKlA dTFko+Qqqj20+3i0o5BjYBgAa4jBfZks2LHEwESkhk10f8Pnwb8Qa3AkGlCGYrNObXFF mrSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=Oa7k58WbnKSkfIojEAwcE7TJwSfdrFucaNdEbqv4CF0=; b=0pYrAmCcHQRQA8oPIcg3oUHEpdKc6rlETgM3z+XhU3BPEUbczQOPPHan/ppeiIDkmt ikTBuR/f0vvl6+irQymPmVOpbtQmlwr2TpEcrzD8HyVgRTiDpzeQc3dQlOau12S18ry7 MA9W0z5QFxJVFF4y3p4U9WWJWIB6RO1DYeveAJNMLgNUTLYY6C/MlrTnS1VXneeca3/2 0FszJ/JBazAtaitic+9oVZqicbBZt9V912AcZ34BAm3OcScusl9MQ2Acak5ts/zZSRqq 2m5la9NjoiXO13Zj6tj+FksTsVtQZXfwAq+gJtqMcODFVfU/vumi7PILD8JBO41TgrtE 7U1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=LUCCGlKP; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id a18-v6si2868453wrw.390.2018.08.29.03.50.02; Wed, 29 Aug 2018 03:50:03 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=LUCCGlKP; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4BA914CAD; Wed, 29 Aug 2018 12:49:49 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00049.outbound.protection.outlook.com [40.107.0.49]) by dpdk.org (Postfix) with ESMTP id D43144C8B for ; Wed, 29 Aug 2018 12:49:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oa7k58WbnKSkfIojEAwcE7TJwSfdrFucaNdEbqv4CF0=; b=LUCCGlKPD1ZnlInK6BuH/OuKyshkGX1rFzg4rhGqBGzs0GDgkROCJvCC5mgljq9xVWy5mbB8UOox80Hlk2BuBmZZ36oG9UZZ7ZFPiSU7yiRrXq57GVB4ohVynP0VuCQwuxT12KfBgca3fWGNJsZ04IdE4vEIP0OYxD7PizCz9UM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:43 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:29 +0530 Message-Id: <1535539660-20228-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1c2e188-7303-4a9e-b1b9-08d60d9d21ce X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:BZGiQr2WZ5k0524STj0kCf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NImdJU70U2YQwtW0edKfSoWkY3/J9ZKG6qMWTn+JoJPCTksb4bD6cH2H2mqxQHIC2OsvP5H54ucAHpYHNirgRkgrrx2IpiI8kCxmKwfavt1ZEuOYURb9VUDDPLzHxA1Wn0y+iIfe1Rpaub2GYFkc8dsCGOutlR6dr1EXKnkVNXMWLeujf+mE1ZoshDaDyfDvt9XE1rtqeEnl9CLWZnNwqoe9f9eyyjCcpSHPJMXcGNSOfCOiI1PJh5mnLlN/G6xkGJIsvgSuh5YLjIJADu/J8FzQkXCBtLhJhFblX5Qs5Ge/QxicWzAI8tz2VU/PMz1N0W; 4:XxdkGe1EOYVRmRsaAbxO+2mcgAflF0yLSzmo99pmq8BETQLG2gZeFNaec7NoiC7CSOlRraJwk1O8U+dJGO+8E1GWvGDGJMN3heJO5kzAjPV3ns1y4QTSmUUREciI0o1sHZew5+QFKvytu9dlhfYh7cNE7w1oodhgz0bQWhb7U5GNj7ibrBxPwdOfOCPA2cy2CHS8HoINLtGiXjkpTl2MkUDKyheC5o8IQIOe+ZbJYX8P8BhXYvgptK5JFHsYspkJXT7FUVGmQ19ApeoEuHlzgF1NZegn9B/7guSQyn81ZPkNr0LSB0t/YoymkBC6Ss9G X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:oW3HnyjS+zLxpYo+JLpB/KbJnw+hP2BpDjGgiaH?= hx7dHA2Nu4AaLShZebhEbXj1ri+wwGGGyZzy+4dgjovsJzeM8DLjtkcOXMQkIf2vbxl6JQ4kArG+n+e9jlnzYTPRMZLtNQlISjpvwFOQURNgz0wFmFEiv3OKqMVdT5DATX+9x5eacrdF2b+9WgPgv2uj/OWQxsjmql1HQj2quQdvcl0AY2ER9uLF2JTJmT9bgZ8tZjoUWJz6f11crCm5ltPyzKr4Hbi2IWVm+5c2kTEuLSjE3LTHdHcHqfGYfKF/LU53kmurmdOBhbfa+WyYtgaRmfVa2yovaaczUD5uqOA4Tyk4bqnUF8YkZmIy8G0CDOk9Vb0kETzwSuMi0uoYgGhjaOyVNE22M2krd2MoReVpUyIU3cEUk3aJJOJbuZAJRFQjzKY6PsJf2/kJeBh6Mfx6Y5LGzt9DWJa7jETCEyD1mck0KTsHcEq5Amv79/3utJxTmIBGxKiHIJhWvKv4M+mbH9MTkWRmf2WjKitRKy56tI5UjguvQq1juw4MRL3K7pFiAOh0IjGTVW51LEN+rs7cEdTD+wNFK/OmzX69KZ76Nui19WawkENOlOTRJWZtNl90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exchange-Diagnostics: 1; VI1PR0401MB2543; 6:o0zPgeIDlZjkBEpqp8gac8493PSS7a6Yg69ky4omENKqiWKAC5/KaAs68hkPs3Y+GKHmleVPrmHlsH6txN2bZphmumKX5WUynvoQVj3T/FQ6mNlT2ySHQaWv2mOYocOmu/eQ3MvxgfLUCN8khLlimUC/gO7FUX58p8NjJRnekQEWBysLkPYdBWPpb/PdhZlLAz/xYnqOiej8yci7uoiIThNZNAzbTYGgGZQ+9WiHT4mNZO+rvDIHXtXMv4VsPH1SVT3Pud/7amc9Lo+ncwksASaqFHH9astHzyoR1GssW+Xb7kSDZF/D9fb5ENwrYKYdBQ8LLkvOSBp5+y9eLvcpjxtJvmLX+PTJs1VuU5vq9bAMOLBtPYwMFI62ereJR74STHlFh3zbyYaiCtYwA6K44N5OEBjKPg8gBU1JoTGt/7dM+sXRr5lYHtKL2gGneCstg/PXj/pdQrK+F75/KolZOQ==; 5:yhfWycyv6/95HalP8NO8yriL+crVMvcVIWQbTU0aFlqy1ztOgRvWciXAuUTErCv1+XCXsJbecI9cuBMON/p58dzG1oPjxo91t+xhbuX4T/HglgDWjNeWnjcNpIjCjxspKS/8XuaKxN6zS6va//hp53wrHJq7z7s0uxcPeda7KDY=; 7:luOX9TBP+1e6v9YRIMMSwvsLQO1GJPTZ3Gqogpqfv9WFrpFmvP9t39C6F9OdM+i1aVboQA1erLSpBdUXctj27qN97T24ivvDWNvEhw0AZKoHYfPRf6tvQ8pSyCqWppBrKFXi5rcrPSDmpT0kcnWgc55+LX/3ZCAhBMav1MgJQ27Qpyfp/GRCh97ZamanvZa/QcsOaJAMk/IWm6bNYQaRDEgXmwEZcW9rE9NYofohp2Lm450pAUNjAIpdVlR4dOLs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:43.9817 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1c2e188-7303-4a9e-b1b9-08d60d9d21ce X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 02/13] net/dpaa: fix jumbo buffer config 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" Avoid return after the jumbo buffer config in dev config API Fixes: 9658ac3a4ef6 ("net/dpaa: set the correct frame size in device MTU") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 009ef84..dd1bc90 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -196,11 +196,17 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev) if (rx_offloads & DEV_RX_OFFLOAD_JUMBO_FRAME) { if (dev->data->dev_conf.rxmode.max_rx_pkt_len <= DPAA_MAX_RX_PKT_LEN) { + DPAA_PMD_DEBUG("enabling jumbo"); fman_if_set_maxfrm(dpaa_intf->fif, dev->data->dev_conf.rxmode.max_rx_pkt_len); - return 0; + dev->data->mtu = + dev->data->dev_conf.rxmode.max_rx_pkt_len - + ETHER_HDR_LEN - ETHER_CRC_LEN - VLAN_TAG_SIZE; } else { - return -1; + DPAA_PMD_ERR("enabling jumbo err conf max len=%d " + "supported is %d", + dev->data->dev_conf.rxmode.max_rx_pkt_len, + DPAA_MAX_RX_PKT_LEN); } } return 0; From patchwork Wed Aug 29 10:47:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145409 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521365ljw; Wed, 29 Aug 2018 03:50:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYK4+nI+ZSsdOrrlWmW+zENWrn/WTeGY8TWEH41dkgLqnzgcOEZvJA251K6oom2MrMSZXpQ X-Received: by 2002:a1c:a187:: with SMTP id k129-v6mr3800487wme.111.1535539811867; Wed, 29 Aug 2018 03:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539811; cv=none; d=google.com; s=arc-20160816; b=VIXEMKvDc2IXTxpcX+SfIa/OWjKRAuuDbcWcocfhMDIv4LMh1qiNZLjreRTq2PQAYe w9IxQy77JYUvHJnBSwkF3XUgR4qZkriNq816W29jnHS5EIsZqVnfssMsSZ4TUC1vKyGV 5ibpMv6ywVfSBm3CgFD9WPU7QKr8n+Vo96jIGClPnKX5mmEOcjWlFzDR+10Z8FYogo9X Nr8vc1CZlal4STC4V/PPzAY68Vq2Amb3zKQOytStLsPOHx3mvR4SvBD/8R1U3LJh90yn NEE9IYbfSQ+SaSd2CxK76nCJ7FjzXoR9/vMI80a1D2ytcwvCxBg2K7VyW7TmRdFmYjQN PYHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=gm4EbmdbXH1JrVadBEs1oO+ysJ6YVqErGGe3XA1Dkgw=; b=Rl7ft1t7ZcYK/pFQhFX0ytYzMIdCW04OeGXSvIBHu3PKTFn8MbBkOBDaYXWQVKbYxc 2FUzZiJI7yecCsJ57NxMIaTEW4inJLdmSsCCnzd5cXQuyHmTk1A7h6cprhu5HyRrj9cd eDItf2j8QBceuEo5ZTmuvHyajCfVXMNUIg1RTIwPb8RcAkNSQ9BP/5ycJA3K4uK031Ex TSRUadMs4+Ax9xtgvwCCmfBG3Gkmyyi541NkjHdIkya6igLhj3FRjs5zk2+1apRnFilh YASuwtjHehsTiAh5aFwt18kb6Y4ACZMMGBlnA0yQNhYRETdF/IRWumaZiC/1Aj6TUDU3 q1IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=UPMqCJ5W; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id w15-v6si2959483wro.101.2018.08.29.03.50.11; Wed, 29 Aug 2018 03:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=UPMqCJ5W; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BBB8F4CB5; Wed, 29 Aug 2018 12:49:50 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00056.outbound.protection.outlook.com [40.107.0.56]) by dpdk.org (Postfix) with ESMTP id 548C34CA1 for ; Wed, 29 Aug 2018 12:49:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gm4EbmdbXH1JrVadBEs1oO+ysJ6YVqErGGe3XA1Dkgw=; b=UPMqCJ5Wyep8SXrOP6Kj/AEdhNsg2folhPEhVnFT6VjwzdSe6PnjMqauHZ9DmSc1PQbpPicom6EUvdrOPYq1iotqA5QRVqAaWy4qWn4F55Gu1SuMjHg5X0LiC0zwuKIpj65+7IRsprcyM1FV6AHpz0Fxxldn3hTkcz0JE7B8XNw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:45 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:30 +0530 Message-Id: <1535539660-20228-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9efd239d-110e-45b8-78aa-08d60d9d229d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:n5iPxS6Dlg2Qm7CJRxiVBrn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q6kMFbA0k/aroGZbl4g4ln9Kb5yGOwJPFNuYyp26tqdA8U5m3mavu5ghI6JGjzKS9BXTRTT6xhM/SvTBagC1z6yA7c0wuA4bGQsrvzGSx6ZUc/b4lu09Bon35B6Ig0jLqAPZiItAc/mWC0zuQM3Fusphj1mGVyOaW4vgY5bNf55gUijCLNLMPIa/CT8gftUPvKtJDEgxGK1ILobGak5lqtak6XpqvXR5XkAtJKxzHOVXNyBt6vB+uAteNaetu1F4pzo64nsxDMQx94MQhnwWxKL8YazxPM9MlaXZCsANbPHLRwK6weiehyjGj6NbvZpp7qCTUgN2o; 4:HgBzRa5hMN4EklPtAnKQh9fA73cMz5xu/bS3SXGwt25hlO2a8LqkCzx/+TdsfB+d2ooD/6xcQrEDi3Shy84vnvU59A3bWFP9WRM4bf7F9bXoTeibj2lw7tVBK6cRm0/JvBEjdHk/dkhu0OODuRUwHgDYOKVe73Mu0WI5y9HZ2+4oD6Vlu7dYJUkw/DN2k5MhrS5PmtihMJd4wnpmnPRfMOVQIiu5KApiIJj2dk0MkE1Y0r/PV9Ly9NDk4OfMY+nmLJRgSYEPUvqKno+3UhdukSWRNX6Y6sSUi2z21o01RFJuf1equu12K1zc7XbMleSD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(575784001)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(14444005)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:QIVUPsKxJtBIrFJc1+9MapNYoFgNsZp8ug22DAO?= j8YVG6fZBnc+wV56utBRu7/HlzyXbciP1vEdxEtsy66xqOAMPw+DoRWylELuLMQyQtoP7xb8u8ldSDoMZOTi7yQCZA29blV9DAh7dZ5hmDWqy0wrjtawYmQL1+Cw7j+9M2tDag6rR6BoZLZHjCqc7FGtcUSxCmR7wn2a8dEG40B2gudzOxODoIpI71RiulV5TjK/pbTcrI62Q9IzvaN8naZIGpbi2mnphdF/oGKleMoftbOoYNwG8qef9DhIIhdIeonRaX4EAyjpf7tfU/lc6zVGV7F1c/h1AWAgWlodxV5fXrA11m3kashZcWOmhsj3pp4UN1HI0c44mT/2pbwpCHCEYEFy6TgltYveRvu+EyA/9hPi+IgnZ3iUQQPugc8gEoziVM9Xjv5uvnuNCvsLzIWqz97UiWQM+Y2GEzm89cbELaHCRKNQ9DKZ7frXy+uNLwd4292/9yayFRdjnW5Lld8+um46N7AKaEps3A0yDWrZo22h/uKINoj4R27FKw7BVg2f9RByfjlEfs7Bt0P7ovw9mTlOV2pG6wdgQMlXYb36iU92cySYndZVjT3ATvLcpmEqasINapj5X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Aj5DDlNBQZg7pgNReuGLcSdzjsjmI1YU= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 6:BexwxPTJfqYsSwsnzVQjZV2LoDBdSxSxrX0+H5xyEZruyle5RpEVeY6LBzJi9AT8oAiXb8QxUUC59uAJDG1cpbVr8HPycWg2C0B5F1hqIxKw/52DFvXv5GtB5V5kg9FoP+IuMl7zG3fVCkRODa8BEAKBAejDqKol8kNSGfhMyiuVK11IHHkysMqlOnyIBC1FUugLL7hFdOHD3R+/zTsHZd1CfWYkeuPFr92U6puvyrdLIhZrgGKAtY8Iyz0wEtIztwUEaIC0m9Xhmz6wPaH+V3gs0+yXIVi6/cH8eLdYa5Ee4kM1kdsqlYHjVRjveeVrs4wC1dWxuh5SmVDOxYvJns1gqi4OmyOHSUEVpbr7GUYTqT9Xx9WMCWC4i7lxbgcdktCOX5RoLAYYfn9f4Ue165iljd+CGjoJaCimcp97oPA6eoih01EniE4zfRI7TnaUEQoXM7N1hspnop588DVe5Q==; 5:v1/AR1Ujdrpbd4K8oT0Ef2tKFmtGOUN7IIegNzcOGVdXaWGuWiuJVUZEMWpVOUrbt4xHFWM+GlNQDz1CG9aXglHvCdy3Rya4UnZ1e8tTQ/hjpuKq9vnARnBICUq9Tgqh1r0U9bDFbn8uLaNJUrKcp5/MIq9N4pPhZfXwEgBevoE=; 7:cZAswjwtNDdpsXH6i0AY4/86svwtGkr4d/u4wyXusVfHIGPDjreLHjLDo/KYibLUguChVy2+YyIrNLhFn8Kh+rPxkLqZDOdxxVap0W5pIQs2ytGNV9KcIoeKiOzwTnDjj3YyAdBHWywWyU7/8yVdSNk5LXszYXMx42QUrvgBXLoPBl26w29QeHan0yKYk3v7ypYv661ToMBeOzjtcGUj/lYh7YIyZA+QT+xQ/bviJdTUJApOjhWseZPb9tieJ+/G SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:45.2798 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9efd239d-110e-45b8-78aa-08d60d9d229d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 03/13] net/dpaa: implement scatter offload support 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" Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.c | 62 +++++++++++++++++++++++++++++++++++++++--- drivers/net/dpaa/dpaa_ethdev.h | 3 +- drivers/net/dpaa/dpaa_rxtx.c | 8 +++--- drivers/net/dpaa/dpaa_rxtx.h | 2 -- 4 files changed, 64 insertions(+), 11 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index dd1bc90..a0e3f24 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -47,7 +47,8 @@ /* Supported Rx offloads */ static uint64_t dev_rx_offloads_sup = - DEV_RX_OFFLOAD_JUMBO_FRAME; + DEV_RX_OFFLOAD_JUMBO_FRAME | + DEV_RX_OFFLOAD_SCATTER; /* Rx offloads which cannot be disabled */ static uint64_t dev_rx_offloads_nodis = @@ -55,8 +56,7 @@ static uint64_t dev_rx_offloads_nodis = DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM | DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM | - DEV_RX_OFFLOAD_CRC_STRIP | - DEV_RX_OFFLOAD_SCATTER; + DEV_RX_OFFLOAD_CRC_STRIP; /* Supported Tx offloads */ static uint64_t dev_tx_offloads_sup; @@ -148,11 +148,30 @@ dpaa_mtu_set(struct rte_eth_dev *dev, uint16_t mtu) struct dpaa_if *dpaa_intf = dev->data->dev_private; uint32_t frame_size = mtu + ETHER_HDR_LEN + ETHER_CRC_LEN + VLAN_TAG_SIZE; + uint32_t buffsz = dev->data->min_rx_buf_size - RTE_PKTMBUF_HEADROOM; PMD_INIT_FUNC_TRACE(); if (mtu < ETHER_MIN_MTU || frame_size > DPAA_MAX_RX_PKT_LEN) return -EINVAL; + /* + * Refuse mtu that requires the support of scattered packets + * when this feature has not been enabled before. + */ + if (dev->data->min_rx_buf_size && + !dev->data->scattered_rx && frame_size > buffsz) { + DPAA_PMD_ERR("SG not enabled, will not fit in one buffer"); + return -EINVAL; + } + + /* check * >= max_frame */ + if (dev->data->min_rx_buf_size && dev->data->scattered_rx && + (frame_size > buffsz * DPAA_SGT_MAX_ENTRIES)) { + DPAA_PMD_ERR("Too big to fit for Max SG list %d", + buffsz * DPAA_SGT_MAX_ENTRIES); + return -EINVAL; + } + if (frame_size > ETHER_MAX_LEN) dev->data->dev_conf.rxmode.offloads &= DEV_RX_OFFLOAD_JUMBO_FRAME; @@ -209,6 +228,13 @@ dpaa_eth_dev_configure(struct rte_eth_dev *dev) DPAA_MAX_RX_PKT_LEN); } } + + if (rx_offloads & DEV_RX_OFFLOAD_SCATTER) { + DPAA_PMD_DEBUG("enabling scatter mode"); + fman_if_set_sg(dpaa_intf->fif, 1); + dev->data->scattered_rx = 1; + } + return 0; } @@ -306,7 +332,6 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev, dev_info->max_rx_queues = dpaa_intf->nb_rx_queues; dev_info->max_tx_queues = dpaa_intf->nb_tx_queues; - dev_info->min_rx_bufsize = DPAA_MIN_RX_BUF_SIZE; dev_info->max_rx_pktlen = DPAA_MAX_RX_PKT_LEN; dev_info->max_mac_addrs = DPAA_MAX_MAC_FILTER; dev_info->max_hash_mac_addrs = 0; @@ -520,6 +545,7 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, struct qm_mcc_initfq opts = {0}; u32 flags = 0; int ret; + u32 buffsz = rte_pktmbuf_data_room_size(mp) - RTE_PKTMBUF_HEADROOM; PMD_INIT_FUNC_TRACE(); @@ -533,6 +559,28 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, DPAA_PMD_INFO("Rx queue setup for queue index: %d fq_id (0x%x)", queue_idx, rxq->fqid); + /* Max packet can fit in single buffer */ + if (dev->data->dev_conf.rxmode.max_rx_pkt_len <= buffsz) { + ; + } else if (dev->data->dev_conf.rxmode.offloads & + DEV_RX_OFFLOAD_SCATTER) { + if (dev->data->dev_conf.rxmode.max_rx_pkt_len > + buffsz * DPAA_SGT_MAX_ENTRIES) { + DPAA_PMD_ERR("max RxPkt size %d too big to fit " + "MaxSGlist %d", + dev->data->dev_conf.rxmode.max_rx_pkt_len, + buffsz * DPAA_SGT_MAX_ENTRIES); + rte_errno = EOVERFLOW; + return -rte_errno; + } + } else { + DPAA_PMD_WARN("The requested maximum Rx packet size (%u) is" + " larger than a single mbuf (%u) and scattered" + " mode has not been requested", + dev->data->dev_conf.rxmode.max_rx_pkt_len, + buffsz - RTE_PKTMBUF_HEADROOM); + } + if (!dpaa_intf->bp_info || dpaa_intf->bp_info->mp != mp) { struct fman_if_ic_params icp; uint32_t fd_offset; @@ -563,6 +611,9 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, dpaa_intf->name, fd_offset, fman_if_get_fdoff(dpaa_intf->fif)); } + DPAA_PMD_DEBUG("if:%s sg_on = %d, max_frm =%d", dpaa_intf->name, + fman_if_get_sg_enable(dpaa_intf->fif), + dev->data->dev_conf.rxmode.max_rx_pkt_len); /* checking if push mode only, no error check for now */ if (dpaa_push_mode_max_queue > dpaa_push_queue_idx) { dpaa_push_queue_idx++; @@ -1313,6 +1364,9 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev) fman_if_reset_mcast_filter_table(fman_intf); /* Reset interface statistics */ fman_if_stats_reset(fman_intf); + /* Disable SG by default */ + fman_if_set_sg(fman_intf, 0); + fman_if_set_maxfrm(fman_intf, ETHER_MAX_LEN + VLAN_TAG_SIZE); return 0; diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h index 2c38c34..2fc7231 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -39,9 +39,10 @@ /* Alignment to use for cpu-local structs to avoid coherency problems. */ #define MAX_CACHELINE 64 -#define DPAA_MIN_RX_BUF_SIZE 512 #define DPAA_MAX_RX_PKT_LEN 10240 +#define DPAA_SGT_MAX_ENTRIES 16 /* maximum number of entries in SG Table */ + /* RX queue tail drop threshold (CGR Based) in frame count */ #define CGR_RX_PERFQ_THRESH 256 diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 168b77e..3a3a048 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -306,8 +306,6 @@ dpaa_eth_sg_to_mbuf(const struct qm_fd *fd, uint32_t ifid) int i = 0; uint8_t fd_offset = fd->offset; - DPAA_DP_LOG(DEBUG, "Received an SG frame"); - vaddr = DPAA_MEMPOOL_PTOV(bp_info, qm_fd_addr(fd)); if (!vaddr) { DPAA_PMD_ERR("unable to convert physical address"); @@ -349,6 +347,8 @@ dpaa_eth_sg_to_mbuf(const struct qm_fd *fd, uint32_t ifid) } prev_seg = cur_seg; } + DPAA_DP_LOG(DEBUG, "Received an SG frame len =%d, num_sg =%d", + first_seg->pkt_len, first_seg->nb_segs); dpaa_eth_packet_info(first_seg, vaddr); rte_pktmbuf_free_seg(temp); @@ -367,8 +367,6 @@ dpaa_eth_fd_to_mbuf(const struct qm_fd *fd, uint32_t ifid) uint16_t offset; uint32_t length; - DPAA_DP_LOG(DEBUG, " FD--->MBUF"); - if (unlikely(format == qm_fd_sg)) return dpaa_eth_sg_to_mbuf(fd, ifid); @@ -379,6 +377,8 @@ dpaa_eth_fd_to_mbuf(const struct qm_fd *fd, uint32_t ifid) offset = (fd->opaque & DPAA_FD_OFFSET_MASK) >> DPAA_FD_OFFSET_SHIFT; length = fd->opaque & DPAA_FD_LENGTH_MASK; + DPAA_DP_LOG(DEBUG, " FD--->MBUF off %d len = %d", offset, length); + /* Ignoring case when format != qm_fd_contig */ dpaa_display_frame(fd); diff --git a/drivers/net/dpaa/dpaa_rxtx.h b/drivers/net/dpaa/dpaa_rxtx.h index d3e6351..6de70a7 100644 --- a/drivers/net/dpaa/dpaa_rxtx.h +++ b/drivers/net/dpaa/dpaa_rxtx.h @@ -32,8 +32,6 @@ /* L4 Type field: TCP */ #define DPAA_L4_PARSE_RESULT_TCP 0x20 -#define DPAA_SGT_MAX_ENTRIES 16 /* maximum number of entries in SG Table */ - #define DPAA_MAX_DEQUEUE_NUM_FRAMES 63 /** X-Patchwork-Id: 145410 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521529ljw; Wed, 29 Aug 2018 03:50:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY6PMMhNyXpa1scPRtUC+rz8TgZdfpiCluHQZBWWthZLpuF7SxB6sgrShe7To/ot35NYZaR X-Received: by 2002:adf:9d81:: with SMTP id p1-v6mr3724108wre.12.1535539823383; Wed, 29 Aug 2018 03:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539823; cv=none; d=google.com; s=arc-20160816; b=xHRxqEz9Uz6UnoQPPjgMo/YImR2+6qCHpyeVL/oh8QbKD//cixVwf3V9FZBNWBOCTG 9JUyQEw+r8EJnUuO6pro5y0D45gRnn5/ugV0FHd93UBNzSn8Q9XuvOEzHVF76RYKMOSt q/7nE2wSMLylBAOq79Use97ywNXB+74EDEzYVtQI/oRozT80yf6YYTMayvAa59zm1gVI akwGbbK+cO6oo2fNv798W2kqOi52d452voBr8iuL3G7rFEQsSSbc9Ws1BWLR+yYPqVEc yOYOeSFc9/pGccGXpaWJq0HkdLDluT1KBr7lZMpi6pJwdQYA5ViJC43xdQtxuWTQrAaF BBkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=ZUSP2PXK4af6rP5zgf2/64mEeNq5rKwyuc8eWjIqyqY=; b=wbl2dkL91l04C47Zpy6gji7YXJjhJzvepx8yoOldQ5V59QTZ/UKmvhnwlCL5s5wSRn 3i2KE7JenR6yJTE798oXN1AmjxCcS7v4DLv0eLodKs9qtyGrXNSGQnaeq4xUtNA6+nSS KwHbOeRCD5WJXEVL8W8fcKq3AKjYo3l5PhV9TydlF4DoRo7lRK/4TfKyJv9hKaaWffPA XECBDu0nGZiqhEO/xu1XprisHyiXMVuu7w06rzp44Y3Xy6QXavBDuYwfLZ2y/+aE24Bd 8HkxdcN5HGbzCUnMJ4TZFBIIseb3FhmjUxAr0kEgfI4ftP6VbxubFwDPPa4RuxeN3COi wmoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="JEWsfn4/"; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id x20-v6si2825811wmc.137.2018.08.29.03.50.23; Wed, 29 Aug 2018 03:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="JEWsfn4/"; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 709CE4D3A; Wed, 29 Aug 2018 12:49:52 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0059.outbound.protection.outlook.com [104.47.1.59]) by dpdk.org (Postfix) with ESMTP id 83C23F11 for ; Wed, 29 Aug 2018 12:49:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZUSP2PXK4af6rP5zgf2/64mEeNq5rKwyuc8eWjIqyqY=; b=JEWsfn4/wmeJi/8Qy12lZcdsZgIZQQ0tLZEg/ZeVGuLpVbamLehgPDXZd1y9oQoRqz8nIXFuTpZSFr79FlBePt+6zF/dhklhUrCB6K6JH2g7aFTlbdwxpRRIWKNzQkmPlTnbyq+wXjw//Plr7TEh+CHg1jTVzhuB3373JWVASQI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:46 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:31 +0530 Message-Id: <1535539660-20228-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 279b1cd2-7b3f-45e6-23d8-08d60d9d2366 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:RfelesaoYvZfZg0kj3VK/QBmy2eGdazpvfaQEP4t0SF29gLo07SNmhm9oSgTrVG1ouq8VK8RFBizNPw+/ai60U1IT3g7V7HHJPYklWlSIvErinCwZHb6f1CtQ6Ac31+NkL9IgejF4tbc7lInGfj9Q1MkO+Goka7dtfw4o1xeCFHc/9qfvaD3nIsyBo2Op6XyUJmMb/zMQf53KJeDYVjtldNXpvw5x0WbmU7+WhwmJEsV9tbtAe9fBdtauKI3UhEE; 25:nbfs6kcNDHmhhYQkGB5ICXqZpEMqsg/6LQ3vd60y0FztL+xLA5MCbu0K5hR14LcfM7wTHx6v1Oux3NjL2UuyAyuoowiYEdaNS0hy+ppTp/DYZHVSeth3hoB8rjclXCd0GcSeI2nY75KRPizk9uV4OMIUYN6UTpo/fg4FuTCVzIFhftSFNf/PcAtq018sMYf1gGJi5vvc5H+0SXqE/uNDN1ifNwYqali3Teow8d3aoYA7wJdd2MP9WOYEYjNxR2nAg9+iifcss9GO02ElNt3BANyDLPMm6W7xm9E8aGOZXzxH8BrOYpBG0nsoYWoRMxBkzainq0iUDkZyRIHCZNp7/Q==; 31:8oCyWubomgfzVH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U9YPyKNudoCKCMVScuDQTM1mMvEq4WG5JjApqjsAUN6qBr1PvGzUhg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(575784001)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:H/2cooX8bUiQcPc/mF26XRsfIFePZbZMUWT+Zz+?= +b46i4/siG4ivxE+v5fY2OZT1QAHfz4U3Oo5pq+YpT64asiHj+InMPDWGz5FKlLsNCJg9fBdPVHj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8IbO5En2h86NcsFMdtaQDjdHUoXg524A==; 5:9pi23Y0expBM631wHAr25IPK/ePQD50PgtcPENGHlnvWiNAJml4A0vnYVeer5kF5APVEp0peIp+SEmZ1G+Y+wfI5k8sePk5951m3nKx/RbCQd54eLMTyXk31dG6nTropLDbMJJsDPhoYDinfBSC1JOnLzVytcHxtxSTWSK9DT/E=; 7:bjPaXohcA4ooqMW4KVT1FDThz2IDuQDBfmc8khixx5R6SvnIEOIXIV0xIMPaFWRAhUu29pJsMgzwhVTP2YR5r2Cfl8ZJq/mAgKOwTUuM/o8s6lASQNIfhIwAtH1MQm3vJi5K0ErlBBE/6sRuK8rGbY5LOFAA1NEqd/mfRx4cNLJENw24jiHk0RbceoIce6p90LrtNmtIOuzXXPqRTgdVX6VHYT2uxFFz0nAGGIY1Jvpbw8zrfj+V5QfUdIrMnx4D SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:46.6540 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 279b1cd2-7b3f-45e6-23d8-08d60d9d2366 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 04/13] net/dpaa: set correct speed based on MAC type 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" From: Sachin Saxena Fixes: 799db4568c76 ("net/dpaa: support device info and speed capability") Cc: shreyansh.jain@nxp.com Cc: stable@dpdk.org Signed-off-by: Sachin Saxena --- drivers/net/dpaa/dpaa_ethdev.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index a0e3f24..4e5cc0f 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -338,8 +338,15 @@ static void dpaa_eth_dev_info(struct rte_eth_dev *dev, dev_info->max_vfs = 0; dev_info->max_vmdq_pools = ETH_16_POOLS; dev_info->flow_type_rss_offloads = DPAA_RSS_OFFLOAD_ALL; - dev_info->speed_capa = (ETH_LINK_SPEED_1G | - ETH_LINK_SPEED_10G); + + if (dpaa_intf->fif->mac_type == fman_mac_1g) + dev_info->speed_capa = ETH_LINK_SPEED_1G; + else if (dpaa_intf->fif->mac_type == fman_mac_10g) + dev_info->speed_capa = (ETH_LINK_SPEED_1G | ETH_LINK_SPEED_10G); + else + DPAA_PMD_ERR("invalid link_speed: %s, %d", + dpaa_intf->name, dpaa_intf->fif->mac_type); + dev_info->rx_offload_capa = dev_rx_offloads_sup | dev_rx_offloads_nodis; dev_info->tx_offload_capa = dev_tx_offloads_sup | From patchwork Wed Aug 29 10:47:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145411 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521665ljw; Wed, 29 Aug 2018 03:50:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdalVHH5K2Muup1mwgYZGizPAQjV+Oc3K4rgfkfWJVOdpbKHnE4x4ZYEqQnD1z4frBRFR4xl X-Received: by 2002:adf:91e5:: with SMTP id 92-v6mr3969513wri.124.1535539835265; Wed, 29 Aug 2018 03:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539835; cv=none; d=google.com; s=arc-20160816; b=cUIoPJMVL7ZF6Nl/ekYKve9Ccyb61Gd4RaIAFFhqISE0WdNG8+2CTr5QieXsZLbg5i Clv05TxEhpF/NgqNr36zQYjTJ7Tx650Frwd7d8zyZq77lNRgRTes24yZpDQJihCbYnjf Z0Ph5lH4QT6ewSwUBRlswD/zoXzkkk9d2D49SZRCvEDKVBDx0TMvs9uDEV3oAM37bXzI mZHKplVRVbz3EEPS35mNx6StsruCGD8/U8DM5lOaqGhEmoNOFVMf/UaK+zqLVpKqtsOl DyTjqCR8QMyCvPjmK99SyfC+9gGKminUA7BWquzO5PviW4nRhNaO+bN7IwkiLILwofIh TuCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=ErARk6HYzAy/G1/Dqm1N/bDtiqbfl3lqi4tuOusWcOU=; b=yCPAp87uNUXCGRAYtVemyz/d1eY2p4jQIUkDy7783hpaxPikhwxq8FO9PCLuAzVwNM XBEIXxBPF7hl+Jr3qpzPnYNmjyiAGl96aHSHkqZ4euLPs19kPMTY6nDZdMA5BPMq/Fjm qCQFUEhaI7Wmr3Y6YEEbCSD7NYZ6fO+TVB4/EGR2p4Z6zT561fbxFsGKuYONMhzxETKq FCqFe22dItLH8G00fhes4ZuJTNKRF6lOfCapp1fLHBLIo3CJlcb9Fi+c2y16+gMyJBm1 HsA26U6gmXWSqa3CaFjDI7H3ngJgvkmFt39JORkSSUW+uwLAvxeh+HiLEXvtQyRDs2ik hUlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=pLrf1egk; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id l20-v6si3411672wma.101.2018.08.29.03.50.34; Wed, 29 Aug 2018 03:50:35 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=pLrf1egk; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F97D5398; Wed, 29 Aug 2018 12:49:54 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00067.outbound.protection.outlook.com [40.107.0.67]) by dpdk.org (Postfix) with ESMTP id 4481B4C9C for ; Wed, 29 Aug 2018 12:49:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ErARk6HYzAy/G1/Dqm1N/bDtiqbfl3lqi4tuOusWcOU=; b=pLrf1egkP/zcgxwzl7akShqF+C4/YunoUwBm4hZCAXGuYCtGtcmndmwPhwtOCQIDHagUtysN+2h5StrHSikjXmO4qRPNbJqSZa4rEZhJ/7wrLWE2GxvKZBGgKHJMszhAOoqelYNMGZ1xo4L15WGObUv2G5WSFvcIFf+4Gb7PX7o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:47 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:32 +0530 Message-Id: <1535539660-20228-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fe78913-fb07-4117-794c-08d60d9d2432 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:oS2b0pXwv39ctZWVfuX6GNkoQDWvqc1g2Q0LrBqA6LOCnXDGceNxjNYo5t/vulvBPCFUmSQfS3nImDEmb9OZysYe3QsOV3FRj5b0oNum3OR4EZOS1c6SjLfRLiOxI/IoTnTdSEvdf0kbSktP0lWbGy5tAjC+caBx9NCVOL346uW4uLXIcBTZXyrDKpoMBcYTZl/x1mndRtDR/e5ufe4AYm8i+ihQ8fltSMe7+bSjFCfI+gKbOGroNkgmYfx6EuMQ; 25:sVcA0gZ3oqAu7BE2Uh80kePbie5nO/CigImPRDTAEpQr3+5a6tQGre+pvVvgvE4Ytweo6H5zV7KhkIDQrWlArQzMxE55tch0Q5QTmRY2ulU1EYcAz4y7uUarxjXzKWxTP7fJA6Wc97VpaVcuVQK9N3AyhhhX8pgLKq05giYrUj9LWReLyEeHP2wAhS7w7n09tI15wyq32QmuIhe/jjyngu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ejsgV8ZkrAawPad7T10t2cfBWX2S0n8gbnsLsqfy9hIqw1xNhaWT65BQLxHrDqQuLXcBym8wtsf8AaYpEMwnMNb/UpzMmpGyjtekwVvS2zdVX9llZlzhqW2oPf0JNIwhwrkdt8HKvstzXBxEMHDUNAS7BmmaEJ42EJHththJIOPTkcrsAtrW86SCJXdfPssJMgNx83cGiV7A X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(575784001)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(5024004)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401M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Jo3fX3QUJO5B3utqoFbSF4ESAOpvnjs+p53gk7i9+ufgEiVL+TaUHl4kk3y//x4i5APwj0G9H70bW+M4/FbwnIgsY6SmyvnCsqn9LQQRfKDuoREOUcjCA==; 5:G2hEmDHmtDu0RNQgPD9NsIHuitgkxuFWtf2QiglWSl0jz/HHvczm2BVF+o0/fekkSH9+NqDB+e3Ct6qbo+xhLxBHmGfPBLSJwSzMIrwmYRvXzYzGFBmyAcu6y9ZfVQuVgCTKOn21PmiMYlfnVlVhZ45JMGE9L5z30TPdXv//MKI=; 7:1ECJE+UR+i6hKqGnEIpQl9J+Uhv9Y7XZoeYihWDHPJVxtN5h75T3jc4d+GUox6A0WNcRDPA2X2q/Fx4g3LsjXgblYiI80d77bM7UzVGihIP8BlAWCg3qGHEu7S9FiHj0VEM+QvDc5k0zS/uNmxZ5ITHhNOUzmHcGiX+Zq/dqQvBQfgNorUz1hb0OQeLnkq7vOaHiJz3DyGKAyh+Y4HpK5IZ80wsyjcZ1GWSfzwwjYEUkqSaHJlCJlD2irPltahac SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:47.9931 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4fe78913-fb07-4117-794c-08d60d9d2432 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 05/13] net/dpaa: minor debug log enhancements 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" Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 4e5cc0f..df72510 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -614,9 +614,9 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, fman_if_set_bp(dpaa_intf->fif, mp->size, dpaa_intf->bp_info->bpid, bp_size); dpaa_intf->valid = 1; - DPAA_PMD_INFO("if =%s - fd_offset = %d offset = %d", - dpaa_intf->name, fd_offset, - fman_if_get_fdoff(dpaa_intf->fif)); + DPAA_PMD_DEBUG("if:%s fd_offset = %d offset = %d", + dpaa_intf->name, fd_offset, + fman_if_get_fdoff(dpaa_intf->fif)); } DPAA_PMD_DEBUG("if:%s sg_on = %d, max_frm =%d", dpaa_intf->name, fman_if_get_sg_enable(dpaa_intf->fif), @@ -694,7 +694,8 @@ dpaa_eth_eventq_attach(const struct rte_eth_dev *dev, struct qm_mcc_initfq opts = {0}; if (dpaa_push_mode_max_queue) - DPAA_PMD_WARN("PUSH mode already enabled for first %d queues.\n" + DPAA_PMD_WARN("PUSH mode q and EVENTDEV are not compatible\n" + "PUSH mode already enabled for first %d queues.\n" "To disable set DPAA_PUSH_QUEUES_NUMBER to 0\n", dpaa_push_mode_max_queue); From patchwork Wed Aug 29 10:47:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145412 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521776ljw; Wed, 29 Aug 2018 03:50:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbK6aKm1oT7OkCOSz/VTRCC7XbO0ZuNQzaClslQpJ5VIAxj6CCvZMKIZ88EhSALLOGq5zNs X-Received: by 2002:a1c:3a92:: with SMTP id h140-v6mr4101841wma.41.1535539843842; Wed, 29 Aug 2018 03:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539843; cv=none; d=google.com; s=arc-20160816; b=siWyRoljUgMP/m7lGmelfPevcCqmB/egJQkiUkeJiR05LBi0iWhEDRcrmnl34RE0mz QpBIBBxOicZ94ugbMq7fEE5fFVORBakGSYEmXvLl7XwkPhDLHRx89JkW/oQbKOgrG1qH /YcVcp9TeSjo3KGKuaSlt2mgqG9hnLsCCW6aHn1gx1C+Jd9SHCNsEMmIgWJ82fNzV4fb XfpzSfawujJYwC5FhQVodfgnlqDhs5eFY9QT6xL0jnBJQF/3mxNx8Q5hsxjSAnrCSuJU MjSlKfFEeLtDPfnHTKqKVGy/IA/ygPAFzb93RfDNhegkbVcuSlxIDkZBlFztuffizTpT iE5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=5tS27NpmrwNm27Vy2RkTLFGdJ6ph8rgjjwR3wG7seWo=; b=LYKZHcWoWc7/ieYCU62iSVz/vmTAiId5C1VmVseY+d5ldDUWk/nZkaHb+SkS0OrrCd tcGdRPo9AjQozpWwzUQSYyNnMu0gzvlpq+BZj7D1uuxwAuwu/G8qC15D7sA26VB8ABIa A4x8E7xB4ASyvGcrYcvQlFsJT8SHUXgZjs/9gtI8Fi4bafPc4NiKvz1rpM2P5FjLoVuM P33t53V+07HZoiDE3yWA+ynn/IGLedxx7onZd5+N1qb637UVNzV2/pdjzccDAvdEyEl6 vSQY9iycIwZ32Ia6bBLfOkPEWabv30Ig2P5K5K7EDhAsEYN3xC7TuYo9i9ip13zE7Q+d KT1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=NH8jW6Vs; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id i4-v6si3655197wrc.177.2018.08.29.03.50.43; Wed, 29 Aug 2018 03:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=NH8jW6Vs; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44BC85699; Wed, 29 Aug 2018 12:49:56 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00068.outbound.protection.outlook.com [40.107.0.68]) by dpdk.org (Postfix) with ESMTP id 42F964CC3 for ; Wed, 29 Aug 2018 12:49:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5tS27NpmrwNm27Vy2RkTLFGdJ6ph8rgjjwR3wG7seWo=; b=NH8jW6VsS38S1x7CL739ag4qqum8xhEfMqNCdAETReY57yxPjmAuIoPcoNRdm6KQcgKId0jqf8EPIDVFFIbT7Yu9bSnnsHb5LDMhppV+1YPzfjbPQviq/iI/gInvSQblVl/4/IhoN6ITr90tc9gO34IaUEDuNFfw7Z10BYNzU44= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:49 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:33 +0530 Message-Id: <1535539660-20228-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d519d731-0115-483c-6bc9-08d60d9d253d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:Igu3A5CZtmstJU9uQi687hYiqaQU25TXQ6RlJqMmxBbKdlmvDBQ5dgLQEMYuP7rUvntc0EHyHR0DMMaJTReC8SudbzjGXKQiMhYtcgbUECTz5aIpKKERd1Z835wR9h+SmhKHEahc11LesYyYfxl9z1LLW3soxJJ2Lcs0yuUSW1OgaiJomUeulUjknokaAXFgxLuyDMqOwP0X4Sw5XjJMrwBKYRUeOBitoeoYf4MvY2RZ9AECGbvnzAQcDOCPrgH8; 25:tVvNTuC+Xu6zgwv7CHlOzZJiL4fftsQZFWybJA0gfXu0Bgcbu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Y6dZDtGzv8TcN+Hi2GZ/0B9EN/dSowlOXvew; 4:L+98oevLn8CnFSj4dlVxW8AbkMi6IijuuBdD3WAb666e5XC+9vsoRgNKYFHmEwX3rsUyWzruLv+LTzkpkzvoUj5w9IWERBvj2K5qVL8SjwUtPtoZvIqBF2crD8zpj2yQe9JSw/sdSQqJE1CsLeAu9AUfU7obesumnoF6CXLIYADIWMlKfABaIrO76f8qRurAuqPULjPTOjTnn25LthaIyRTe2ShPToekO4zk6T1hKiyGziOMJLqiePHNzKWz+4tuTKUgfD45/sPNdRD0XGqzjYTNU0/nftbF6ybAilve0b6hAIZ+0acxUKK+Wi4xRp7JeWphj/xzzEn1Et8lmy99mCJQN8LeUVnhrTTYz162204= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(575784001)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(14444005)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:49fZDIIOqjbmMLWAqHk6Mq4a4g1yCtDIuHH8La3?= 3EK7cKYeQpaOSbZuRa9SZaZ6xzDXDSgs4B3vzwrXNHOYvBgKyvV8P8X7zIdGt+Xg1A4dMaANB0K6Xb13NRg/+DhkVPiQNaweKOUg2WTTosornStRUb73H60iyhrp2IqCrskzUcprJze4INjAZr1Ba0NS3Jxs08W2yeBJWtL6ontbpdR87kiwb03NDafp44KPBGPReKdxuR81+NZt5w7NeqFGJJWwprwV7OHkpEJkR66zAFQZEChRkpuYG6xfHTjiqMYjR8xauEq7KIu7D6lK/DxNqj4DLGMz4SG5srXfS0EdPkfSiMbc/Qla4lm0k16ZErrD4b8jI/c7oSBCu0735AjQNOqAJukinsHA16OJIB1IZVqLIWaTi4Qu9s55En3jrFDuqgYeLkT0wRj4+ZI9fwtCkhRvAp21epQ0yy01sDC88XynMZQN/xl+YCZXb4g//wEZbt5bCVygj3d+/Uh/O8ZwhKvZMwWjMSMb5/LerTVVKrgiTAJ625XOf4VumxoIeDmmX2nxrqLQt87cJBeBDXzawe/0XW3wr79XL6eyb53UsrXQLIH6/L5Z8AaQv6MSN1H9Ljt40fSh72rmaJrYa64uJKPqug7GWpHeAQSDIr2Me6wUUqn/uo5XXkENSh8//9bp4+vcJH8bPdLtE1fZbWnD+Va1c0OyrTZhKqP2M0lcfTyUSB9rTgdBojFKHBlLdDfzPu5xyoqRXE9JywvfDAsfraayNhfnvYHqS2aixld6tba4QGqX7b3KQ/s9l2wqJOhBMlq6yu8q+n2jUJ9Jdn6FD1U/wh223jA/qGEm3FrqHRgHwGbYXkflo7wEUlRqwK1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W7RdkUVCSN7XKT1OS7vmUPLJXUALOjGlGILoQGX4tiagnxdNTk7kOGn8QNMfPJyP1VIDJ8Xvsg4S/BAUfbsJfL5qqME+ET7VMD3OOCZ9hZ/Zdn4kKO2A27LyrBKZ3qVeaxjvujJKCLnv6dHWQJWq+gyfHsVAuuvqCyr2OMQawA8U1StAT0PYX9ABelpqge+1INa/vSPKFv9VOVgl9Je/GvlmBbkI8eXFQwVhg66WQU5UF2MeB+QN85LgRKymC3kasvd4wgeA0PdjRq062pT2aH9Oh1xfJRkd8Qw==; 5:VZ2RRkwrGEuVaWAhh8Cy/DjlBjVwHHixQnrimS+CFw7tmjSh9bO3P5wPFlM/ko65/EdaldW7QMnX49F9anmlBOadGo/hsGG8k1WPR41P12PmPHz/TVlXNPjYTNv2jTEutYEFGJKDE913gYbzqjvzXrrdFYIa5OB/0hOGvgljRcA=; 7:2mK1K+tZ1trcg6QFmoZNu0PgE6cbLb9kcOXJeGGU1RNwS6nO1+sZlEwRivw4GfciJOGxtoir8MboBWaTw0325TpOFdO2NqMvggcKNGVci84JeQ7Rg81gDDkDOVX7XH63XO+DnHJnzVYQOpPhiKugtsPkZENBv0I2McavRSpIzqx9hSiNqNcJjOoh0h3laTymnQ3QoEFUgtzDDPwpMXJ/eJ/+TR1s4pqxD+H2oZwy8xO8RWmmXCPfvJ0fBPsZqfdV SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:49.7326 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d519d731-0115-483c-6bc9-08d60d9d253d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 06/13] bus/dpaa: add interrupt based portal fd support 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" Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/qbman/bman_driver.c | 17 ++++++---- drivers/bus/dpaa/base/qbman/qman.c | 52 +++++++++++++++++++++++++++++++ drivers/bus/dpaa/base/qbman/qman_driver.c | 7 ++++- drivers/bus/dpaa/include/fsl_qman.h | 20 ++++++++++++ drivers/bus/dpaa/include/fsl_usd.h | 6 ++++ drivers/bus/dpaa/rte_bus_dpaa_version.map | 17 +++++++++- 6 files changed, 111 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/bman_driver.c b/drivers/bus/dpaa/base/qbman/bman_driver.c index b14b590..750b756 100644 --- a/drivers/bus/dpaa/base/qbman/bman_driver.c +++ b/drivers/bus/dpaa/base/qbman/bman_driver.c @@ -23,7 +23,7 @@ static void *bman_ccsr_map; /* Portal driver */ /*****************/ -static __thread int fd = -1; +static __thread int bmfd = -1; static __thread struct bm_portal_config pcfg; static __thread struct dpaa_ioctl_portal_map map = { .type = dpaa_portal_bman @@ -70,14 +70,14 @@ static int fsl_bman_portal_init(uint32_t idx, int is_shared) pcfg.index = map.index; bman_depletion_fill(&pcfg.mask); - fd = open(BMAN_PORTAL_IRQ_PATH, O_RDONLY); - if (fd == -1) { + bmfd = open(BMAN_PORTAL_IRQ_PATH, O_RDONLY); + if (bmfd == -1) { pr_err("BMan irq init failed"); process_portal_unmap(&map.addr); return -EBUSY; } /* Use the IRQ FD as a unique IRQ number */ - pcfg.irq = fd; + pcfg.irq = bmfd; portal = bman_create_affine_portal(&pcfg); if (!portal) { @@ -90,7 +90,7 @@ static int fsl_bman_portal_init(uint32_t idx, int is_shared) /* Set the IRQ number */ irq_map.type = dpaa_portal_bman; irq_map.portal_cinh = map.addr.cinh; - process_portal_irq_map(fd, &irq_map); + process_portal_irq_map(bmfd, &irq_map); return 0; } @@ -99,7 +99,7 @@ static int fsl_bman_portal_finish(void) __maybe_unused const struct bm_portal_config *cfg; int ret; - process_portal_irq_unmap(fd); + process_portal_irq_unmap(bmfd); cfg = bman_destroy_affine_portal(); DPAA_BUG_ON(cfg != &pcfg); @@ -109,6 +109,11 @@ static int fsl_bman_portal_finish(void) return ret; } +int bman_thread_fd(void) +{ + return bmfd; +} + int bman_thread_init(void) { /* Convert from contiguous/virtual cpu numbering to real cpu when diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 7c17027..8730550 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -1040,6 +1040,50 @@ static inline unsigned int __poll_portal_fast(struct qman_portal *p, return limit; } +int qman_irqsource_add(u32 bits) +{ + struct qman_portal *p = get_affine_portal(); + + bits = bits & QM_PIRQ_VISIBLE; + + /* Clear any previously remaining interrupt conditions in + * QCSP_ISR. This prevents raising a false interrupt when + * interrupt conditions are enabled in QCSP_IER. + */ + qm_isr_status_clear(&p->p, bits); + dpaa_set_bits(bits, &p->irq_sources); + qm_isr_enable_write(&p->p, p->irq_sources); + + + return 0; +} + +int qman_irqsource_remove(u32 bits) +{ + struct qman_portal *p = get_affine_portal(); + u32 ier; + + /* Our interrupt handler only processes+clears status register bits that + * are in p->irq_sources. As we're trimming that mask, if one of them + * were to assert in the status register just before we remove it from + * the enable register, there would be an interrupt-storm when we + * release the IRQ lock. So we wait for the enable register update to + * take effect in h/w (by reading it back) and then clear all other bits + * in the status register. Ie. we clear them from ISR once it's certain + * IER won't allow them to reassert. + */ + + bits &= QM_PIRQ_VISIBLE; + dpaa_clear_bits(bits, &p->irq_sources); + qm_isr_enable_write(&p->p, p->irq_sources); + ier = qm_isr_enable_read(&p->p); + /* Using "~ier" (rather than "bits" or "~p->irq_sources") creates a + * data-dependency, ie. to protect against re-ordering. + */ + qm_isr_status_clear(&p->p, ~ier); + return 0; +} + u16 qman_affine_channel(int cpu) { if (cpu < 0) { @@ -1114,6 +1158,14 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, return rx_number; } +void qman_clear_irq(void) +{ + struct qman_portal *p = get_affine_portal(); + u32 clear = QM_DQAVAIL_MASK | (p->irq_sources & + ~(QM_PIRQ_CSCI | QM_PIRQ_CCSCI)); + qm_isr_status_clear(&p->p, clear); +} + u32 qman_portal_dequeue(struct rte_event ev[], unsigned int poll_limit, void **bufs) { diff --git a/drivers/bus/dpaa/base/qbman/qman_driver.c b/drivers/bus/dpaa/base/qbman/qman_driver.c index f6ecd6b..ba15339 100644 --- a/drivers/bus/dpaa/base/qbman/qman_driver.c +++ b/drivers/bus/dpaa/base/qbman/qman_driver.c @@ -113,6 +113,11 @@ static int fsl_qman_portal_finish(void) return ret; } +int qman_thread_fd(void) +{ + return qmfd; +} + int qman_thread_init(void) { /* Convert from contiguous/virtual cpu numbering to real cpu when @@ -135,7 +140,7 @@ void qman_thread_irq(void) * rather than breaking that encapsulation I am simply hard-coding the * offset to the inhibit register here. */ - out_be32(qpcfg.addr_virt[DPAA_PORTAL_CI] + 0xe0c, 0); + out_be32(qpcfg.addr_virt[DPAA_PORTAL_CI] + 0x36C0, 0); } struct qman_portal *fsl_qman_portal_create(void) diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h index b18cf03..e438414 100644 --- a/drivers/bus/dpaa/include/fsl_qman.h +++ b/drivers/bus/dpaa/include/fsl_qman.h @@ -1316,6 +1316,26 @@ u32 qman_portal_dequeue(struct rte_event ev[], unsigned int poll_limit, void **bufs); /** + * qman_irqsource_add - add processing sources to be interrupt-driven + * @bits: bitmask of QM_PIRQ_**I processing sources + * + * Adds processing sources that should be interrupt-driven (rather than + * processed via qman_poll_***() functions). Returns zero for success, or + * -EINVAL if the current CPU is sharing a portal hosted on another CPU. + */ +int qman_irqsource_add(u32 bits); + +/** + * qman_irqsource_remove - remove processing sources from being interrupt-driven + * @bits: bitmask of QM_PIRQ_**I processing sources + * + * Removes processing sources from being interrupt-driven, so that they will + * instead be processed via qman_poll_***() functions. Returns zero for success, + * or -EINVAL if the current CPU is sharing a portal hosted on another CPU. + */ +int qman_irqsource_remove(u32 bits); + +/** * qman_affine_channel - return the channel ID of an portal * @cpu: the cpu whose affine portal is the subject of the query * diff --git a/drivers/bus/dpaa/include/fsl_usd.h b/drivers/bus/dpaa/include/fsl_usd.h index e183617..ec1ab7c 100644 --- a/drivers/bus/dpaa/include/fsl_usd.h +++ b/drivers/bus/dpaa/include/fsl_usd.h @@ -55,6 +55,10 @@ int qman_free_raw_portal(struct dpaa_raw_portal *portal); int bman_allocate_raw_portal(struct dpaa_raw_portal *portal); int bman_free_raw_portal(struct dpaa_raw_portal *portal); +/* Obtain thread-local UIO file-descriptors */ +int qman_thread_fd(void); +int bman_thread_fd(void); + /* Post-process interrupts. NB, the kernel IRQ handler disables the interrupt * line before notifying us, and this post-processing re-enables it once * processing is complete. As such, it is essential to call this before going @@ -63,6 +67,8 @@ int bman_free_raw_portal(struct dpaa_raw_portal *portal); void qman_thread_irq(void); void bman_thread_irq(void); +void qman_clear_irq(void); + /* Global setup */ int qman_global_init(void); int bman_global_init(void); diff --git a/drivers/bus/dpaa/rte_bus_dpaa_version.map b/drivers/bus/dpaa/rte_bus_dpaa_version.map index 7d6d624..0f792a2 100644 --- a/drivers/bus/dpaa/rte_bus_dpaa_version.map +++ b/drivers/bus/dpaa/rte_bus_dpaa_version.map @@ -95,10 +95,25 @@ DPDK_18.02 { DPDK_18.08 { global: - fman_if_get_sg_enable; fman_if_set_sg; of_get_mac_address; local: *; } DPDK_18.02; + +DPDK_18.11 { + global: + bman_thread_irq; + fman_if_get_sg_enable; + fman_if_set_sg; + qman_clear_irq; + + qman_irqsource_add; + qman_irqsource_remove; + qman_portal_ucode_poll_rx; + qman_thread_fd; + qman_thread_irq; + + local: *; +} DPDK_18.08; From patchwork Wed Aug 29 10:47:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145413 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp521942ljw; Wed, 29 Aug 2018 03:50:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZrGZEU1jNPL+bJ6VS7bXLhZcJTGjeqGRnM0/I0GBuRrkpTQVr0jMuh1YFud/cpkTdEuBwF X-Received: by 2002:adf:ef89:: with SMTP id d9-v6mr3930854wro.195.1535539855198; Wed, 29 Aug 2018 03:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539855; cv=none; d=google.com; s=arc-20160816; b=CwXMy2wH557ml87hclIndjGQ5HChXoWqTRe27KmSPGy5980jvDs2eDN8RhwCTTxbsw d+IQDhfcszvLLFbDlh1kBCTZ0CcmIXNx43BdvDdnT6AvzzVw2ckGu72Yxo3SyuIEbt56 8jtzxZAUKN+wmxT+P66PfFpr3USlE5bH74d+Gcrk3Qos8lvI3gfd67HcZzA0RvW8AmhF 5GsnU6NLRoT1WFZ7mVS/YrHRf8B9QM73UNGPEwJqVQX0hvP/RLj7xA4iJ6kWRHhrFi43 kT2aTXjfNVumO+E3peNsQpiEd+i3q/uz08LZXL6ejW+Ffaokt8dwOMzO2hcvOhpkhJ5I V32Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=bftAVH7PoRCTB0pl9vv/eCueU8qV4Il7gcZKzow1kVI=; b=JsNH2oDygp8+HgSqQDh+SdXps5HEqb0BfEMh79eX2uCDZvUrroKORBAD/hb9QMVwo5 kFYo3J2fCXppiW13KlYieVb0CAyC9aYY1lnA6e6U2VuJTOowNImon0bYIYd60swiw4HA eIeRh7qEjISwIaStzo5WDQ+/XhyqSteGYTW7b1aa8QmYgvtltaeo3jMKRYVeHOMw8mRA 47Nrb6IgX028LN5vmKhlsaX/8meUGzt2eJMtj8SL+TMCTV2+9Q0EuVEwl6hJo+enKy6r bFHk7n91OW9fR8UQLJLIlnYvGFSwyZWCEzxCF6wxCwC/agFocSMwJmqG7lIMMMiZXvop Df+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=brh1hVgF; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id a3-v6si3117577wrp.365.2018.08.29.03.50.54; Wed, 29 Aug 2018 03:50:55 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=brh1hVgF; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F2B5358F6; Wed, 29 Aug 2018 12:49:58 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00063.outbound.protection.outlook.com [40.107.0.63]) by dpdk.org (Postfix) with ESMTP id 8E93B4CC3 for ; Wed, 29 Aug 2018 12:49:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bftAVH7PoRCTB0pl9vv/eCueU8qV4Il7gcZKzow1kVI=; b=brh1hVgFYNThZAZz2IF4NqKgVUoE6wY7Xm3dsgZyeX8P1aKR16tJ7ax4cEzmsKhu+M4fChO4UGfBALvP3T4DDho7KKGs8za2MinHln1dmP2rVdbRYW5aV8vaJfOx6KR+7KmZvphUjMmIeqzjqqixWmVwGE50XpcrCgxJOOsCZJE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:51 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:34 +0530 Message-Id: <1535539660-20228-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b14b0929-1be5-4e87-a4f5-08d60d9d264c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:W6I7i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hcEnW+Fyuw48gItam+SN8txgIiRHwwwATT3f6h+/O+OIqORCK1khbHtzkr7J12huYUVKNCmweMbgAXdAgrPOtkIn5tKp15Z8GKTH1VeQzH7Y07ZDJu3rMBUkNdmpVmDxGPuVbrR5ZimnWuN3d8pNf79kqrOF4AEbufDzrzUOktCpWU8Zgo/b/BppgnK6q5mGX2OBDN6MN5cw73RgMIIVomKZhx2cx2k+yHywMGJ+pq5tUj/7YAfSei88baylESdEUEED/79o6mz2nRGlWtHv1hlnlnyhoYJ7CzWvSRL+LzuJ5pbwVd8MZZc+aGf2XgTUNx84AV7n8ApMPmLEmkfD94; 4:ddG6ab+uCbPFqhpkpDhEzRHn0YPfZ52QclV2eyUXYGifGZqSdYdZhRDVfv6+xr3bFAfLUgJFSauIdzQ6sZ3Y8OSLgAGpiqZEPTNq7tB7WgL7qlShCZ+8w5nBTPdVfmSMo0Ve+fcxdLI6JnFIfGBJzk24FFHHP2UlyG/68P1lD/gy7HAbg7KSwVTqn8oOH69Bizu78COi3LE48f2SRToG2IeKM9cM+HxkK9FPHob5tNizaebcTBaLghNqg+BBh3EaePyN0jUW/ai2UkvpuD0rqAUS8PFeopVUVHispGEMR0x+U4TBYq7EiXEjawDdM1q4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:CCOf+D2QB5I3ly7njPP2v6YPOwhgksgwUvT2Rie?= PvdGt3WtVfE3WAsi0t08w1h+XUvWu3i2nOAA0uzFwPrs9BLa2D+1EQsGWX7NN9ciThdsrGsKqvJk2PgC2Kp8Vi/o7YW2NCEKkJ3vuNr3yuo693EikwEk08BCKBCcOtA5kci35vIxTAvkxdcQ/vB2QJ3lYg43Alq1t5js6pOsGIOSbUva0PkFS7rJRWZ5EH7QMVHDdiNM84thMncI7Hq1aDdvBdFFtwjpDCcIE/z7G9vRTm0J8/Wd1aCwTOxhpfnFevjaytTdNIZQkVHh7D6RaBhznaoRDvbWHIWPfnRqTmtKO4oUO00ZND8Qs0QyiGKcDvz652h31yGKa0FoFxmjy7Wtz64KKaB/55PQvqJoA8ZVWQ7aLv4jM1/BSFxsYP/fCg/qGRdHgesC91HFYOdnYEAlo4mI/4G3b6g1Q2/IAMOaJOdbc7MJeHwTo7usqWx+H4hdlJuzWiOKDxWGPI/JpZPCcWxEV3rXbFflaeJ6JYIi6/+xYOZ7qkuBKNKFvHlyzVO0z1ozJ7QgM6bz8QNCfAk47McGb+MuN9RdOlBwRumkSd7W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85jn/oW0= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 6:TxWvSN6qNOwPvYl99MNZ6lRzbjwoQZqyO+JlndkMsHXS1ZZRWxdOLRTUNSOW96HkYnK7FFbGvCQpxbr/8kI5DuaISIifnsW3hPIuNB4tFcMpFS2LLgiW0wDc7vkztyDW8Z7GcbrGiuyp+S7BRR4rM5RI+fJUuuWx4IV6haTs2ggumWgV9Cdnkodkuy57L3+KrNOYwOrLjXdkrucxyoBXr7ePANiXIzH1TlzCzXde17Abtxcf4vpAyG/55jOxZZalUVGyQIPnVDWUYMoUzcePvHS1BZAz8I9HE/eiALwUuyNyh/puOUzmigwBZJLHu8cNdrhM3wCSBwgwk7S+6np7unxNrYO/IzwIMvG+f8XRuLnSEpp30OJotbVYF4yxTKgLFUUR8umb6pt/AZWceUViGQv6KS1knQ7qTYaryjrHhmC5hEvd/CsRjIZhL1uzm/TivzFfKdiMNq9qmXavJWVnKA==; 5:FzI6mGHeEY23tvUR2YnZpgNHlXt48RZ9mbYmjJGs+Q3zxUgqXiF+TkWgX1jmS2+ZW4uEeaV4abvLBJvHJ8rpFIICQvGWk/zFJs0pzYJ5d6G8CECbwuFY1+vFTGSX0KxH0fhKIwCAayIDNHprDw1ZItgqswNI/SCI9Wy9sqcmZOA=; 7:B9dsrbXdgXNzZagxfr+oj0/i154GFm2YxHtsWU7xsol66YbdofSBV8yBi/YCeChEYEjEgpsP/gtp5xcqJRnm99XrXPEXNQ+V0InD2vk5OzFvVSDeYbMybKRQYjb+Slp/l/iBsjkL1f/hecg/P5HbtsTZZEGG63H78N85PYaLmPSL22yXhcNcvNEtng62KpqvHw4fHo2Wgl6y374mxb8htEQ5tTJ5gMe7G4rIr8LECpy5yp7QfatwHgSIPIRaZKLA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:51.5180 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b14b0929-1be5-4e87-a4f5-08d60d9d264c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 07/13] bus/dpaa: avoid tag Set for eqcr in Tx path 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" From: Nipun Gupta Signed-off-by: Nipun Gupta --- drivers/bus/dpaa/base/qbman/qman.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 8730550..71da275 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -2238,11 +2238,6 @@ int qman_enqueue_multi(struct qman_fq *fq, /* try to send as many frames as possible */ while (eqcr->available && frames_to_send--) { eq->fqid = fq->fqid_le; -#ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - eq->tag = cpu_to_be32(fq->key); -#else - eq->tag = cpu_to_be32((u32)(uintptr_t)fq); -#endif eq->fd.opaque_addr = fd->opaque_addr; eq->fd.addr = cpu_to_be40(fd->addr); eq->fd.status = cpu_to_be32(fd->status); From patchwork Wed Aug 29 10:47:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145414 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522074ljw; Wed, 29 Aug 2018 03:51:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnmcdYCXHTAfSHHgVSsviThlrljL7gcdu2P+nqjJGS76j5brzrrde+TKFN0HF939Q16XEC X-Received: by 2002:a1c:8a04:: with SMTP id m4-v6mr3751601wmd.137.1535539864096; Wed, 29 Aug 2018 03:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539864; cv=none; d=google.com; s=arc-20160816; b=ByOc4Tkno72GZpm1AoXXLON/NRJDzDsPqZB/8h1cVh6VHvNRIcOFx3qXVkyXHhIO85 jN+v5vtswwruYCc8yj1xmNB2+ErSdUVLxPLZrsmJZz2luO67mxWToM98vfXMPn+aKQSh 8iwA9qJiiTAq8Z1LdqBkVd+X9Vw++l74LBfK8bXz1WnzXWDxuLMrl4Xv7ih+m9e9BInM n2JLq7UYkzXaET6QfFqQw4zhhBf+cIA17jgIN/jfC5SMWvYOetjy+CB7VAze7/Oi79eu fnJ3USEd8tImVrn2AKweMnJbzhsm4EWKTwJN83Zc/B35O8mJbMp7hJ34f5NA8Ui83Kep Th1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=3GWYm+sFhjb6VEYwuPrTSiydbOOI5cMDvjsjMcc3YCI=; b=a+V8SM6T4ZQPx5QYEVwnWTcGSHt7gsOMJt1g8FK/bn/z1xXNgDAp/KAmixuz0om7F7 R3rleJxX+WeczrZCOEC4M5ia7kWliQ2UD7S9L1eaNKmaQveV9goDkaRSFk980+meWPS4 g+4SNHFWj/eCBr2YJwqxOT5zXtuDbxx5/gjOXlRjignlsM6sMDl52joSuOxvfI9tCBhl oAfIEuhaMmM747kJt8n60ZJnM9z9bpJgQ1DwvVF5pGTrbeJyX8K61b7LrRTWj4QL1T7a JwiYfZ4yqXFbLztqmD5uwR859TJoKaolCzmAEPotCRRWK5o3RnLWAGRIVWEiSjVPHECV 2Wkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=apDcTZ6M; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id e140-v6si3466959wmf.120.2018.08.29.03.51.03; Wed, 29 Aug 2018 03:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=apDcTZ6M; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2ED225A44; Wed, 29 Aug 2018 12:50:00 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00060.outbound.protection.outlook.com [40.107.0.60]) by dpdk.org (Postfix) with ESMTP id C33F1559A for ; Wed, 29 Aug 2018 12:49:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3GWYm+sFhjb6VEYwuPrTSiydbOOI5cMDvjsjMcc3YCI=; b=apDcTZ6MD+zSFV/CPzogUDLtgL7pVFS3b60yG4rPgFqot6nudn9Y0iGctM9Bzbe0rh5dB2r+JKzcDsd8NebY8KBx8oERipblA4V+ia6VkjvS1IyPUIki++zQ//MRO+O1q8eJWiBbDQUJVE0SCgtY6HaJuXvC69ZFIpw+VPnCzTw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:53 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:35 +0530 Message-Id: <1535539660-20228-9-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0855edb1-326d-4843-6224-08d60d9d2735 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:6aKCOj/bTc2eqrsRg9loiBhW6EspqIgi+CjjbEU91/oe1XxtfPXK1Y4XglhC4HFas2ZMYPiEDeNdaOEwK/7D+m4vkr0meptxaCNtawpzLHbhEUUxj2iPEYlHAeVSi0VD/3yWDhgw/ApT6QeJyOT0EJB7aRfwUH+OrAwmEWMugDUErwF4vqJwMZeBABmL/5LFsIMitIonw5PBK4b2N8mjs+GE+7n2kCt7cucyUZB/P2SQiUdkyvlxYNlQr2UC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XKMOAC9IR2WgRAfXz8cIVph0mPqJi7ftvmRmKOBN8kmyMDNU6PAQSjEQbTcyKVLnjONZYyuJ3Eppcv3Ph82jHyCwcTK8e8Hndhbzv5z86Cv; 4:g2nmZy1rDhNBL0VotPhdRXqHvUvTEbntaGEqpXXdViIaYydLUIIs64cPPF6TyUrzJoSNiOZdIfTdK7S9LaQ8VRDxLmJXE0V9QjanHbpo8RH2KmWAkNGMJ7o7wEpRjPLDlGwXeH3GDgnoUsAhAFjN0K57eWJyblxWXQ0nIijSKOZ2BvkDt5C4x78049ByPbV5ipRCdMH9rBzyFi4JMW+V7nw4mvwrA/YuVoDelp8owfV7e6f1OEiaOF/0ERcHv7O8/rm1n+wcSoUOa2k8fgb+jwLlf4PTlDT2PLpO9dxzMbO7ePxualg3GlAFNKwhUiNn X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(14444005)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:0m0jv50dJK4BFveG8npz7zAvAJuroAXNKD0iWGU?= nRI2QUITlcEzsJfUn+WsVuy0/2F0zGhl2ybeAuO2S3qQscf9Rd3XcEQ6/xEVRHy3gb39/nPuC8kziI8RS4OZ7u79xA+HftOSW0yB1T8s0NwSPxCM6nf1S13pb71O1jmtCY2Y0QZE6tgcn8FY3VFbXyV8pIpCkGwyXdkJy/MKQtZGNP4GTMX7Vb5FpH27PIAag0/3vjGk8iepuyu9X+j83hcvcsNEOI0OcvUBnEtxvhO3lYPrpfAW2fodJ+Pp1oO3IsVy9DL599zdacp/DbTbQ2v9hkxNtMDAeGpogOL/3H3E+g6hRZMoNekkShh+y6dkk05lXUdNfqgTgCgbB0JWHrTyHYo5kd7jL1IAIg9WtKT8f+Jwa4a45KDADFKMb3gQZdtQL8pYpnqlKvTsMSyTRigoMqxMHBnGtCPdBxMnIUut1N9DOK6wBa1MmuqEvpLac0ROS7BQWKRfw2QDWSlwDK1OX6YBk0iqJ7V92LVjirrS9syuWvG72acRykyUE9WxZNw24aabYuzXc5Y3RmzV7vCyMgD0GRhsUxdQPL7FvdaDW4rGsihyC67VZzuVtkghcvvpfdtY6qRzCMzJ72DzLlp6AWnouzWDYmvgksCNadBrSRlN2AMqJy6niztJGbYkJJgiJCoLYY/UVN1Kiiotte6A6+vlGX3smvU59Mi+wYAaafUXogVmzsm1pA1QL7ypT157f2RsUrgwn6krfJpGO/41RA7yz7Uqvec73j6RYj9PS+IEy+Rb7N0tTsLYUF4t7gNn4InbhkuIxEEnxjj2IwccX6IAY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F7x5GgbOsB21C/JHk5RwGEH4Hz5o2otBPqkRgAnaEX8ZDgsX5bRMPRzyKKfGo2cH3FUW/wMzGBoVw9TD2iBsveharJpT2b+9jH3zL3wnfyth3Jf/DICjEm/xAxTGvrKMNBi0LTeFvqKwysZW0aTbET7fhksSDATXeGwFYTX9aHAVc75XfAO4UcBw+OS2XFeivK+tPimlUS4BqEjwzDyBzTiJJ97OnlGPS+2MNt4TFw7UIrFBNa9X35+XfjIWA0/pJuWsi5fE3p3jaGCnhsfgn7G9ycTj7NIZBjsYpA==; 5:EY3cYxT1s1g+k2G19e6/vk7+Qkqc+JQKt0ct2B1BTIVAflJFJGUaACpf45/9NVSGR8BBGp8EbuhR4Vroo8YpW/GcTFJYevjxFKRdR+Swh8ZHGDtfn0i0FzPk4CksvRgjTtMUAEEoEhS4kCFEKK4f1mS+fhXL0bSr8X+yqFEoqgw=; 7:Hv/VsyunNK3VRFotpHya3bXHayxGLW3C5TwJok96A3P2X5c9PmAQe+1eeNVp6Yd3hVm3XzQEgCNSsOZs1iD/9mVzO/l/QPALwcVnj+dh4Vjm7J2BhWyeeEHaWzhgDYOIw9yXvi8cxDA1UgxljpzDMocsO1SMUCiyff6gMAroGE4Fe2MwdNSC9CkWe0CwMS71VAAFZ2ZSD8xg3EyE14SbOxrPR3OL29cPGcMaN88aeKbyXItzZgDTb7R4xof1XkUu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:53.0403 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0855edb1-326d-4843-6224-08d60d9d2735 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 08/13] bus/dpaa: avoid using be conversions for contextb 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" From: Nipun Gupta Signed-off-by: Nipun Gupta --- drivers/bus/dpaa/base/qbman/qman.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 71da275..dc64d08 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -852,11 +852,9 @@ static u32 __poll_portal_slow(struct qman_portal *p, u32 is) case QM_MR_VERB_FQPN: /* Parked */ #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - fq = get_fq_table_entry( - be32_to_cpu(msg->fq.contextB)); + fq = get_fq_table_entry(msg->fq.contextB); #else - fq = (void *)(uintptr_t) - be32_to_cpu(msg->fq.contextB); + fq = (void *)(uintptr_t)msg->fq.contextB; #endif fq_state_change(p, fq, msg, verb); if (fq->cb.fqs) @@ -967,7 +965,6 @@ static inline unsigned int __poll_portal_fast(struct qman_portal *p, *shadow = *dq; dq = shadow; shadow->fqid = be32_to_cpu(shadow->fqid); - shadow->contextB = be32_to_cpu(shadow->contextB); shadow->seqnum = be16_to_cpu(shadow->seqnum); hw_fd_to_cpu(&shadow->fd); #endif @@ -1136,9 +1133,9 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, /* SDQCR: context_b points to the FQ */ #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - fq = qman_fq_lookup_table[be32_to_cpu(dq[rx_number]->contextB)]; + fq = qman_fq_lookup_table[dq[rx_number]->contextB]; #else - fq = (void *)be32_to_cpu(dq[rx_number]->contextB); + fq = (void *)dq[rx_number]->contextB; #endif if (fq->cb.dqrr_prepare) fq->cb.dqrr_prepare(shadow[rx_number], @@ -1195,7 +1192,6 @@ u32 qman_portal_dequeue(struct rte_event ev[], unsigned int poll_limit, *shadow = *dq; dq = shadow; shadow->fqid = be32_to_cpu(shadow->fqid); - shadow->contextB = be32_to_cpu(shadow->contextB); shadow->seqnum = be16_to_cpu(shadow->seqnum); hw_fd_to_cpu(&shadow->fd); #endif @@ -1260,7 +1256,6 @@ struct qm_dqrr_entry *qman_dequeue(struct qman_fq *fq) *shadow = *dq; dq = shadow; shadow->fqid = be32_to_cpu(shadow->fqid); - shadow->contextB = be32_to_cpu(shadow->contextB); shadow->seqnum = be16_to_cpu(shadow->seqnum); hw_fd_to_cpu(&shadow->fd); #endif @@ -1556,7 +1551,7 @@ int qman_init_fq(struct qman_fq *fq, u32 flags, struct qm_mcc_initfq *opts) mcc->initfq.we_mask |= QM_INITFQ_WE_CONTEXTB; #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - mcc->initfq.fqd.context_b = fq->key; + mcc->initfq.fqd.context_b = cpu_to_be32(fq->key); #else mcc->initfq.fqd.context_b = (u32)(uintptr_t)fq; #endif From patchwork Wed Aug 29 10:47:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145415 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522207ljw; Wed, 29 Aug 2018 03:51:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaciPCuXK8iW7THaYbPCuNbeFrLc9mLkzCqS2KMpQ++IvDcvzY9Hg29Qcco4uT1opsMYaDC X-Received: by 2002:a1c:1584:: with SMTP id 126-v6mr3904955wmv.24.1535539874174; Wed, 29 Aug 2018 03:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539874; cv=none; d=google.com; s=arc-20160816; b=WbdGXxZZ8zhPxRo19UeHky+UuI1N5x8EF5iA88kXhUncXw62rtgwxbgheR6M/WGQOD A/OGQiKajRu6qBcuRaq3c/LlJRnMaFyGN7L5mJ8QQnVEqW8AkkCTd0PT5JdueB+uk5lR HOVGwbQYzaKOoyi6928UcuYGa8CNqaFh2VHuA09yZ/zsUeOcFhAL49QgFKzgk86gqVBE HiZ5IV5wHzXEtZhKm8aq6FrrEYwa7vJruCGc+vcKW+t2+BIyHDKzscK31oWGemw1Ph98 snpreH2AXoXyPKwbnxPclT4z7xq2SMS6Za2ZK/U5LbJRxBy4E3PqtSI7hs5MA02UEypV u9NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=Yw9yvwReqVofWynEvTvz3fpf3K2xxxuZYhA9fJ70kXY=; b=D5HhuS2uZagmT0DVvIhTmqczQwNKwjJpIYc5T3jLn3IB/xGzJ1Ii04L2WAvkDmot4F KvOCSilLAhhV6X7/QV1moXzC6FaNoWH/JavSyZNg0Q7hJVg0CeNPQiopn2MoNOSDc0W5 85YFEgCTfOvDbyeUhqIdU4FfVBrilvP3F2lzSgPNtFS67rbqMwtZMlZRHGZYtY8ednsi tX/g2z0dV05XsSD/V7aw+QMO27yk7ztb7OvbDV6Mf0/878pppeTxpE7IShHIw+Bnup1n Ayec11XfaCwQ9O25l9XW3S4MHDkEkgbNyiLHFpm3kLdkTLhkOXflhye4rnwBTq51pD37 TRiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=KG7TcMGV; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id g80-v6si3240828wmd.195.2018.08.29.03.51.13; Wed, 29 Aug 2018 03:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=KG7TcMGV; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 356BC5B12; Wed, 29 Aug 2018 12:50:03 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00089.outbound.protection.outlook.com [40.107.0.89]) by dpdk.org (Postfix) with ESMTP id E369A5681 for ; Wed, 29 Aug 2018 12:49:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yw9yvwReqVofWynEvTvz3fpf3K2xxxuZYhA9fJ70kXY=; b=KG7TcMGVQ7+xEWXfuWNnmIhHCRaXidlAAl8H1+2ZNryGu3Jaov4cTUOjQKbjmkYlQYSAuPJ3vvyPWXZaeNPZVfWQOhw4APPZ1p/Iu3mYPp4o4143/yucF3qoNlt3hrPs9Hap3/uszggezc3MTwsQO4OFAb0eTiTtZN2mpZRqILw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:54 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:36 +0530 Message-Id: <1535539660-20228-10-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 54eba6c2-6bd6-4404-213d-08d60d9d27e9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:oq1CA1Z0SZM+mFPItDkh+hLWJpkecooIVwUEqM0Zvxca+f70/RFvmGd71nL2rPensCEjso6CE2HbJfOAJ8dD7iahBPl9IL5G6WxObdqWnhlQu3ZbtEzHnpEx4rBybCbO1LMfDN7WcNSWemxuF74Vxm95go0SIG6S4eerVPu2YZko3iaiAINBJ9BYoHXoL63OpWE6z1XnJqpbnqugpoGQ444YYRqWFiA0I+r/RXxUQ8izU2J55Te7OtgsSI1Otrkd; 25:JkRVCQ2JCQxlMtnLUYLSSiKGiLnAgGEShNi5Z1zCdn6uDvSh0gZLfKL29hkzFLYTraakwro0OakuCPdnQ7yB/X3ESoZjFdpDPoxQBfTosea9kcxRGqPuti+F02vRdhKUO4RIeDdbq6LZpn1ueDQdq3Vy6QEtJOeKgumbemFrqNxSFERfWOKYgdpHuvrw4IvnW4u3ZaTF4n2WVepIisqQEa62q2joN14FIdWA2+inufGadFeytddWCVrB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7EydiOdonkYVL0SO5yVFnqzRLWEVWv7jbWmET0Lf05F7mrotKr1mTpBHqHDskash5LAAGPSYIIxHvssucpr8eOeNXmheKiIMj3YEHomtu4lulUsqk3IiPlyRQ0HeBKH0NtBEWNCg0sSW0WF9g1A5t7s4fMsXcaXASub9ndBEdUBr3CMDoXQ2l X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:mJrtwFHwUbCHZrKTt/Jj2Vl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ysVfKu6eMAB2nWCRmajbPJiooBg==; 5:C0xeGgxysdWwWlO2KICgpBFrlIj8hc/qvi2w9/PxjEh5UFGCxgP/yKsT+yBFVQZA+CTbaGTHSi1Khv4CDwpWzLGFJg/5hEzwXskFmVaEX9/hn/GFDECe2T7vsxppDpu3GCSBDUmJDf3r7Zbqj/E1VYcP0at9H7znRCLat+d1vUA=; 7:F+IHqTdmJdnjZa0a8axdB7nmbXyIjVBhwyHMIerCeAiuHhgkH+qEG4E0RzcWHua4Ovogr3SpSuvxJhw6GUn38VkpifF4+oZHBSuTDpKCzSCpVmMB61w4+5xsGfIRzDYOauYifxC/RXAAgseNgJjWG2hgeJFDkCIkcZzVyOCFX+1U+si/7eQETFSD4slEF7diGpwtU1vSkCONOT1LeQSLhLiUiOT709+SReBWJ9jLrEhdCsrPEUW2T05wjBsC/W/m SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:54.2233 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54eba6c2-6bd6-4404-213d-08d60d9d27e9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 09/13] net/dpaa: rearranging of atomic queue support code 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" From: Sunil Kumar Kori Signed-off-by: Sunil Kumar Kori --- drivers/net/dpaa/dpaa_rxtx.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 3a3a048..6698c97 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -870,6 +870,19 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) DPAA_TX_BURST_SIZE : nb_bufs; for (loop = 0; loop < frames_to_send; loop++) { mbuf = *(bufs++); + seqn = mbuf->seqn; + if (seqn != DPAA_INVALID_MBUF_SEQN) { + index = seqn - 1; + if (DPAA_PER_LCORE_DQRR_HELD & (1 << index)) { + flags[loop] = + ((index & QM_EQCR_DCA_IDXMASK) << 8); + flags[loop] |= QMAN_ENQUEUE_FLAG_DCA; + DPAA_PER_LCORE_DQRR_SIZE--; + DPAA_PER_LCORE_DQRR_HELD &= + ~(1 << index); + } + } + if (likely(RTE_MBUF_DIRECT(mbuf))) { mp = mbuf->pool; bp_info = DPAA_MEMPOOL_TO_POOL_INFO(mp); @@ -916,18 +929,6 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) goto send_pkts; } } - seqn = mbuf->seqn; - if (seqn != DPAA_INVALID_MBUF_SEQN) { - index = seqn - 1; - if (DPAA_PER_LCORE_DQRR_HELD & (1 << index)) { - flags[loop] = - ((index & QM_EQCR_DCA_IDXMASK) << 8); - flags[loop] |= QMAN_ENQUEUE_FLAG_DCA; - DPAA_PER_LCORE_DQRR_SIZE--; - DPAA_PER_LCORE_DQRR_HELD &= - ~(1 << index); - } - } } send_pkts: From patchwork Wed Aug 29 10:47:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145416 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522360ljw; Wed, 29 Aug 2018 03:51:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbvC85P9MhV6/jHMCo3E/ysRrjidMveX7ZVSbOfE5XtR4kdfFadfp/xS1P7NPWKvGkZIDqF X-Received: by 2002:adf:9281:: with SMTP id 1-v6mr4102044wrn.69.1535539883496; Wed, 29 Aug 2018 03:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539883; cv=none; d=google.com; s=arc-20160816; b=KMJwIMF+uA0yJLQzJO81GgswDw50ESE1h7AoFfTCowgnTKqc+0muZxFrOwZvITmbjo z0J30DgIt/y/5ssz8bd734CUwONYwWcrA+uxg2FD1iItIdr7Aw5BGjxPzjHa/rK3/0hg qkPp2aeCJJ1du/IWwkbcgsEETQjxBpswXo3BWpydK350JiReTUqv1oKiPeIG9FWTNpDI Ad4+3hMBrDyQWlc7aiRXsoY7tBLkAyXfWWxnzthKdLNZFPE+mYF7iGhvfqRNsYar5AAP cSootgDhzMfHKnjqXL9Sg3KhcksshHUWHKzrSU96NG82r5M03TiTXIGsQzHKpcfkVI9t PkWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=0hg8V2LlP9afyIJohDdIrDFFCzLnrS57KRv+EsR6KB8=; b=Fca/VSny66qjeEfzSilv3/LHHoIhUVAytoZxhB+oQBD1mB9V/UrkebBQ5kSlVHU8YF yJ8QuPtgRa2TMGN6YLVz/5oZAaADPcrsqYc5prtjKyHn1rg1JLUqlF1CpCBlfVxrZHk9 gp4BiThdjkbg5FN9uNpAwHUh7eYaT7Y6VnquMa0UpmsoLV5ANyPykvZjBg8tMMgwpIJl Hqwn25a815olrJt7g0nuB6apf04wNM2AHmvUa43CcTSy3nrOTJIxjHsCSSG9iPvLVLpW /2QVASFmLk9IIZM726IzO1bjO2ogBeoAekMr2FDxlny+vrBGTDeaNt0FA6xfG3m2U5hn s26A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=eUDyi2gH; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id 80-v6si3367804wmi.124.2018.08.29.03.51.23; Wed, 29 Aug 2018 03:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=eUDyi2gH; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9E73A5B2C; Wed, 29 Aug 2018 12:50:04 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00083.outbound.protection.outlook.com [40.107.0.83]) by dpdk.org (Postfix) with ESMTP id 66A3058C6 for ; Wed, 29 Aug 2018 12:49:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0hg8V2LlP9afyIJohDdIrDFFCzLnrS57KRv+EsR6KB8=; b=eUDyi2gHek8sFeFcVuLsdROOSa0WUGYwZFD1MsZa7LM1tCXjit4lM33bH6APNXzSJ5vl2WzfLraBWn4+EMDGWVGEGDxbqEvmqGXjigdWhKxFb2X1QXmuakHkVkk2RvCuFRne32v+Y65fg2a1ma3GKqx3UX/1WNRK7BdG5d9QdAo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:55 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:37 +0530 Message-Id: <1535539660-20228-11-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ef62cf6-2373-4ac1-55ac-08d60d9d289d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:1RU7XFP1khhHSNMn7JWh//96J8AjcxuTvB0hGjkSafXuO7QbLcDW1sXtQmJr2cwEHd/UxulEoHBVFphvoclDk6/n4034bIaK8/ANcZnB/Xi9atkfaoqayvPKv32sWipsk7qkMMstidjQ6yA9MYLapiI3aJdZLVeaf8GJkWE6p8vGquby0MuEF0GOy0YMEsRpTTpQ9vJQGD/GNdQ9CkERSUXkKy1gha/nTBblNO+LSDE+bV7rxBgIollPBrFZNy7K; 25:jo+58z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lIU8J+rTXUFO7E9nykNG3mQ/+eQVSC3p1BteGax+JEnxxYuB0MVldgeHB7mDSjjTVhZcgQFOLnnOeSbPsQ; 4:oH6nf1DLpaGf7H/CrLJHX/0LwAb62dlRsNiXyfgN/e7XJw0AiuL4cOSAqumPm/9nceSOkl2fqUNTVK5Ohn58TAWVvhBxtsXCMreV8kWaNbdyH7bn0G8dtnLucsMMK9VYkWo9FYDvefTAjapkCxrtc8pDnHdCTYVq1MBShckCiVuxw4n1uyo3LsWhHsEwcG49CTCovpm/ZAixScl2rZ55SvtYoDgYh/cJ2SQjHzZ9xzBSa1b4t+F0tf0s996NYGZbgO7KmPTGtrTmeFWVennx6kAX/Sv/GDCmQh1C6J/g01YziCqUYSyBUgLaKlGmY3cP X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(575784001)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:aMCADvqQDtMlLhHfuL5S/+DUsLu+Io/gKeGwfso?= z6iu7/m1Htw+kV9C1kvjMLgxIrNMlEQGVkDjVQ4V8jYzWe12gDjUUYLA+LL0Gt1f1x8Nokg/p+mKPn6JEPY8UWCUjOFHid7phsaUVJYKw+XA4vq0FzxuvCQ/cw6+N0I1AoKY7ETAQMD131LTbebPufBnQS7qlAvMIKbf53snpAfam6zS5h5lAhNhttrE1ig9UWEL2dg54hbl7kR+tmO7nl3tdpqxNUnuX3uKzGp3v0Rz5K8MyI36oGvEktUthnvegRf9PZPR8sgA0OI52Oi2z4FuvWglhrl8bm5q18zPa0dcwAagdTIGbzw5wUWUg4fUhCQEeu9UavcoXux3cOyGwqGQo2JwS4i0Ws7i2QBJmbrHLvlh5WbpuASCMugxxAo/PQzVlrAqd1+1EbbucvQtmw4sBwgCchqQ7I90BmjJPvkFo2v7xz8xRmw0qQ7gpg5DB7kWrld0s8EL8rkjnyao1K17l8J4LN3U617ZUw5Va81+crgzM2sgBLyzIShaoXxX1shUEmN3RfJzu5IXdBHYXC2F2GKfb+Nv60yidTd8i1OcQOfsI8QSVNa2e3eqPPdIa9z6zoAgiJmzPeEB2JCz6Odc8lqCxRK6C3u5ZZ8iFoS7ls8PXBqAUu3bE0gCf49w2m6PK7gjIIkQuk94xVz4tUPNjd4B4VpRQ9QyNu3CsYd71CwK233PFphbjwpnoecrBdPGZnQ5qgqVt0mUWH4lmfgdzCj85uUMGYJNSen1+mN/NtLB5fVdPMaqoUnlie7j5A0nm1j/ZYuiSBqffDWxMiqetNAE32mtBMDiJADk8VRYhIwN368N2u/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YszVwoHTmYsk/tnN9S+KwjvZ2J6lVxki4Q2AwTbB5rCEzKvTniYin4TmaxdyvIge2JS6VKInjVTsoA4HOKAzegSf6PaPzYfyZtKEnTFEODwxIGhE3AuynW8f4fKA0CED3Rw+/EfhESfaMagTv/SczCRK9QjuwEa+uLjnN1vBk+XSh+K4YGplo9HMW4IoqQjdFP1lIFRXb3arppRU8NUZe0SA6HNBAM069+PoLUuyteksvcholKgkJ7XuRZ0sA6OqWRz/IUB9QGKX4QrKIlVkwg==; 5:FVg2E4zpV2mctkzcGLq0kmqi/ZnrGX2YRxAtniobwHnhwr2A2mUlwgACuVE5UtC+jacXfwXpWQUQl9rlTZFUTGBhZWixP/FzamiN7cftDRsKKjL5+UI4GBFMV2Xr2ExNYvgJ9zMqlmswgurvLQzx0KGiuJFQb4bXiioQQbKqBv0=; 7:3neGkaQ1gfPWSReItMmBYfC3clr2iDNmAameW9+iK7QfVorSMW2Zu9pv7bEUJmUt6bOgzeh60pjtiEvZBo6gNwe/epx5KLBc3SJAlotm8AjWEOBap4r3S5Qbdt+7B3Ackw2vdBqE9uESIQhm7a2pmHPS5PhwLKiGeD6WxrXOvX/94MN3xRi0vhC6AE1ChoaFACaVC81wTjhhfcmsR/Iv6GVdBhN9fKVi+0rolpVf87FePHqg8hVYu/B8vHjxudOS SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:55.4043 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ef62cf6-2373-4ac1-55ac-08d60d9d289d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 10/13] net/dpaa: separate Rx function for LS1046 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" This is to avoid the checks in datapath Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.c | 9 +++++-- drivers/net/dpaa/dpaa_rxtx.c | 60 +++++++++++++++++++++++++++++++++--------- drivers/net/dpaa/dpaa_rxtx.h | 3 +++ 3 files changed, 58 insertions(+), 14 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index df72510..76cd0f7 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -658,8 +658,13 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, "ret:%d(%s)", rxq->fqid, ret, strerror(ret)); return ret; } - rxq->cb.dqrr_dpdk_pull_cb = dpaa_rx_cb; - rxq->cb.dqrr_prepare = dpaa_rx_cb_prepare; + if (dpaa_svr_family == SVR_LS1043A_FAMILY) { + rxq->cb.dqrr_dpdk_pull_cb = dpaa_rx_cb_no_prefetch; + } else { + rxq->cb.dqrr_dpdk_pull_cb = dpaa_rx_cb; + rxq->cb.dqrr_prepare = dpaa_rx_cb_prepare; + } + rxq->is_static = true; } dev->data->rx_queues[queue_idx] = rxq; diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 6698c97..2c57741 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -398,8 +398,9 @@ dpaa_eth_fd_to_mbuf(const struct qm_fd *fd, uint32_t ifid) return mbuf; } +/* Specific for LS1043 */ void -dpaa_rx_cb(struct qman_fq **fq, struct qm_dqrr_entry **dqrr, +dpaa_rx_cb_no_prefetch(struct qman_fq **fq, struct qm_dqrr_entry **dqrr, void **bufs, int num_bufs) { struct rte_mbuf *mbuf; @@ -411,17 +412,13 @@ dpaa_rx_cb(struct qman_fq **fq, struct qm_dqrr_entry **dqrr, uint32_t length; uint8_t format; - if (dpaa_svr_family != SVR_LS1046A_FAMILY) { - bp_info = DPAA_BPID_TO_POOL_INFO(dqrr[0]->fd.bpid); - ptr = rte_dpaa_mem_ptov(qm_fd_addr(&dqrr[0]->fd)); - rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF)); - bufs[0] = (struct rte_mbuf *)((char *)ptr - - bp_info->meta_data_size); - } + bp_info = DPAA_BPID_TO_POOL_INFO(dqrr[0]->fd.bpid); + ptr = rte_dpaa_mem_ptov(qm_fd_addr(&dqrr[0]->fd)); + rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF)); + bufs[0] = (struct rte_mbuf *)((char *)ptr - bp_info->meta_data_size); for (i = 0; i < num_bufs; i++) { - if (dpaa_svr_family != SVR_LS1046A_FAMILY && - i < num_bufs - 1) { + if (i < num_bufs - 1) { bp_info = DPAA_BPID_TO_POOL_INFO(dqrr[i + 1]->fd.bpid); ptr = rte_dpaa_mem_ptov(qm_fd_addr(&dqrr[i + 1]->fd)); rte_prefetch0((void *)((uint8_t *)ptr + @@ -458,6 +455,46 @@ dpaa_rx_cb(struct qman_fq **fq, struct qm_dqrr_entry **dqrr, } } +void +dpaa_rx_cb(struct qman_fq **fq, struct qm_dqrr_entry **dqrr, + void **bufs, int num_bufs) +{ + struct rte_mbuf *mbuf; + const struct qm_fd *fd; + struct dpaa_if *dpaa_intf; + uint16_t offset, i; + uint32_t length; + uint8_t format; + + for (i = 0; i < num_bufs; i++) { + fd = &dqrr[i]->fd; + dpaa_intf = fq[0]->dpaa_intf; + + format = (fd->opaque & DPAA_FD_FORMAT_MASK) >> + DPAA_FD_FORMAT_SHIFT; + if (unlikely(format == qm_fd_sg)) { + bufs[i] = dpaa_eth_sg_to_mbuf(fd, dpaa_intf->ifid); + continue; + } + + offset = (fd->opaque & DPAA_FD_OFFSET_MASK) >> + DPAA_FD_OFFSET_SHIFT; + length = fd->opaque & DPAA_FD_LENGTH_MASK; + + mbuf = bufs[i]; + mbuf->data_off = offset; + mbuf->data_len = length; + mbuf->pkt_len = length; + mbuf->port = dpaa_intf->ifid; + + mbuf->nb_segs = 1; + mbuf->ol_flags = 0; + mbuf->next = NULL; + rte_mbuf_refcnt_set(mbuf, 1); + dpaa_eth_packet_info(mbuf, mbuf->buf_addr); + } +} + void dpaa_rx_cb_prepare(struct qm_dqrr_entry *dq, void **bufs) { struct dpaa_bp_info *bp_info = DPAA_BPID_TO_POOL_INFO(dq->fd.bpid); @@ -468,8 +505,7 @@ void dpaa_rx_cb_prepare(struct qm_dqrr_entry *dq, void **bufs) * So we prefetch the annoation beforehand, so that it is available * in cache when accessed. */ - if (dpaa_svr_family == SVR_LS1046A_FAMILY) - rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF)); + rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF)); *bufs = (struct rte_mbuf *)((char *)ptr - bp_info->meta_data_size); } diff --git a/drivers/net/dpaa/dpaa_rxtx.h b/drivers/net/dpaa/dpaa_rxtx.h index 6de70a7..75b093c 100644 --- a/drivers/net/dpaa/dpaa_rxtx.h +++ b/drivers/net/dpaa/dpaa_rxtx.h @@ -270,4 +270,7 @@ void dpaa_rx_cb(struct qman_fq **fq, struct qm_dqrr_entry **dqrr, void **bufs, int num_bufs); void dpaa_rx_cb_prepare(struct qm_dqrr_entry *dq, void **bufs); + +void dpaa_rx_cb_no_prefetch(struct qman_fq **fq, + struct qm_dqrr_entry **dqrr, void **bufs, int num_bufs); #endif From patchwork Wed Aug 29 10:47:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145417 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522495ljw; Wed, 29 Aug 2018 03:51:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ2W0XjgnTTX8XU4sTHFeZPrLInEAazhhd4P03eMc2GGX5ulwQ/i3iT/W3Xc3atTUdx0T17 X-Received: by 2002:a1c:8291:: with SMTP id e139-v6mr4135126wmd.39.1535539892886; Wed, 29 Aug 2018 03:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539892; cv=none; d=google.com; s=arc-20160816; b=mpW5MdqUsyrLRfmmiiULBHYns4SpPE4gzHZUuN2/0T7YOnKg0HOgSf4YTwpFMuia4M kQ/G15mvYA9IzwjOlzZ/7tqpOFeURd9Ng9s2G3IPCVqWRQpzGonPmUIALHbuBpA/pRx4 YXdXoEwxLcVgF29kbO2Z9OquKdBGROiY+Gpj3kutiZQDJCSlCGB26Hq+zG7H6RVoZ6lM 3ktjv1T6PExgXDQ4JlmaC08XmcJDhdG9/lGIPfDHY4d/8l9P1Yhek+KutO2aMM1F9yfQ zT+iR2Ty01n4Wrn13tl59yoFlp15s3BDAfPEYL5WopsE5pCKT5XC9qluS6oCEh5xNdHL PNOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=zf+z9tsCsVcsnOHZw0MUx2500yUuU9ATBOk9uxZgS2g=; b=OxdhbWAmBvbzORItj/CJaHs2rwxIVKdVTbApx/K0z0yW7+d4LB7BQFmkwu7Ddj+acd 4bZAZ8GTG/KO09qkOvi6/CKDmP2hMdSyKJvDsXcxCk8D/7PA0fN/MLXtx4PZknFV2rXW 0v09tPLTUsWxxlrsJ4vLZ6Fj3bGq2LcFg1T2ecbUEYyTLtYwgEkm0AoCgUUZromCy9qc rGsg9omBDEwmt1JVpX4w5lOKB4Ld5ZAJOfGvahYmIcopdTeDz2YXItOcxQdXnnv6l56V PCFTONPcmIH+CS3OMlD0FNK2AUr6EcRvWNVvuyHU4zJDKpN3LoHt8HgX6/OAhk4Dcgkb OnSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="e0816/Ky"; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id 18-v6si3263568wmv.27.2018.08.29.03.51.32; Wed, 29 Aug 2018 03:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="e0816/Ky"; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 514AB5B38; Wed, 29 Aug 2018 12:50:06 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0084.outbound.protection.outlook.com [104.47.1.84]) by dpdk.org (Postfix) with ESMTP id 90FB056A3 for ; Wed, 29 Aug 2018 12:49:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zf+z9tsCsVcsnOHZw0MUx2500yUuU9ATBOk9uxZgS2g=; b=e0816/KyZv7LoISjhBshZ1YeCVSApEZwFQZj73AXTBh2rbX+NTas7sH5o7sdJytvM2jnmXTdchw4Q8/5coJilyPk2o9kLJ3B9arAQl29t6sG+L4+0q2mpWIn/wxswaOx9aiHIPGotucDR6OyOKAV6FJXFzX54NLLIZb6OYkv0Ak= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:56 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:38 +0530 Message-Id: <1535539660-20228-12-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: af7756d2-dd42-43a8-5b6c-08d60d9d2955 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:trWDH9We2gDZfGDIPnczye2Q6p32998FfpC7eoXapxL2zD1q6HKTuY/92NnkiT5h4CELMPEdgKIuURjkc3Z6IH0OJ10YSaK/oX3+elOqAOtbFPL1xekUI4OuxOVQ2O5qzuO5O97Gr1FkiG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8HVlLyKdTDLVskkwAqWdpXRtK+3Fzqi5bc7k/Itkai4cbMwcSrOHTlDdpay9AnLBJTiQDh/cI8vOe058jfF8Rxv5eSs/SYyrB2Q/o3wpVyuD0iEZM3Oqkri+TljFCGW5iyUGObd5tl2kpphTT1Wu+m0MEQChVMBw4V0lOOC9KknOYDpqIdF3tEHa8ILBrUrrwFysP2NocrgktxjwoUEl; 4:SHstVHgVirX63TzI0sP55mO1yDgQ5AikJDCLGm71jnf+eUIqBsW2Hi8A1YAV093bavUZqZ4vd3j//iDmRpF7fcNbEYmcAWHOfHixl9E/MOJ0TgOMQpw4ZwdteCZ/Vn22vjcQXIi9OH3iL3b4aJwdj7f8vt6CJflMEqTYxJanYE1u8yFhcnCvk9cMdwpEJ9NmEvdclxQrAGG2YvnqrqVZV6eDIf9sN0JyjhW39ozXIlgpVCDPLdxXZ9SXeDEn93OnvNuxYs7RhXD6wFxboilGPBDzn4ubSGZWQo9H6oWa59OrY+R27Ax2X9VKcYf01GGP X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:vogXO+HxeN3ycJdAU9iLkzpLKvTPKicmqx7YCbI?= TnsKRWMAbs7/7k91kS5pMTCQNzguwuMYjIpYwPKbkZ1y9GK6vpoMcqja1xwbxAvlXBQQFJWsDQeBIJzoaGlgqazfoGDdwinhWFFGUZPbdNYbnZ/UNik3cNvllF60eEvpKbYflA9iJnYxnTNrWKY1WvC1TV5070ifbeuG6hYfpJ6iPJFEGaRTQ4hlc39MKnIv/xs1Hb7xWK0oBgaGkGhVY5PpXbPzeVl13bNpdol1I16/UKCOjkX0yqtrDeAH2q1g6qmdHrT8WkFp9eABzlbRaPeuPQrlZQhKHXvhNm683umffloQYN+fFnFfBm/NGnwHA+e4oWz6tccjf3AzCLcyYLXkH1CVD5b0uXuHALNcZg27Rr6nJAXBD/FoX+VYD/Jd+lKas8a/sqbIQgEYMdFq3v7Ef7VCflexSFVwP7oWYLZ1wfHX5XOdOOFy838cO6E7gux+70oTr/cN8ogWzEnZGWttKI/UOUpcNlYEyjYwqdHwGqdLWWgwS67JpR9ZeY0sONVGQb1UKwWOKxYEEZ48OWS6kKRABrpqWlx6G5eJvgy5spXvw073AXinGJbv2zFVnNY23yf977bpnbqfBeB33mfmCSxMbI2uotEwRnCA8O44RbaARP4YDnU03y+mwPppIEyvfzAcD5RqUtvZSDwvEDIxFrZsj5Rl55JDJp44WUWcXNJ3Gxfx2i4TepHUs4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VL8m6i8uLCXo3sMT8UwXzjNgbIp73JJhQJnkia9D5CUPbImxB92hAEKT088TXMkosOzfNQZiiny2Qm/Y8x3aqmLOdWEaaUEVhv9e4w9GmSiet1/PquHWsbvhrQrVidbWv7lkOiklexhyNtugEJ1Xi5D4rUztphO2uiigT7dlVkwquAMW7Z3GLe3V1AygwF/Q338M1I9FwMa5fSt6I37gTlFhEsf5/35aaKxPdU+X3jHVoIvp6RRWi2aiI6hX9i8LplXK/NK6Re0CBseFKfjLvzrz2XkJ0yPX6gYKWSileffyREsSqEPcE1eiZRW0+r+WUCQXhTFVteYeBdOaTwGaOjWo2zlYVWkYwzhYslqEWoSeZbNeTBe/IT4w==; 5:NRMP8LAb+UAW9GhlLCg/z0DrJ+Y+U+57Z71Z0KASBcKyz7nOID28TOzvVRZVvQfg4xbHr9pLX3VcZH8T9Kn1nHD06OHHBXO1ymBwbJ6wAGSDqV8CaNQVFpjHIZhczxAY8vUBjIbgB5xxXevi2TGadNJ8DN2w6bYt4F6P/BzjrSo=; 7:loXbM/YDrB93Sz0sVfCcZcAHB6HZVzR7wG8nKc0qnPhV6ZmIHU+h3KTZnYkwOXUElYD3fnkycSO/BAeH+6u1wJtED/CvmXoALUoNFrOWciNBHKBvQu4UymAQq19aEZPVNyB6j5bgz0FuXkVueNelwodB19Y9uET8fZeBl4i4DMx9SDY3j4EhMbj03SFWWPMDkLCKXuPHAWm/mGwKNVy3CPUv7Fr5N/zCHharHDstowCQK3+V7/Tb7atmqQzIWXim SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:56.6093 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af7756d2-dd42-43a8-5b6c-08d60d9d2955 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 11/13] net/dpaa: tune prefetch in Rx path 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" Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_rxtx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 2c57741..c4471c2 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -370,10 +370,6 @@ dpaa_eth_fd_to_mbuf(const struct qm_fd *fd, uint32_t ifid) if (unlikely(format == qm_fd_sg)) return dpaa_eth_sg_to_mbuf(fd, ifid); - ptr = DPAA_MEMPOOL_PTOV(bp_info, qm_fd_addr(fd)); - - rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF)); - offset = (fd->opaque & DPAA_FD_OFFSET_MASK) >> DPAA_FD_OFFSET_SHIFT; length = fd->opaque & DPAA_FD_LENGTH_MASK; @@ -381,8 +377,11 @@ dpaa_eth_fd_to_mbuf(const struct qm_fd *fd, uint32_t ifid) /* Ignoring case when format != qm_fd_contig */ dpaa_display_frame(fd); + ptr = DPAA_MEMPOOL_PTOV(bp_info, qm_fd_addr(fd)); mbuf = (struct rte_mbuf *)((char *)ptr - bp_info->meta_data_size); + /* Prefetch the Parse results and packet data to L1 */ + rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF)); mbuf->data_off = offset; mbuf->data_len = length; From patchwork Wed Aug 29 10:47:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145418 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522639ljw; Wed, 29 Aug 2018 03:51:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaaUJIFLvwDL9k91cv74LUZSP0fPVm8zCBJEa9wbzM8KpkKiNmPTgNywmP9qs425T2N8lBM X-Received: by 2002:a1c:64c:: with SMTP id 73-v6mr3657644wmg.7.1535539903799; Wed, 29 Aug 2018 03:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539903; cv=none; d=google.com; s=arc-20160816; b=Tj35SjZJojQfEY/AJlXGghqhV0lgfKlkjhbriBIM7Ahh88LiTJL0LXsRDXoa0XH8S/ bxtgch0FmcWsxfaAx9eJm+rIBQKHGYirnCldAVq7GNXid0LRyDNybora+X0BIvP5XUKu ihqh7poAe0nK75dbJUc//aCjs0gtPDsdjxDDE019Uhs3pW46n3FVo52x7w4/zL2abuDd Jxxfy9y/ztfnsV/XWBezrybxHa2/jCVJ4r7FNwciqjogDFRmXorzHhhDTXiSWfUV9SC2 SY9NM7BolGpsFYuQQvbKH1MVmRw4h5I//gPmwyFZuwaNUQf4IJvcOOo31LZ1FeKk2A2V QaQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=u6lM9PwZndaEgupBOcN8kQgTfq2N3MKoBzYdbAnvX60=; b=FrMR6gRHxWI7TmJgltyXctLLGlL58Ap7DjBTHMbetTbDhNZAIl366h/26HUJqf9Qpb Wsj5UHmmsCFquvhpBhE8mGIh64LM0CeRqb8oZBogE42ga4874Le4bkvsHCVtR86rTjbZ SS/PGA2RlHffaVbeRaF2Xjmp7ZxEMKWcqLMN4r5LI1y3s9cDQhoY94KSY6VA64T3df81 ofCtJX1nM/ZyuRJlJJU9KasAQyxvocnKrFnxy8b9uEj/Aog9IjBkjy2VmXiEx3Rjc0IN cDIibJygh+ckB4cku60ODy0xHv1oQ/lc49ipobc2M1utZQfXuKpTx7mJzBGBm5v2+0UM RNiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=MrKMgasc; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id v6-v6si3000138wmf.175.2018.08.29.03.51.43; Wed, 29 Aug 2018 03:51:43 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=MrKMgasc; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2114A5F17; Wed, 29 Aug 2018 12:50:08 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0045.outbound.protection.outlook.com [104.47.1.45]) by dpdk.org (Postfix) with ESMTP id C985B5911 for ; Wed, 29 Aug 2018 12:49:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u6lM9PwZndaEgupBOcN8kQgTfq2N3MKoBzYdbAnvX60=; b=MrKMgascTWDsj8q2NsPCEMrT1UKAtZtQBPth6VmBwtNLA8lE1Pd6noEBUdgaOALxVzCyCmB/85opmWIgFUERIw5XKfgioBRNRjGUHHj5/W9gmwuueRmnc5cbTqAJGQTN07Fz9oJCnyKT+IFAvAe24FCrAauQlfuwrtN7rHyMCkk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:58 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:39 +0530 Message-Id: <1535539660-20228-13-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c09e683a-da06-4ca1-bda2-08d60d9d2a2f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:dVZSD7oWovzvbCPBWx/fUBZtXtqZARYc6K/NfrxMzdQ6s2zcRtDYXPYPwMi3pvibdbHR7yyh8aV3sZFzUXAf58DpxceTUqgRy2Be2VtF+Jrqv5WauVF8NdGhm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uYyOkvhP4U5ObDqxobOOkOpUtA0tYVVFFhHQbxaPqWPpvK2d9VHS6uAc5ZeJkoO008mlV3qjWOgb+iBxiMPKy+fBzqi1jZklIjVb+LlWQovsJ2mHLELjIWaep6Ia9LLb1H+OW0E4NIDn8hpAC/953yCXi8r4qG9DmDWZt7HcaDF6wT8bIzOcIGkjjhYC+zCOs5FrHjPdDBv5RJe6q7ODjSGsI+jKbVQAtY9kRRFZ; 4:tEZqCTq8TVY/kBEcHGxwkNR9VvSPPdP6xR7Us6KeTan+INto8n0ZhzNP3XbQ4xGn1PIHNGqUo7SsYiMuU1iPqt3Xb8hU4dBb5+7BHtPi9TOxSNnw5UJGyde1LRTc/Iz84NleHwh6/SpEh7fpZs19rNQ7UiXBnZ9UWN5P3sC7iZ2wavI89EPs/pdhyZ83g6xoivc5EI8tbKUG8a9GKY1OVdCq+MiAYuVUh4UiFpzKluRdl3mD2v+DdxN5j3ey3oGO2sJOmSHYLIXQnraNwWANN0wjM0xulSmcgvk09cHf9h+g6ERQI2rv8COPwzTLv1Mr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(14444005)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:3BRKZWHpipYqfA8CeKVjZXK6vjdrPZoc1KhJf6N?= kiR/B6Hsz2Jfjxf/SbvQXswK/zIQF5o2Yyw6Krd5NpACC7PO1lygSoZHPshUmn7rg2bswxwLLf8pbg69HhQ4G8DnANK2YFkXBs9wJm7KUC7ZBKtIvzffMU0MHkQYKesKqz8szTv9QZW1kW02ST5FuUhrew9LgaEaz0R78YLZm3Llg7Izo2nSjkSZfg+xT/YLPhV23spEUZ2Fk8rVTlZLwtYchX+icQlt3YxntbsfmCLJzp80fd7GRARVwHQHdc0osdx5RCwIOZPLyFsyy+5orsItw9+IhffP+Oe4z388XdMskRHgvLcKLxROYuF8CicVhYGbQIhIRk9ZZ7VGEqJ1AFYDO4O3SmKyAaem4NArr/5mUK7qZpfLhXwhASNjiXRFrY8pH6LTLxalmxTkflQ28xC1LVSSAQyP+eEQdTcGpyo6MzliZLgLyiwgVLpVV0S1erzHhfiCQbu2gIafVv7cW+SwmurCKoKYR64S7Myi7LISyefWcl7k/ZN3ShNsxb239L/v4B7xlXFK0M2B+YNWgoiJW984LS0nhnaoHFQ76dXY9BtFF4Qmup7L6zDbWu78Lb/3Y9qghRC09/MdWwDEOQ/tdIQcy2vN8+TyFGHcvJO5dvmGEwHkJaGuv1k91mUD3j4cwSMXdWSlOE2C7C/beKuC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2Fbte4uR+nThj8iFibTqh7h0Ego8bAr5v3vR70y0zixzRZgAJNjGXrHYT9wfCWGqS4U4QOL/nJsROPorp4+W+q8FqOmtW9Y7fX1NqS1ZSgEqKuawemkiFf3P47oGlwRzvpsDVAgOWZbh5MbG7f/H/fBf6iydSLJlc/cLDFuUR/4WeQ6Vwq98D4bFPdbasgFdybxesDhdaesfdeYLO+znZLgnFAmvJ9byzwGgyViTvcCgVEaMq5mQ7paNjJNiKle+0lcqJ82bDO8eHPl8joCsnC2h3eCdTG3hIsxVPnmED4yTRIrjx9iNgzYExlFL/iJsqtIMszsFlzawnLA5ZUbGaz1jbGCq0WD82p3danUogpNk9drRLWBN6E/sb+yCc7qW/3qIwk8/Ew7WXzuHiQOAmiiZxLI+yu8PNeiDPatqfHVKvytNA==; 5:EcRdlDSzVQs38tydcddVenPb/U3pAP6SCabD7PYWEId0jT18doFNiSPHHVguhf619ABFISumz6+WSIvCOnYa2evVnoj6mSdPpQQT8sOV+RqUKmQ8+BDJw4C2zRBrfZItxs5Hgt7owVDL7auZyFAMsIBlspDt6R5F0fQZQKegkvw=; 7:JlTDQQzQm3zsfs65T7cfESl5PVGM9Q9bPzbOcgt0K5Uu1HktG2phncEbGMKvFvdsgDF46qVTiYT/eCxM4P+7pZql/ibuAmVhlKRExlq5GksdVVHmZtQApnXSDoPA5Bsfirbm8q3vvixrQdVKtZc45LjNJ3/omtOM/2ZoBqE7pnQqSYoHwlUx0npXWma26ZSrHOPLldtMMorpqQMYr3Y7af+6lvmzAT9VxUWaP2P9et+t5lRTeMyikCxQaiyCXKJY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:58.0395 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c09e683a-da06-4ca1-bda2-08d60d9d2a2f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 12/13] bus/dpaa: add check for re-definition in compat 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" Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/include/compat.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/include/compat.h b/drivers/bus/dpaa/include/compat.h index 92241d2..4122657 100644 --- a/drivers/bus/dpaa/include/compat.h +++ b/drivers/bus/dpaa/include/compat.h @@ -57,8 +57,9 @@ #ifndef __packed #define __packed __rte_packed #endif +#ifndef noinline #define noinline __attribute__((noinline)) - +#endif #define L1_CACHE_BYTES 64 #define ____cacheline_aligned __attribute__((aligned(L1_CACHE_BYTES))) #define __stringify_1(x) #x @@ -75,20 +76,25 @@ printf(fmt, ##args); \ fflush(stdout); \ } while (0) - +#ifndef pr_crit #define pr_crit(fmt, args...) prflush("CRIT:" fmt, ##args) +#endif +#ifndef pr_err #define pr_err(fmt, args...) prflush("ERR:" fmt, ##args) +#endif +#ifndef pr_warn #define pr_warn(fmt, args...) prflush("WARN:" fmt, ##args) +#endif +#ifndef pr_info #define pr_info(fmt, args...) prflush(fmt, ##args) - -#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS -#ifdef pr_debug -#undef pr_debug #endif +#ifndef pr_debug +#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS #define pr_debug(fmt, args...) printf(fmt, ##args) #else #define pr_debug(fmt, args...) {} #endif +#endif #define DPAA_BUG_ON(x) RTE_ASSERT(x) @@ -256,7 +262,9 @@ __bswap_24(uint32_t x) #define be16_to_cpu(x) rte_be_to_cpu_16(x) #define cpu_to_be64(x) rte_cpu_to_be_64(x) +#if !defined(cpu_to_be32) #define cpu_to_be32(x) rte_cpu_to_be_32(x) +#endif #define cpu_to_be16(x) rte_cpu_to_be_16(x) #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN From patchwork Wed Aug 29 10:47:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145419 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522762ljw; Wed, 29 Aug 2018 03:51:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZf7kJcSD+5ODvvKCGBB8sNwGx399ejLyt1aCYabUG6BqIRSs+laBjEe6C7u9gfrY/E0C62 X-Received: by 2002:adf:fc83:: with SMTP id g3-v6mr3915017wrr.216.1535539912316; Wed, 29 Aug 2018 03:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539912; cv=none; d=google.com; s=arc-20160816; b=VCEArN4TNrkNKW3WeMdiS1h9r8700vnW5/8ICNn0uOAr34eVszfZNI773gBh1Xdk+H 5kD3sO6RDSnGn2WU3gVoXNby5Lvw/yrT+AIhEmN9x4ALnK80hFukOMjxp3QUlUHaqZkD LQtD/3802Kb8m4QTjysKvZsuLeME/mLTQNdxWFBK/ZY2U2xrc2JT2ECU4gdsdhT1Lby1 T0XoS0iW8YPY1cUwTc+m9RF0abB2gnC6kDO8eaGtRiZagq3SkXEgUD1+KQODmvyPPnaK AkH+ag2aJHILXDyljcFiMxWrrJX1+IjCrSOiV/H3lmxjfsqKwFiU5/VaEZBidnVV1+tW gYLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=21xkM6mCD+gyRZpy8c039sOnOqEy4z+ttM2gWTnU8O8=; b=Fc0HJrwWex3ok0qvKqLXnwvp6vEJyMyy0YNmpe7cYnolyShheuiUSbll6uwxkiGBGO M6l3+hOz/2ARs4+Zbt14wfxEe0v/jVWVRQrxcWnObCVotZtNSUeIJXLT1wRLFjLu/pj9 r5bT5ovniieelbInr0TThFMfiG0dcvuy++LBGNzfSuiS6Z7eC78OPxn/p+TGeAcPtOt/ 61wmfpaRdCxLDk8vVw6d2PgSqkpga2MXkLAVHWW50iJ8oPfJnV/RZourGupdJeS8ShbB C6ql1pMGEUM6+TZ/Scg/W0Zvq3ZAHQd0gINBoLJLC1njaRjoJS5kpzDOkI43/0oV/x9A 78jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="Y5Rd+A/o"; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id m126-v6si3280054wmd.63.2018.08.29.03.51.51; Wed, 29 Aug 2018 03:51:52 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="Y5Rd+A/o"; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 74F105F1D; Wed, 29 Aug 2018 12:50:09 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0047.outbound.protection.outlook.com [104.47.1.47]) by dpdk.org (Postfix) with ESMTP id 30E505A6E for ; Wed, 29 Aug 2018 12:50:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=21xkM6mCD+gyRZpy8c039sOnOqEy4z+ttM2gWTnU8O8=; b=Y5Rd+A/oOwmIoX4r9NYXtJYB0jb1FF8ouhsxIkKQsuTQybXVAURPhx09W9O3mPHhcjMk6j+kCvKz9k3G9dhpCIKSeXuiN+f/6r6GzP5nZE0RNV1xuYuH8MaRANvs7loqhYnjJ+WeBT+WY0qTY3/WWUpQokcqpj7bsvR9F6sJCJQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:59 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:40 +0530 Message-Id: <1535539660-20228-14-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 76917d3b-b981-4853-e6c0-08d60d9d2ae9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:eR1vyoL+fFPoPoeIhjAP7keTaw8SkzIKSHyDchOvNsHDy1LxxRfvf+Nd0llFjsQVuqHqx/QGksJ+uGQdjdiWb1NRTgoz/VSaur7Yl4nAHUe9M0pW8aCF8ku7vSnlRw+Gt0jXqVJqE/C6BfMEZJlGHiggTNjvxYAXm8TMXwRL41YAnuvh5BfdS3OVn9ZAjixg0oPut8TDZ2irwZOY0e6eKw9lniMI8yLUu5X1Sl1SpKGIaQQh9eclVa1MICWiFKm/; 25:q6PvpUnPwsvx2caB8s//mGj9ivVQBLCBGkMgxhmd/ZPBjGQr+FgjOptIxuiQK6CI/vXm2lBv3uADHf/9FZxPVyV+lCAAVNt8rtqD3O9boKQQT62+O+bK8dXj+zIXqgkf27cNXUes8uYy3Fj+n4Rk3Et8tenya8/kOA+7pLI4A0zhY3KTgKG3ya3W/5U22HUwV+GNBaIKYeg9bW2DV1dKH5HNffEJgb9R34RKM/UIbeATTIXXP6TSDGDUI1fmOP8uc3uXB835aQiD/FBdBNtYVW3f/QAgk1YJVdaFdvoG4o+JiP156VjpjrhivU8TNHuofb6V0nM7z0giYeobRlIR0w==; 31:hIXJpYjXlVO4lXWTjPpoG1k1IBiTqaMrSUxsC9j1u/b9ZPTtPNxkD4Va5B2hHvwkzlWqvfAjsgTNhoZh8l4/Jiy7WQiU+2vkZRt0TrVpqzSdxZTc+NqylHXAP1HjODljteGsOyuSqWn/7QbH0u9n0WzvDj1gAQ0xKSYEaCvorbnEynj75EygQfhwJBxnXo46WMs4GWCxebRx++GROA/patP2c94Gcr9/Z19DzuHgpsI= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2543: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 20:DXiYV+fAz9AlOqeuXApLFuKjoahVKn+IEvR6D6ZYhZMGkpABXLIchyQvZFNC/nz0aMC9NUjXtJZz6XibHdCsAGK/PNAYVSK5P2MoCcSB+dFNKcjXoLMKFQ8eHjbbkVjhRErLKOqFEGc5ye+dxErrMH/sI168mNNP8WcxQJHjQodi6WMaM1P9NEn/ZjNlTe9rAD7fNh2BOfW3JC9jyoyqhDsZ+Hoa+e88IZV3o2Q61VfPRq5saIgd9inOPEokfNVPPD0UYIfHl4uHhkGLH+3zlGkwICiieErSctptUJXBQ6kepVEl45lCQxbeSYbpII5COj137FUXDyLOtHoo2MGG0tMGltN324Sgnjd+zQwOFe63SnXNb92c8xa1t6AtPzEDaCZslxA9MTWi9Pmu74khfsY7lqn8Xbv50GQOihXZ2uuzrbl0x3d7Ot3Bdt4bm5+IVhWlmwslyaL3YlCx3SkctRchJMlpDi98sKzXswMpP7i8wGeeWT4cKQWlYP0AyFEv; 4:XDkTHVEwCmdqtRaci2UvPKZxLopFAhRyAogj82TkWC5SVOeG6XpVCft2Kyz5FcMg4V5kgMEnjLBd11Av6P3Odoom6lKJ+fWIEqsC6fLsUsGJlEEnfCJaM+F2HgYmgUy0Y34EqzOIuKhldozo7Zau/BIuvcZVkLs5FGgLp4XktjBsXd/0hGHNr/K7DfDXG9w4MnmQTgQqfUywbIJOIlp+x1+SoLtstIBLGLmoVcUv2XSe+jyDdhh3WLBp9MAPtjrzLQ8fbuV/Z7eUBqtTRho/34OEULLktkYSOoJ+8GVC/AWHXISvxQTDytpM0YiFWgvM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(14444005)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:L+BikdBpuvb8/PoAY1QyBk6KFmdrOAHdjrneyLF?= zLOzDorkup8tj/RV+EYtLmeXRPvVVn2IiLh6AWCG906Z2bas2be1jGX1tRawH6B6LUic1DdSU5jacwM1EEUydWpZHhXg1HhpY9abgq/YASo2NdVGDJgVHr+acswU2225195rtkAYpgZ7iZDYOGkGqL6lfFQbJZ4iieHPrHZICkiYOpe8uApq2TMmrjBtwekpyuVb7d+q74/fLzIIC5th83CEV9rknxRkAO3KZ2N5iQS4Ql+enBUIEnImMnZJ0EpRNr1LrSAhqGL1d2B0HirSQVRRxesrJHxu3cxDoWAy2BMYkspUV59fUDFpMbs6gp6l/aJGA0sIUtS7NNT2aX8tu/JAgohsF+bOf64ZnSNiF3gx3XkgvkFDo4GJszqfDWRplnQbHGRH5RxaTz7v27dTlwG0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c9+HjhT+Rp/kN8f9sNwj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:59.2625 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 76917d3b-b981-4853-e6c0-08d60d9d2ae9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 13/13] mempool/dpaa: change the debug log level to DP 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" Signed-off-by: Hemant Agrawal --- drivers/mempool/dpaa/dpaa_mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/mempool/dpaa/dpaa_mempool.c b/drivers/mempool/dpaa/dpaa_mempool.c index 10c536b..1c12122 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.c +++ b/drivers/mempool/dpaa/dpaa_mempool.c @@ -122,7 +122,7 @@ dpaa_buf_free(struct dpaa_bp_info *bp_info, uint64_t addr) struct bm_buffer buf; int ret; - DPAA_MEMPOOL_DEBUG("Free 0x%" PRIx64 " to bpid: %d", + DPAA_MEMPOOL_DPDEBUG("Free 0x%" PRIx64 " to bpid: %d", addr, bp_info->bpid); bm_buffer_set64(&buf, addr);