From patchwork Mon Apr 9 10:22:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 133018 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp109647ljb; Mon, 9 Apr 2018 03:27:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+ancw87Et6jkw2gTMnne69p2rBNJcO99Bdi9kRCqaO5FeJE1WqzuHvnLudKeuUm5z/E3EG X-Received: by 10.28.158.10 with SMTP id h10mr17909670wme.105.1523269630891; Mon, 09 Apr 2018 03:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523269630; cv=none; d=google.com; s=arc-20160816; b=K5Kbhc7xOtEfDwD7HEXTHByS4zutbmKwygRdeKZS24vs4kxv+g4dZrM/kMhv76zCci jjGOyOQVfQZUkMqtwaCp/6IzVhIOU0VYu0kRbMy1PZeRBOqA7svM1g7aqGYJWAdjbeH8 WbfecU4BXmqrm9UH6QCgn8FpA/SFX+CJB0r7pAwbGHliFuvmmE4rVdvcsLgew0kXZ7x9 ceingf/FTT1T/T6kZ72u59L3Yum+HyWAklspUltvD0RzABv8pyI/2wLJ4++NOG3/efWC xIsBlezwmO0bpr4U2FLHZhQyaKrclbSTIh+JlDqGR1ZCIKD+c1phU9Q+t3RQIpjRMv3K sm5w== 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=V/zkkfFstSWBvj3TXJUrkfus2TbLmlA8MhTgutKQJUE=; b=et7ZawZjqZHz6VYmz4p9hWsgDSVSnUmsKLQ0EJMa1GIKmVqbvmv0JQBwY+e3so5f2J /Tt35NEjE1VS5uZxv/dbEMSpTfk8JUase67UaOTwX49YszPVvSK7kt8rVCb8AvG/orqJ N7up7Undy+nUAiM+MbpzVlBnkpDHi+dtBfX4IX/vFxfUQWRTp3fVrie6MzEsiIajyQCO WugTxb88vR0IlRYVirx+RAY3IWE9TKF1ATZPA9C3ZIePT62V5P8LEgrYePff9/dJeh+g cNxCpHw/rXMorKChph33heP7BNHoHcC7CBTNGojzRwGVGp5bizKV+g7yNkxTodgFxD6m PDTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=ORaAc6mi; 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 d4si206088wmh.270.2018.04.09.03.27.10; Mon, 09 Apr 2018 03:27:10 -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=ORaAc6mi; 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 0576E37A0; Mon, 9 Apr 2018 12:26:10 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0051.outbound.protection.outlook.com [104.47.1.51]) by dpdk.org (Postfix) with ESMTP id 06FBB1B7AD for ; Mon, 9 Apr 2018 12:26:00 +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; bh=V/zkkfFstSWBvj3TXJUrkfus2TbLmlA8MhTgutKQJUE=; b=ORaAc6mi7stEeqabq4Ljb2GRUiUR5wFi3vnhkfC4AW1xRgr9gW0w9+I032pQ25180oWPeJK4EgNnsMxgxdLZDC9zTf7XlvorfgUVbMn+70TGz/agCDYF13RCA+o8dqcNm5agAW8jIpfiyoDsnwFckHrgklOCrg7kFZ4/O0jD3Rk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0756.eurprd04.prod.outlook.com (2a01:111:e400:8411::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.653.12; Mon, 9 Apr 2018 10:25:57 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Nipun Gupta Date: Mon, 9 Apr 2018 15:52:51 +0530 Message-Id: <1523269371-28799-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523269371-28799-1-git-send-email-hemant.agrawal@nxp.com> References: <1522918464-4586-1-git-send-email-hemant.agrawal@nxp.com> <1523269371-28799-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR0101CA0067.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::29) To AM2PR04MB0756.eurprd04.prod.outlook.com (2a01:111:e400:8411::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3c5659e6-3bbf-477a-7b11-08d59e0448fd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0756; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 3:u36d4pdaoHC2tndkcYutCWtsB4ZSs8i+V5bmhmbno15dQKbKkiuImDNIEGSLdKmxRqFyeSNqi7+EDmqV81nEkoiT04111+Hp4Gz3T0msexBht3p5T9ZC3va1PWvXUE+fxlHDE2FYKVJbkQMvmS9QF/VMw833UHuyZyCn964dVprc1igFO/uqAlU8lZl5O61cn4rGmzTArfbwqfysL9GghM3wnf3bDuZ8h3k4yH+MwW5YmWXDxIXSfOshCLWFLmYC; 25:baM4RmAxHbc3vFPUIKeYsQEztg3z6I/eI+c766hjzsS6rpKgZ31k6XQm/V2rEnIQ6GpQ1SY/vPhtyvmxHftSQLcqArV30vceRKuc7rP0GvKN+VExgGgwzbDZFBlzb/qRiNAcbmS1CKWKzE0/9OzUOKlGwgnkcaQIVcDVN10ncTE11rUJqZN7qTs2bmieH19GbyWORHJBLDCMFvcfl38cHaPGsLkHrfjaAFvpxL/NJwNqgsiopQiNE2fEeFUGPAg2ZVq3Q35onKr1eRKz+0vZD7txpPdRHz7i7QnjGwwOhgdKh3n9xCfAb6/oe2K12Kyy8LSGzw19GDf2Sciw+ifCdw==; 31:Nm28Ka/rXkVvuaTyjg2eugdTXMEv3vZT1SXyriwvmwCCeDyaE2Seaafm3QTZAmOrgkBwGftBgRyly21zdAZT1Cwl/4S3wiEr+b0YaBegIudd1zG8M6ELIlMHFXHoo8EkRFmWh9a93WW0ohdBO6iZSGZ4m0dKHG20bhcwCyp24h2ETONW2e89oRg8SC0jVSPGKlB+CfDka7RgMiw6gC1fJTZWq/9IUAthEPYsEDFWOKI= X-MS-TrafficTypeDiagnostic: AM2PR04MB0756: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 20:qC7mL9eyThufbJ5/2H8ZjkXdKvoJtVxN88WHmt3gVc1m/Cec8Kpda70zKrj1zuvoe5MrDUhewePuFUltBDsMALAvDMWkrEtEMrBawDY6zdSvuu5tfm+v7b+hk85inqHjsUu4lvAVZlfsnxwH70d5ftqKfrR9Wz+fOGj7BFFzmN7LV1MnYLk7PqDggl8efNPEMZx6KiCh14nAPIC+hdy+1MLyGB8CAVz5gIjqrM4HWbMA2PCAt6oMwhPdyzCws6+RW8tyMN7ii/ufGn1l7D9HvCq2i+cVDrbDI7GZscB/aOfoluDbU895fEohvglDLYGoiNss18Qbzqvw59TT0ZrDtVsZS/Sc/0JSQVdlMXvjdu68/vtReRDROuGKvwbSe7qyNe7zSpsHPOZAbnluw7KHW+SuVKqUPDVO/WlcMwXn3WfjZBjdsS3Dexx1DG/nGB06FGtkMYs1wNohEmNL76aavEP16Gutk8IrcllYLxEbO4WnOOyWcZwzvU6AUn6sFNjY; 4:enK7Xlu/nXyQp+3dXSg/V6PcGyqQamkd1Xn0p3Yf2X6agnHFCdcbjpkRSrZXAOyyusUmuppNAMyWgxYwsvgOOkxwwU4W8e2j4aJQY81EIIeGEXgeEZp10G8XSPVU50B+0lKZqB+I2cP0VPF3l4Zzl+Srs/aULR1txf0XVwCGQKqa8tC24agKNaUyWPpKCgExwNNiSM9kGeq/+5Ivy1GfULmZn1xdOLf28DFQudBwO/fvDfwAtGYuXV7GGxPEhHuaqPWS5B/2g5FPzRn1b51BsheDqWrvXTgUIJKv+8kWFq8Ex8Rnf0B61lK0lp8JPwwAaioNa4Gnlo+olbDiMVH5V5jaiu2KusHt3O9kl0OJtLs+MySlsoSwSErr/pUKXkM1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(227817650892897)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231221)(944501327)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0756; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0756; X-Forefront-PRVS: 0637FCE711 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(39380400002)(39860400002)(396003)(366004)(199004)(189003)(36756003)(48376002)(50466002)(8936002)(6486002)(6916009)(81156014)(50226002)(6666003)(81166006)(8676002)(106356001)(68736007)(316002)(16526019)(3846002)(16586007)(2351001)(2361001)(47776003)(2616005)(26005)(6506007)(386003)(59450400001)(55236004)(66066001)(6116002)(305945005)(97736004)(76176011)(7736002)(956004)(52116002)(51416003)(476003)(486006)(53936002)(186003)(2906002)(575784001)(86362001)(4326008)(6512007)(25786009)(446003)(5660300001)(478600001)(105586002)(5009440100003)(11346002)(83323001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0756; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0756; 23:UtCGjRQ0iUj5aStIZV1M4sUGmIlaq4RlN1ZzhkzNK?= OlKypuoK9tBGZXSjbE38F8qsZVPp96urUBimQbsTdoxWudBRxQPldtqcl0abaxKiH/HeXIHZg8UtZSYELM0nf+0lA1CLkYemXhpzroonuz3epPFLRhmxcpZ1JW/aCcGP/O/F2cKRTmYgg7hcoZyyLL2C6UwwBSjYF/idcu/RRg1KfFQ0wQYmRJ4qwA3WhhYKAdC4mlmpx6FtRrmBgkxqWM8mSHcTVKVxT2h2vMZ7ZhoWeH5ZR2q8WRuPu2ZFhSNzrEPkh972pJvrtlWPOt+jqhlosA+cTGQk2AFypKefjvE3QzXqczt1L5W3wjGd6amTRycbKWGOW6oKeg3oMG3bx0jx7zbIwqggHxjSNLf8Bw4eUGtouxQee0ylwNQNsgr+h42nCRPB8fRuwUP0Ecrxi+96IxdYgfXS/+oeIn3CYyFRmUlXQFg/qFGxnX+iRmxrVGZooy4t85KpV1uYqaPL5DQP1LZ4YvCSBD634TGtDRDOK7Qzi1lem40rGcsnpvwKBTRFdkJ02GvSBKA0R+ysyW5uHPzJuP4c/pkoRxEF67bYTKDssiwQCjgbylAl2JXaypuXmX2OHB5uR/vL2P5EszK2cAG2e1qFUBACeHtFjQLZvIKs5b15JOrG1lrQDAZ9tPMZgB38LXmcuPBzvarVe1b4MyvVilK/4bWiNRdaiXTTYROv37iOmk3ivOXxmwn24z8xWl/GLJIyq/u7qBaja9in42LER7x176hANqcibUCUlHGcGKiBJwdn+61xmM7m+L6jijkPsJ61Cwgss2Pmtgy3aWIUwR57PqpbDQerELX94JLq5yjrtmw1HnGiZsbAGShH9T2i12LurWFdklf509VXFiLh/gR9nYxC/2u0WhWHmQTbIvEjY+rKo+wuLW3TAyx3UzmwcKg4zw3Jmrmktc6nn8dp98cgIQNapSqOUeM5JUeEXUX/SptAdn2h/fB3+wlcYCF+emPWmEAtT+0f+DiYS9UEHIOur/LONecGgnW/tysxYarsGfcCsKdI36TaFIUasnFod64qXJbRL+wRIwhpgQtV+pGX931OTFXuFyNvyxi8IzvnhQTTzPPDDxpgujglv6ykqm1wxymrPbEDh7zCcbVnfApniYZnbLUdRqJ3f3XCUgTolcAxXBfYa6Hv5s6vmbER0J9lQC8QVb/Dyt3QHvrER7m4vjPLHGQZp9SWXd/3gLqBLwFPtRQXS+LQ6QtJY2qYj5vvPi0VcUvKxi4PFE23JxBf84MsAuxOOttXFMVHODv4w3ofdo34R08S1abt0STmGBcIXmfCOfI+UvmzfOPAxQKYM7L4vM7zhLIYA== X-Microsoft-Antispam-Message-Info: OhWuXYiV3u8qcoE5M7D0Xz9vVG61gaRbYBHy+sVJhIw3egRrm+I0ArCWL44AExrt/BtNNjJX7Joy89sc9AvXeDb5h/es1abEbaTcQ2BbYAa7fZs3gLvqOrPi8KgvRoSuxlH66ppzbS6k4GhwPPYJPyNhWHq17MSuiAECcsJCNUDHUqCN5VetcUmJDyPaSe8h X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 6:XdjaE8tdGFYd9XKy+yqslYbpsVZG/CyGJpB0Inaczt+tndNgH+uz5pm7f0bCvpRJTwO37brbk1vQ1FzmkpbC+ANOdASwdd2xKmocEJgF0UuWPl4+W5Gc/IDFoWZsbY3DdAmE36cLZaBK1ntP3A1eGhO9qlUvrkf5o2PSfrefcfxz0ijbR9yBLNy3Cn6kmWt0mVJtiRLiTmksqSegw89RX9wIKYE4GJcvrbXFfqyB+kDawO06sbuub1VYPyOmlg9OxlRUl4cCcfx53e7P2PFLQkvl4C5Lb2PUbw1zp7f6RECW0KLuiyx8RrjJMXkRn5q5f9aCAdbd5EjVGuieItYoeDcAsu3uPu6JXaQ9aNJUfTpS975Xmq97WJC6ps76yEfXAnztk14a6e5LSuqKAcaQzm8ywCLkXN0zOl87xO1N+N9VZFj3FUZr+60aV5qn64+E7pNVkKXDQNgzig/6VsXlYg==; 5:R9JnSbA3X7sEiShElt0xWjDEuW7ipDwBaybHsS9DumS8xNRWwac9ypQOAdlqd/xGhBnVqhZlVC3Y+Xo804GL428Y5aUUX5JxAtos+aTFXR07+39NHA9GZ6zm8/Zo5oJ3T98Gx4mSpSkFOCCaCfQKfc7ew9xTj1uy9GnmYaZRMpI=; 24:eEz/z89/h4XWEKavaxjRhfYUXtni+Q5Zet/3rzH+ubRtgNKNoxhfkHOVy3J5KLhTZfjKOIyTlE5KefYZgv5K2flVpvLJ2jouW94dmfK6DD8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 7:Miop/ZjG1ZUHVs7Eqt5wahyT6w1rFvbUzteK9ftEGfaZ5QTmQHJ8VdzFVse+GMCmMzmV9Z8sOQQW5zm4gfzL6RByyo+50N0s38F0CFJfEPY13bUZIrtt2ix0Yn7iCamC+XwZLtD/4OzK61dEHN1v551781abID1cjTW0HyPaws77AGdZzHojBJHh5yOfIBetJOQdM+no3wEhhzSMdk/ibkpIj9Pp17o5+1R2VCrjDc9EfVpepWN4q5D46BT63B3U X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2018 10:25:57.3485 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c5659e6-3bbf-477a-7b11-08d59e0448fd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0756 Subject: [dpdk-dev] [PATCH v2 8/8] bus/fslmc: configure separate portal for Ethernet Rx 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 In case of Receive from Ethernet we add a new pull request (prefetch) but do not fetch the results from that pull request until next dequeue operation. This keeps the portal in busy mode. This patch updates the portals bifurcation to have separate portals to receive packets for Ethernet and all other devices to use a common portal. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 27 ++++++++++++++------------- drivers/bus/fslmc/portal/dpaa2_hw_dpio.h | 8 ++++---- drivers/bus/fslmc/rte_bus_fslmc_version.map | 8 +++++++- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 12 ++++++------ drivers/net/dpaa2/dpaa2_rxtx.c | 29 ++++++++++++++++------------- 5 files changed, 47 insertions(+), 37 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c index 881dd5f..a741626 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c @@ -350,7 +350,7 @@ dpaa2_affine_qbman_swp(void) } int -dpaa2_affine_qbman_swp_sec(void) +dpaa2_affine_qbman_ethrx_swp(void) { unsigned int lcore_id = rte_lcore_id(); uint64_t tid = syscall(SYS_gettid); @@ -361,35 +361,36 @@ dpaa2_affine_qbman_swp_sec(void) else if (lcore_id >= RTE_MAX_LCORE) return -1; - if (dpaa2_io_portal[lcore_id].sec_dpio_dev) { + if (dpaa2_io_portal[lcore_id].ethrx_dpio_dev) { DPAA2_BUS_DP_INFO( "DPAA Portal=%p (%d) is being shared between thread" " %" PRIu64 " and current %" PRIu64 "\n", - dpaa2_io_portal[lcore_id].sec_dpio_dev, - dpaa2_io_portal[lcore_id].sec_dpio_dev->index, + dpaa2_io_portal[lcore_id].ethrx_dpio_dev, + dpaa2_io_portal[lcore_id].ethrx_dpio_dev->index, dpaa2_io_portal[lcore_id].sec_tid, tid); - RTE_PER_LCORE(_dpaa2_io).sec_dpio_dev - = dpaa2_io_portal[lcore_id].sec_dpio_dev; + RTE_PER_LCORE(_dpaa2_io).ethrx_dpio_dev + = dpaa2_io_portal[lcore_id].ethrx_dpio_dev; rte_atomic16_inc(&dpaa2_io_portal - [lcore_id].sec_dpio_dev->ref_count); + [lcore_id].ethrx_dpio_dev->ref_count); dpaa2_io_portal[lcore_id].sec_tid = tid; DPAA2_BUS_DP_DEBUG( "Old Portal=%p (%d) affined thread" " - %" PRIu64 "\n", - dpaa2_io_portal[lcore_id].sec_dpio_dev, - dpaa2_io_portal[lcore_id].sec_dpio_dev->index, + dpaa2_io_portal[lcore_id].ethrx_dpio_dev, + dpaa2_io_portal[lcore_id].ethrx_dpio_dev->index, tid); return 0; } /* Populate the dpaa2_io_portal structure */ - dpaa2_io_portal[lcore_id].sec_dpio_dev = dpaa2_get_qbman_swp(lcore_id); + dpaa2_io_portal[lcore_id].ethrx_dpio_dev = + dpaa2_get_qbman_swp(lcore_id); - if (dpaa2_io_portal[lcore_id].sec_dpio_dev) { - RTE_PER_LCORE(_dpaa2_io).sec_dpio_dev - = dpaa2_io_portal[lcore_id].sec_dpio_dev; + if (dpaa2_io_portal[lcore_id].ethrx_dpio_dev) { + RTE_PER_LCORE(_dpaa2_io).ethrx_dpio_dev + = dpaa2_io_portal[lcore_id].ethrx_dpio_dev; dpaa2_io_portal[lcore_id].sec_tid = tid; return 0; } else { diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h index c0bd878..d593eea 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h @@ -13,7 +13,7 @@ struct dpaa2_io_portal_t { struct dpaa2_dpio_dev *dpio_dev; - struct dpaa2_dpio_dev *sec_dpio_dev; + struct dpaa2_dpio_dev *ethrx_dpio_dev; uint64_t net_tid; uint64_t sec_tid; void *eventdev; @@ -25,8 +25,8 @@ RTE_DECLARE_PER_LCORE(struct dpaa2_io_portal_t, _dpaa2_io); #define DPAA2_PER_LCORE_DPIO RTE_PER_LCORE(_dpaa2_io).dpio_dev #define DPAA2_PER_LCORE_PORTAL DPAA2_PER_LCORE_DPIO->sw_portal -#define DPAA2_PER_LCORE_SEC_DPIO RTE_PER_LCORE(_dpaa2_io).sec_dpio_dev -#define DPAA2_PER_LCORE_SEC_PORTAL DPAA2_PER_LCORE_SEC_DPIO->sw_portal +#define DPAA2_PER_LCORE_ETHRX_DPIO RTE_PER_LCORE(_dpaa2_io).ethrx_dpio_dev +#define DPAA2_PER_LCORE_ETHRX_PORTAL DPAA2_PER_LCORE_ETHRX_DPIO->sw_portal /* Variable to store DPAA2 platform type */ extern uint32_t dpaa2_svr_family; @@ -39,7 +39,7 @@ struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(int cpu_id); int dpaa2_affine_qbman_swp(void); /* Affine additional DPIO portal to current crypto processing thread */ -int dpaa2_affine_qbman_swp_sec(void); +int dpaa2_affine_qbman_ethrx_swp(void); /* allocate memory for FQ - dq storage */ int diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map index b7db074..f519651 100644 --- a/drivers/bus/fslmc/rte_bus_fslmc_version.map +++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map @@ -2,7 +2,6 @@ DPDK_17.05 { global: dpaa2_affine_qbman_swp; - dpaa2_affine_qbman_swp_sec; dpaa2_alloc_dpbp_dev; dpaa2_alloc_dq_storage; dpaa2_free_dpbp_dev; @@ -101,3 +100,10 @@ DPDK_18.02 { rte_fslmc_get_device_count; } DPDK_17.11; + +DPDK_18.05 { + global: + + dpaa2_affine_qbman_ethrx_swp; + +} DPDK_18.02; diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 784b96d..23012e3 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -1159,14 +1159,14 @@ dpaa2_sec_enqueue_burst(void *qp, struct rte_crypto_op **ops, qbman_eq_desc_set_response(&eqdesc, 0, 0); qbman_eq_desc_set_fq(&eqdesc, dpaa2_qp->tx_vq.fqid); - if (!DPAA2_PER_LCORE_SEC_DPIO) { - ret = dpaa2_affine_qbman_swp_sec(); + if (!DPAA2_PER_LCORE_DPIO) { + ret = dpaa2_affine_qbman_swp(); if (ret) { DPAA2_SEC_ERR("Failure in affining portal"); return 0; } } - swp = DPAA2_PER_LCORE_SEC_PORTAL; + swp = DPAA2_PER_LCORE_PORTAL; while (nb_ops) { frames_to_send = (nb_ops >> 3) ? MAX_TX_RING_SLOTS : nb_ops; @@ -1307,14 +1307,14 @@ dpaa2_sec_dequeue_burst(void *qp, struct rte_crypto_op **ops, const struct qbman_fd *fd; struct qbman_pull_desc pulldesc; - if (!DPAA2_PER_LCORE_SEC_DPIO) { - ret = dpaa2_affine_qbman_swp_sec(); + if (!DPAA2_PER_LCORE_DPIO) { + ret = dpaa2_affine_qbman_swp(); if (ret) { DPAA2_SEC_ERR("Failure in affining portal"); return 0; } } - swp = DPAA2_PER_LCORE_SEC_PORTAL; + swp = DPAA2_PER_LCORE_PORTAL; dq_storage = dpaa2_qp->rx_vq.q_storage->dq_storage[0]; qbman_pull_desc_clear(&pulldesc); diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 532de94..d1cfe95 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -481,14 +481,15 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) struct queue_storage_info_t *q_storage = dpaa2_q->q_storage; struct rte_eth_dev *dev = dpaa2_q->dev; - if (unlikely(!DPAA2_PER_LCORE_DPIO)) { - ret = dpaa2_affine_qbman_swp(); + if (unlikely(!DPAA2_PER_LCORE_ETHRX_DPIO)) { + ret = dpaa2_affine_qbman_ethrx_swp(); if (ret) { DPAA2_PMD_ERR("Failure in affining portal"); return 0; } } - swp = DPAA2_PER_LCORE_PORTAL; + swp = DPAA2_PER_LCORE_ETHRX_PORTAL; + if (unlikely(!q_storage->active_dqs)) { q_storage->toggle = 0; dq_storage = q_storage->dq_storage[q_storage->toggle]; @@ -500,11 +501,12 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) qbman_pull_desc_set_fq(&pulldesc, fqid); qbman_pull_desc_set_storage(&pulldesc, dq_storage, (dma_addr_t)(DPAA2_VADDR_TO_IOVA(dq_storage)), 1); - if (check_swp_active_dqs(DPAA2_PER_LCORE_DPIO->index)) { + if (check_swp_active_dqs(DPAA2_PER_LCORE_ETHRX_DPIO->index)) { while (!qbman_check_command_complete( - get_swp_active_dqs(DPAA2_PER_LCORE_DPIO->index))) + get_swp_active_dqs( + DPAA2_PER_LCORE_ETHRX_DPIO->index))) ; - clear_swp_active_dqs(DPAA2_PER_LCORE_DPIO->index); + clear_swp_active_dqs(DPAA2_PER_LCORE_ETHRX_DPIO->index); } while (1) { if (qbman_swp_pull(swp, &pulldesc)) { @@ -516,8 +518,9 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) break; } q_storage->active_dqs = dq_storage; - q_storage->active_dpio_id = DPAA2_PER_LCORE_DPIO->index; - set_swp_active_dqs(DPAA2_PER_LCORE_DPIO->index, dq_storage); + q_storage->active_dpio_id = DPAA2_PER_LCORE_ETHRX_DPIO->index; + set_swp_active_dqs(DPAA2_PER_LCORE_ETHRX_DPIO->index, + dq_storage); } dq_storage = q_storage->active_dqs; @@ -583,11 +586,11 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) num_rx++; } while (pending); - if (check_swp_active_dqs(DPAA2_PER_LCORE_DPIO->index)) { + if (check_swp_active_dqs(DPAA2_PER_LCORE_ETHRX_DPIO->index)) { while (!qbman_check_command_complete( - get_swp_active_dqs(DPAA2_PER_LCORE_DPIO->index))) + get_swp_active_dqs(DPAA2_PER_LCORE_ETHRX_DPIO->index))) ; - clear_swp_active_dqs(DPAA2_PER_LCORE_DPIO->index); + clear_swp_active_dqs(DPAA2_PER_LCORE_ETHRX_DPIO->index); } /* issue a volatile dequeue command for next pull */ while (1) { @@ -599,8 +602,8 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) break; } q_storage->active_dqs = dq_storage1; - q_storage->active_dpio_id = DPAA2_PER_LCORE_DPIO->index; - set_swp_active_dqs(DPAA2_PER_LCORE_DPIO->index, dq_storage1); + q_storage->active_dpio_id = DPAA2_PER_LCORE_ETHRX_DPIO->index; + set_swp_active_dqs(DPAA2_PER_LCORE_ETHRX_DPIO->index, dq_storage1); dpaa2_q->rx_pkts += num_rx;