From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0064.outbound.protection.outlook.com [104.47.42.64]) by dpdk.org (Postfix) with ESMTP id ABD68F91A for ; Thu, 29 Dec 2016 06:15:59 +0100 (CET) Received: from DM5PR03CA0015.namprd03.prod.outlook.com (10.175.104.25) by MWHPR03MB2477.namprd03.prod.outlook.com (10.169.200.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Thu, 29 Dec 2016 05:15:57 +0000 Received: from BY2FFO11OLC007.protection.gbl (2a01:111:f400:7c0c::123) by DM5PR03CA0015.outlook.office365.com (2603:10b6:3:118::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10 via Frontend Transport; Thu, 29 Dec 2016 05:15:57 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11OLC007.mail.protection.outlook.com (10.1.14.254) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.789.10 via Frontend Transport; Thu, 29 Dec 2016 05:15:54 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.87]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id uBT5DOIC010218; Wed, 28 Dec 2016 22:15:50 -0700 From: Shreyansh Jain To: CC: , , , , , Hemant Agrawal Date: Thu, 29 Dec 2016 10:46:49 +0530 Message-ID: <1482988612-6638-31-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482988612-6638-1-git-send-email-shreyansh.jain@nxp.com> References: <1482180853-18823-1-git-send-email-hemant.agrawal@nxp.com> <1482988612-6638-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131274621570363706; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(336005)(39380400002)(39850400002)(39400400002)(39860400002)(39410400002)(39450400003)(39840400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(50226002)(8936002)(69596002)(6916009)(2950100002)(68736007)(81166006)(81156014)(8676002)(104016004)(33646002)(356003)(305945005)(110136003)(8656002)(85426001)(36756003)(77096006)(38730400001)(5890100001)(189998001)(2906002)(4326007)(48376002)(626004)(5660300001)(86362001)(50466002)(47776003)(76176999)(50986999)(106466001)(105606002)(92566002)(5003940100001)(2351001)(97736004)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2477; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC007; 1:8u+CejhZIhe+IiNc9kHEE6+1XuWiPBEH1s3No79dd/8T4HBk72rTi9CCmDLEidn80sF+1ufX+VUZRhwiiX8/x+N4a3YDWAE8LQUTQlg3NAGpEdoUBcXRupkgCZTiFPAdYe8Arl3TeiSiAR36dckgkU/YCpxzW5UONCWvDBE2YhTwvj0ZHOSUqQIUo/Hi2ZuiPlUSNGRB73o5vQNtIve2qaPZMrurOetCeQ0Ex/sl+vfTmDrKNpBMgOMrsDwadZFHuMgADGuyyvjZg4zoz7t8WfUSIsD3XT3rRDlOnVfwHLej0OHY5ONY6H5L22Jp3scMFsri8tUcxTqR7TXziXvdRXTRHnHDEhEFfhmM1B6fFnlqJRI8zOEYG4ejTInj1uz/7RQfcjbrQFKsmS0uRY7b/2DyLEm2SsbdwzXBezDVoHd5cGYUFFFh7xqtROq28N5pMQYp/oOxfWQqPsF7sdOIQ+Us0lilp92PgDPjBVTF+AHoTmQMeHpTE+2a6rtYr8s/PQVeV9/6NgpMX23m+78kTmYvRTAArpDAbqxlNAOKzE8ZwES6zpsC7KvFd5EkiWkOWZpGVbm3q2X0JSi4aOpXFYfOXgl7alhdZTraZOVNPh48QMDuGuoFhXXXASPh3TVZvMrmqvoZ29PcTwgbOPoBQFa9JsMq6tJ2zeYzhv2iW/F3pm6i8C0kgGEIBn+1e8vHF7L/tBrKJcWc2NRBPbRkMbP3eB+LhBRrc4wYBbVJHQTwk4A3urirtO/oRycRT1q894TgO2aABUKkSzXAr3Sr4w== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: ecff30bb-87fd-4684-44e3-08d42fa9c51b X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR03MB2477; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2477; 3:u7lwsw5Wz6xUBcWnL9ZvehXKcvNo8q4Hwh1mvYOZrjRFR95RyldE7ZG7MGffPjOlRVK+/FEYKyJtoudXV5dQEmcjgtVYQWQwvdKI6Er2iFBhd3iSrPqEzBxcIOK5HSGzn+H5A/uIGacwTEpfutvoU6V0HQeq5aQZbQN/uV2Ov9cGT0ngfqYnu4GpJ0EcHIM2OqdXWZdVEH8kAyJjjOFBFb8evo/4QkyLfr0YPF2bHwBvjPP66vA4RoPO/xhmDfW8+1yQknLMSYwZ44c85Da9RFc9MziCsQTsJlyW8bVAp9R0dWofFz1GCh6RKspuBmpimw9kI+DChDg2VhC3ZQz4oOPC5MwBtf69ge5/gfz7qJA= X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2477; 25:JTjxkLc6qeSblr6AY6LMFSjBwev/DMbE2U29pFRcGSHTdiIG+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hTVb/V/cC26qqPMbeyslmaIX7w/bGGHuh2/XC2TougKuIlMI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13024025)(13023025)(13015025)(13017025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123565025)(20161123563025); SRVR:MWHPR03MB2477; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2477; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2477; 4:xMBWz3S61RtrdqDgVxa6ycr2qljQahkaj6C/lZ/H0hXDIdrnj72IZMmp2DEVRfRkm9HPYt8ZLClKcH/pmwGbQ+OWPtE8tHP5wTCns817DXTY2+KdkIBDlp7dkaRv2nJcMx5HexAQ4dnUI6QWreBGNtVvlUyyT/CoKH/CVkzJSIM79EiNrJZ7W/xQhzm1SBVfAAELBJVy0jfGrXAp3R8soon3X6ZuLvlrvsT+D4taf35Ci48Iiir2Zi1zVuKFKiYBzOPLyYbhi5BdHxc1XIKh9K+WjDAt/DuwVHukqlSIRU0g1Hxaby2ATmXYjtDEnIafKN8YulqWTyolPjoGWBJHjssxIhZ+oosLQEgevzkTCfwnzFj6hbolzak9eAHQ0VDgIsRHY7CidJP2MGeKseBuc4vCmFGlhdVqpg2AYnWHNcxJNbXuQadk393abVjlVJP5i9jX01uzrNrsnCTea+8J7hoYFuqsu26aRjPuYvFCQjQGx7eqgAGb1aHJiJhzw1FtcKCk2Son+aOtsa5tcGS+xqv6SVhw5nr/JFYQUJhwCnjR+gvo1dx9jlaW2Ne3Vy3VOnur1F4GRGEjAQIlKyti/Fs525pRa/XZtARTHoz4wMRjsPr2vzN3B8YVvi1dZNGCssQs3C2B6cJ6oQUyAnmGgbSH+jvumrfJpge9rn/7ew2m0txsAKp4LI1sHa6h9SE2tN8eSXVG81IxYlPgczOsaW7v+IudbTQmCgllyOczKQhIqdkSGyD3iQFY36YLsQi2 X-Forefront-PRVS: 01713B2841 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2477; 23:W+wE+lReSY89raD1eiu59liVeGUiNY9elKSMGLP8E?= =?us-ascii?Q?BkNsbLCGjkXcxHxQ7tp56ZP7niQOpoKbi9dqozOhs/fxwJCAt1a9s99HJa5j?= =?us-ascii?Q?0WiNptGlJryZBYGvPQFFXtvD0Qg/M3yVnlIv+mwxBIqSyTFDSYwT3i2hrb7j?= =?us-ascii?Q?NuC48NCtB4dazYkGyi/CCaanKIcEakD7PleLkSBDKmaAzL8kb1jzXSedcYxU?= =?us-ascii?Q?Z7/re4gxWRM5WlW/BElIgqFZ1/0otUB+eci1+KQ+9mlIrjHdbnJhBU/ZSBcl?= =?us-ascii?Q?DQ6obtRQ0cjjKvmEy8LDTPQAehJokYVDh9IE1YI9Uqyhq288qecuWt65UnQT?= =?us-ascii?Q?p9Rnib1m4YE4nUNUlXVlLlAIRbuY2kPvNklyHMpxfbnxu1oyzpUYj4Z1z9IO?= =?us-ascii?Q?rZh9NUSNs3qUxs+zJTY3paLGJKvecySk7xQ0tMusr6tpMsJZdA9e+iMk2fL0?= =?us-ascii?Q?kSUJ5CL38nfYYjo6bxQA8reXsqf0k7iwpV1jyJwDDHVxoaj1Rh8PSpxSOacx?= =?us-ascii?Q?ljN/AFVrCOzBx0XRpqlXb71LKFhAcJkOMpl3n4SeCr6EV39gy1f4wIgRZle1?= =?us-ascii?Q?gjaeZnlBYQAHY2K+jtoBpKp6oPXEXkV5c0I66fEGQOmqb3GgnXWvvtapIVmP?= =?us-ascii?Q?kSIVGellTYOZCHkJWU01FsRAbKYLqbi1fc/UiyrgNuXoQGccl9yYzFgVzvbI?= =?us-ascii?Q?ni4OlfJXe3Ukb99l7J9jnRcPAeFepqR5YUL6bGZS2drWZyc9jkg+H0jszy1B?= =?us-ascii?Q?PkHSQBAM/VZneQ5dWfC1tYiP/AQ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yWktBj421C0pUvqcFCU9XhcnJHvnrmSQ6vtKwaxLLQtPpoQAauKsTDEPIOZuOymJ4ei8BMC; 5:wS5vbY3TZCAIb5836qz4skcQhetboK/ggR24xuH1BfMB6VGdBTDqY7DazcmpQstFVlhT0ycgOLBvZAmZxZKtjrqOEDWhnGrdBgI4NUez8R3pNsMmeH9llOy0mr9xkQynZeXukApV3+YkgFlPQi18TikQtrBRZpjTBCoEma09PCNE0bTjt7bfMOzBkk1evEHe; 24:Vp2Q2FwxizsoKUm+ns7+T7oW9sC3Q0KyHY475ybQRBaRqfe9sz+mDSWt3dYv3Af57kSFGq0+2sLg2VRyjEipz9S+IEksWIqvsmTzVJweOyY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2477; 7:wflyTdXQbzs8JZfWEE2JAysa7uZ1s9vFBUf2QyURw0iOdt3Vwzx5gcOlssxgAQNbvfXB7ZTx+TfO/IPTN+YpJtOFl1HwV4Uad9H/4gDpYjaqp0MaKkoYhylK+lY/tbdZVz2mfFC8zDq1Rl1do2p30pfn89deR9gauUYxTiV1GCD876zrpukuG1YvIYOE6lPNI4FRdGVUv7kaKOcSH+K/W4BkqlFTbJToUabyHOJR06rsHi035EzwM2BrqpjsAgz0h6QMJMe9Bs0NPv5Ex7ndBuzZr48dqYbHFAYp6Hu9ZlMOst2m+YUJ/OiOYXKLKyqaQP3Xabudh4vqrjG6NKc23cuRIjBh27Xv2lagGPeBt/T73+iaSQhF0qv0AmZEZAnfSfNZr7p5aHDlXbEvCI4KE4Uo+Cwfrs67R5OdgC4cLkijJBNj2pqPzloo1HukTE9dri2uiLxJQLNghLubuJKVfA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2016 05:15:54.3375 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2477 Subject: [dpdk-dev] [PATCH v3 30/33] net/dpaa2: add support for non hw buffer pool packet transmit 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: , X-List-Received-Date: Thu, 29 Dec 2016 05:16:00 -0000 From: Hemant Agrawal Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 74 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 7d73bde..55068e5 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -191,6 +191,54 @@ eth_mbuf_to_fd(struct rte_mbuf *mbuf, DPAA2_GET_FD_BPID(fd), DPAA2_GET_FD_LEN(fd)); } + +static inline int __attribute__((hot)) +eth_copy_mbuf_to_fd(struct rte_mbuf *mbuf, + struct qbman_fd *fd, uint16_t bpid) +{ + struct rte_mbuf *m; + void *mb = NULL; + + if (hw_mbuf_alloc_bulk(bpid_info[bpid].bp_list->buf_pool.mp, &mb, 1)) { + PMD_TX_LOG(WARNING, "Unable to allocated DPAA2 buffer"); + rte_pktmbuf_free(mbuf); + return -1; + } + m = (struct rte_mbuf *)mb; + memcpy((char *)m->buf_addr + mbuf->data_off, + (void *)((char *)mbuf->buf_addr + mbuf->data_off), + mbuf->pkt_len); + + /* Copy required fields */ + m->data_off = mbuf->data_off; + m->ol_flags = mbuf->ol_flags; + m->packet_type = mbuf->packet_type; + m->tx_offload = mbuf->tx_offload; + + /*Resetting the buffer pool id and offset field*/ + fd->simple.bpid_offset = 0; + + DPAA2_SET_FD_ADDR(fd, (m->buf_addr)); + DPAA2_SET_FD_LEN(fd, mbuf->data_len); + DPAA2_SET_FD_BPID(fd, bpid); + DPAA2_SET_FD_OFFSET(fd, mbuf->data_off); + DPAA2_SET_FD_ASAL(fd, DPAA2_ASAL_VAL); + + PMD_TX_LOG(DEBUG, " mbuf %p BMAN buf addr %p", + (void *)mbuf, mbuf->buf_addr); + + PMD_TX_LOG(DEBUG, " fdaddr =%lx bpid =%d meta =%d off =%d, len =%d", + DPAA2_GET_FD_ADDR(fd), + DPAA2_GET_FD_BPID(fd), + bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size, + DPAA2_GET_FD_OFFSET(fd), + DPAA2_GET_FD_LEN(fd)); + /*free the original packet */ + rte_pktmbuf_free(mbuf); + + return 0; +} + uint16_t dpaa2_dev_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) { @@ -331,8 +379,29 @@ dpaa2_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) DPAA2_RESET_FD_CTRL((&fd_arr[loop])); DPAA2_SET_FD_FLC((&fd_arr[loop]), NULL); mp = (*bufs)->pool; - bpid = mempool_to_bpid(mp); - eth_mbuf_to_fd(*bufs, &fd_arr[loop], bpid); + /* Not a hw_pkt pool allocated frame */ + if (mp && !(mp->flags & MEMPOOL_F_HW_PKT_POOL)) { + PMD_TX_LOG(ERR, "non hw offload bufffer "); + /* alloc should be from the default buffer pool + * attached to this interface + */ + if (priv->bp_list) { + bpid = priv->bp_list->buf_pool.bpid; + } else { + PMD_TX_LOG(ERR, "errr: why no bpool" + " attached"); + num_tx = 0; + goto skip_tx; + } + if (eth_copy_mbuf_to_fd(*bufs, + &fd_arr[loop], bpid)) { + bufs++; + continue; + } + } else { + bpid = mempool_to_bpid(mp); + eth_mbuf_to_fd(*bufs, &fd_arr[loop], bpid); + } bufs++; } loop = 0; @@ -345,5 +414,6 @@ dpaa2_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) dpaa2_q->tx_pkts += frames_to_send; nb_pkts -= frames_to_send; } +skip_tx: return num_tx; } -- 2.7.4