From patchwork Sat Sep 16 10:52:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 112782 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1614280qgf; Sat, 16 Sep 2017 03:53:14 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDKd6Gs29BY26tKLh0lYzesUYPHNjl6FlW8gF1AkrjRarXWTATogMMtiz4gMGCZADXmBlWf X-Received: by 10.28.15.202 with SMTP id 193mr5211467wmp.30.1505559194176; Sat, 16 Sep 2017 03:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505559194; cv=none; d=google.com; s=arc-20160816; b=dpqX1V5NwCnNBxYbljqnznnCUSXWQP2Q4E7gFwO/wK5pn64hcdZ6E8285aoYEUt3Ry UiMqG5J03IYmuFFJWzDZLLK9Oqb+Ti1/ThQh+7ZlgtN5z+bxDi9CyTkxOyfJkjhqN7/d +C9HwQSn8Wbb4tg9KV3pVbRh1JoEFvqkg6SR1R3YeJUPzOkygizj+SJYcXz+zm7MJJRp 00wF5yWgJEWzH2Y3h8M1+i7e7chgJ9wPjbinXq53YEuYLN2Lazp/Ubpr5eDjEgCMraV7 sXPOPE2qGugGxjA+imEmzuM0aou0c22xhLUEswELNW6vJx40axOa68dUEN71jPMEZlqj 6M/A== 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:arc-authentication-results; bh=fK3WhRryjSMWhCOW/4qm15iyZLBmroahUf8JsMadRSE=; b=Lv/VSUqOFG2NbHlz+QXLJgHSRNFcyWFLkpo/scTNuzOp52qwc1ANvnYW5n5Y56qkZX gXV/nS2cdf3Tt4K+cW9HAuYi7glleuuTFiP2Dwi+F/fWBjRCnXc7IbZGb9rXQyxSewyP qMcvaxc+WS4q529j+j9NV85qKqRj5ceKy4YMz+A/fLcWsWvw1eRgvDlpy2GPdDslRZDW Y11A7HEPM1rvVSr42wGYLth18/l/7Q1H3R1VmaMCMDEJPOpmYUsDG/0fIaeuzCmjFGtO s64y2SgpdWi7mSfl4UeIvvsbKCv48+2z0D5Potxc6LJvIujTT0hyAKMnCjinu/hcUrmg ppeA== ARC-Authentication-Results: i=1; mx.google.com; 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 68si2567964wmm.153.2017.09.16.03.53.13; Sat, 16 Sep 2017 03:53: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; 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 93D4C4CE4; Sat, 16 Sep 2017 12:53:12 +0200 (CEST) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0064.outbound.protection.outlook.com [104.47.33.64]) by dpdk.org (Postfix) with ESMTP id 077D2325B for ; Sat, 16 Sep 2017 12:53:10 +0200 (CEST) Received: from CY4PR03CA0092.namprd03.prod.outlook.com (10.171.242.161) by CY1PR03MB2363.namprd03.prod.outlook.com (10.166.207.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Sat, 16 Sep 2017 10:53:09 +0000 Received: from BL2FFO11FD025.protection.gbl (2a01:111:f400:7c09::164) by CY4PR03CA0092.outlook.office365.com (2603:10b6:910:4d::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11 via Frontend Transport; Sat, 16 Sep 2017 10:53:09 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD025.mail.protection.outlook.com (10.173.161.104) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.13.11 via Frontend Transport; Sat, 16 Sep 2017 10:53:08 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8GAr6ul028328; Sat, 16 Sep 2017 03:53:06 -0700 From: Hemant Agrawal To: CC: , Date: Sat, 16 Sep 2017 16:22:14 +0530 Message-ID: <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> References: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131500327889643440; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39860400002)(376002)(39380400002)(346002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(54906002)(316002)(498600001)(36756003)(47776003)(5660300001)(8936002)(76176999)(85426001)(53376002)(50986999)(50466002)(6306002)(16586007)(48376002)(50226002)(4326008)(110136004)(53936002)(86362001)(97736004)(68736007)(2351001)(106466001)(305945005)(105606002)(33646002)(5003940100001)(2906002)(7110500001)(10710500007)(8676002)(2420400007)(15650500001)(81156014)(81166006)(77096006)(966005)(189998001)(6666003)(104016004)(8656003)(6916009)(2950100002)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2363; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD025; 1:X2EVMCcsCmB2tVh7hs4ic0MiWtFuqMYsHR7Sw4Ppj8GIjQ+p72SFGVGYwWYig/PzTrw862FbQj7gjxQMUNEKAdf+Jkjr1GttalFA+RtQmb8pwffX86wcwgM87S5Lt2bQ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 613ef6d2-48e3-458c-a7b0-08d4fcf11e2c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY1PR03MB2363; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2363; 3:fy3qTEDLhKYuVl+CxBvnK3FZsO3URcG0znZZtLPaAZg9NCZlXmaLIwV6u2itktTxjZ8edJIa1rGuaOYMJOAsw1pzUn4WrHGbXregUBo0nnL9GN4FJoQfIauh+T7ih+3mxL7CJes3NqOlc14WWPXfoDlrRVpS6+jpvOeTmTul7guxQXZO0o05R7R3jdM6Zuz3AvYlB0xpx45VG/2YPE6LDU/NgiWO6p9i93KSUkPshOociYcgZVo/fe2rDRc2AKELe2VcjnhSV89NZ7jmK+jhynrEuoTLbPPBLfOTNecS+BYZawhDX5Ai889Cw+n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an:(788757137089)(275809806118684); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6096035)(20161123565025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123556025)(20161123561025)(20161123563025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2363; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2363; X-Forefront-PRVS: 0432A04947 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2363; 23:WXx4zkmsqY62Q4tzG0MCbovmCaWLhmH/hVXUwrhU2?= xC9JEFzk9X5LAR8vaCWu/emAC/x5eGmQLHjR66IPVtZmWFwM1r8QvsuwFNlY+6cIB7R4hC/lij/1ZJTIQN7WJmnoTOSEnTOIyvryq+TqFUZUs5iaXtd8WaS9yp5Xmt7xFkzvKcjj+NJrApsu1hy0qHWj6gPLJLm+54/7ZdpPUi5OxzRqzPF0ydju9AMj8Se/uCOf96TbS89pHlYBPZNIMF/EaEBZTYDLxTxLPI2B2+eMompWLE4fqDACcrzc4x1pe6GJA3T0VYKMkrg1Wywz7RowmhuhDQpYVUINNh5/vdhX+4tfolxLRpwr/CS+P/6QRdusRKQ10Z85K8+j4TX7WvmN+AX9ZYb4C3otjhOMDgm5vubw9nEDHGv0EnbRz7rnokT2I6xF5uiB7GUx/LhZmWDvw0haGT8D/OjVuferYK3GmzNBGxacbmf8OxO+a7+yZkqR5BjOHh88LZkJGjClN3Ikc4FYUxgIcQMCTWKuouD55EFW9jkptDUBvM8xrriAW2iSu+ABlggTphdgIGSdSgMV+ekne51u4z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1/gir+oumdebFfHIPt2/8uBy/+pt7wOhq+k9slo/Jxtqw==; 5:eDO9kvNgpYIkO+aL//hxJRu3TqlQ7vfOdhd1+KYd80XskeUvj61fF9XZlY7z5KgmSW3TVt+UlOiOSmp6r9xeIBG7iOAnIbN+NSmJCD4hKwKK/V5jvLqnYZmV2Im8OBn0bH5ggF2zFKsKlt8yZ/gZWncyyyVGE8XWyNV2Trwlr6Y=; 24:mv6XvC4j6PZ5qyH64CXqq9ooWOR52hj30TXFrylch1hSLKva7jluQuNo6TT1U9NOIZXO/C0eSpvbV/fuKETJ77mwIza63TJxvOBiH+fA+TM=; 7:18Fi0RgR+f0N3pgAhl5oA1JayVAUYsWFtpBAfu7FHPXwW7zdtHu1bQtAhKZkrLKaSB4BJqDJ1KpVc4ZkMwe+LupV93IgRQZX7g0Y5PFczT39dWoY/Z9vGeQ2BbHByC2vL6Ql5KU2skj6KZfcKgWzEfKyMi6swKhqwHmC4Jm7FS9zp/FcVts6gaaVTmWSafvM5lfatAZfW+rlv+Tyb7DgrBcJJCIfPn1LM5YvsNFNYwA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2017 10:53:08.7927 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2363 Subject: [dpdk-dev] [PATCH v3 00/27] NXP DPAA2 PMD updates 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 patchset includes the hw driver upgrades and additional nic feature implementations. patches 1..8 - upgrades the qbman hw driver patches 9..10 - adds the support for LX2160 platform patches 11..27 - adds various features and cleanups in NXP DPAA2 pmd mainly - links status, RSS update, extra stats etc. This patch depends on following [1], [2]. 1. NXP DPAA2: Refactor bus scan/probe code http://dpdk.org/ml/archives/dev/2017-August/073545.html 2.NXP DPAA2 bus driver fw upgrade http://dpdk.org/ml/archives/dev/2017-September/075582.html --- v3: 1. removed the MC fw upgrade patch to be separate patch 2. remove dpaa code, which was added mistakenly 3. fix the comments and compilation issue with debug on for patch #6,7,8 4. added patch to add the devices in natural sorted order 5. fix coverity issue in patch #13, #17, #18, #22 v2: 1. improve the checksum offload suport as per fuser config 2. remvoe checksum errors. 3. some cleanups on log messages. Ashish Jain (2): config/dpaa2: change max lores to 16 bus/fslmc: add support for LX2160 platform Haiying Wang (4): bus/fslmc: qbman replace word copy with memcpy bus/fslmc: add qbman API to do enqueue with multiple frames bus/fslmc: support up to 32 frames in one volatile dequeue bus/fslmc: enhance the QBMAN CENA mode Hemant Agrawal (20): bus/fslmc: remove the export for qbman version function bus/fslmc: qbman remove unused funcs and align names bus/fslmc: cleanup compat file bus/fslmc: clean the qbman support code net/dpaa2: add support for congestion overhead bus/fslmc: add support to check dpbp presence bus/fslmc: cleanup the dpaa2 interrupt support net/dpaa2: add support for link status event bus/fslmc: enable link status interrupt net/dpaa2: check physical link state on up cmd net/dpaa2: improve error and logs for flow distribution net/dpaa2: increase the dist param to 64 bit net/dpaa2: remove RSS restriction with num of queues net/dpaa2: add support for RSS hash update and get net/dpaa2: add support for extra stats net/dpaa2: fix the Tx handling of non HW pool bufs net/dpaa2: log that VLAN extend offload not supported net/dpaa2: checksum support as per user config net/dpaa2: improve debug messaging bus/dpaa2: improve debug log messages Shreyansh Jain (1): bus/fslmc: add devices in sorted order config/defconfig_arm64-dpaa2-linuxapp-gcc | 2 +- doc/guides/nics/features/dpaa2.ini | 2 + drivers/bus/fslmc/Makefile | 1 + drivers/bus/fslmc/fslmc_bus.c | 45 +- drivers/bus/fslmc/fslmc_vfio.c | 112 ++- drivers/bus/fslmc/fslmc_vfio.h | 8 +- drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 9 +- drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 2 +- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 46 +- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 2 + drivers/bus/fslmc/qbman/include/compat.h | 322 +------ drivers/bus/fslmc/qbman/include/fsl_qbman_base.h | 4 - drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 183 ++-- drivers/bus/fslmc/qbman/qbman_portal.c | 973 +++++++++------------ drivers/bus/fslmc/qbman/qbman_portal.h | 140 +-- drivers/bus/fslmc/qbman/qbman_private.h | 174 ---- drivers/bus/fslmc/qbman/qbman_sys.h | 151 ++-- drivers/bus/fslmc/qbman/qbman_sys_decl.h | 25 +- drivers/bus/fslmc/rte_bus_fslmc_version.map | 9 +- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 6 +- drivers/event/dpaa2/dpaa2_eventdev.c | 2 +- drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 45 +- drivers/net/dpaa2/dpaa2_ethdev.c | 459 ++++++++-- drivers/net/dpaa2/dpaa2_ethdev.h | 3 +- drivers/net/dpaa2/dpaa2_rxtx.c | 53 +- drivers/net/dpaa2/mc/dpni.c | 233 +++++ drivers/net/dpaa2/mc/fsl_dpni.h | 49 ++ drivers/net/dpaa2/mc/fsl_dpni_cmd.h | 50 ++ 28 files changed, 1619 insertions(+), 1491 deletions(-) delete mode 100644 drivers/bus/fslmc/qbman/qbman_private.h -- 2.7.4