From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0065.outbound.protection.outlook.com [104.47.40.65]) by dpdk.org (Postfix) with ESMTP id DCA93999D for ; Thu, 25 May 2017 20:09:56 +0200 (CEST) Received: from MWHPR03CA0021.namprd03.prod.outlook.com (10.175.133.159) by BN3PR0301MB0899.namprd03.prod.outlook.com (10.160.156.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 25 May 2017 18:09:55 +0000 Received: from BN1BFFO11FD013.protection.gbl (2a01:111:f400:7c10::1:189) by MWHPR03CA0021.outlook.office365.com (2603:10b6:300:117::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Thu, 25 May 2017 18:09:54 +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 BN1BFFO11FD013.mail.protection.outlook.com (10.58.144.76) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Thu, 25 May 2017 18:09:54 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v4PI84WP022340; Thu, 25 May 2017 11:09:50 -0700 From: Nipun Gupta To: CC: , , , , , , Nipun Gupta Date: Thu, 25 May 2017 23:37:45 +0530 Message-ID: <1495735671-4917-15-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> References: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131402093941764927; (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)(39400400002)(39850400002)(39860400002)(39410400002)(39840400002)(39450400003)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(50226002)(54906002)(38730400002)(53936002)(8656002)(85426001)(33646002)(110136004)(86362001)(305945005)(106466001)(356003)(5003940100001)(81166006)(47776003)(6916009)(105606002)(5660300001)(77096006)(8936002)(8676002)(4326008)(48376002)(2351001)(6666003)(50466002)(189998001)(2950100002)(76176999)(36756003)(50986999)(104016004)(498600001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0301MB0899; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD013; 1:TBjWiJIPOOfiFLTHSHrOud0jZZLV8g36dfDLhFjzM+0yIJW/hv1OHCo/CkvZkunZp1g32QHOPIu+0rnTGgujkOs4svZxtPpB/umITP55VXY/eLDScm5u+tzgTxEOJSV7C8DUVvhB2fJpLRzbuznv9jFO3bOGQ32ydeRElEOw7yOT9r0CMgLUxbIfFZiNtwDLwEnvcMUcExSR5h55dHylf3YOz2tvSpuCuY3G+f5h8SgSD+ukrwaDKrrgSWHa5c02k37SrcghOd0GT4mUrE5thU9PaBHvo4BYmC/0qLuptRE2f186KUt+sm3FlOYJKZ+srhZWl8raqAZ/z78g4y4NK5X2Jcf5RDSAX42EUU0I6iaUsXNGwm+UP1rCkIbpIaagJnGRxlhnV0t+SAHjkq/REJlQFaebkC/4Utvy/v4oOXYGEUbmTRWSYsOGey2LUSsHBODobxr7DIXXDligiSanNt5t0Vx9wpT7OKWwP0Nyh3V8ng0T9s6qIR/xDwivzWGggAS3mDQ4cQ4AtPPzLaBXNU6S8gLIXJV+udCslJXp139gUkx3htTunJiXuksekkYTW1USW+k4l5ME6ua+jBg3V1KM14Fv5OxnHEDEUXclqVgVE/k+oXAhmOm7LV9hB1SWLtM15Up3kAV2HOWEKiZgoYdnjl+QDV11uNxTYbjigz4lzsJEOyfBBVsaE7YTqmCD8wDyHb2d10EAablRFXmIOw== MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0301MB0899: X-MS-Office365-Filtering-Correlation-Id: 40e1376a-2523-48be-333f-08d4a3993e9b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BN3PR0301MB0899; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0899; 3:W4Suxc/7FIpa/iIs3BwNmd4fOGTM77bcoAYQdMSKkd9CT1/Ri9cx3lqUuKOfHFgzQ+9lMHFaJ00W5gqdPF9oTg1geM+ZShMJ3fKmzAKHUfLqw1sUzy3Ob7hmR8nnQ3VOpoO3Lip1pJtji+xOK3tW5oBB5PPbcWfEW6elURKfaJT+K5yfe4ixir56VsHBD0Xnuks6f3oAZbRbaaeVSEgxaEUNmsAnbf3ziq7jrZAlC7xf4VZ7v+O2aTe3YbGEEvDH36e4M+j6WZMpDgj2gw8lpaXbmAsUbjfTf1uVGWBEYwBT5QjSgFU5UVE4YRMLPQcrmaFLb8e4JPQ4mXnz8//eMyZcAvOkvY7pERNdHVWei92O7rEXm8S4tgR8s6gqaMCOjDxbEP8uBLX3xbF98D9wlXhJf1UyFgy9p7YgQsmBvahkrzB3PPrMDfBSH8gmO3EX; 25:pNFaW6TRmfIJ63tVu7IBcGMHY/4ubQ4ymuocJ6Lb/CJk1uOk3g3IEq2oYCPs+shkwONhHDqHWU7D6BazaTOy4sAbcXDzB8CwPhEU1HOkFIZFmCj3/BmJWpWE5vDa6bcNW56LP3o4Z6DXAbWHEtK98ff3nUnjPflVOBZc7KH0YtstLQ01LE77/FF7Js1wpgZKL5DRb4cVrAXeCQX26ioCBvEY3uaxRo/DQTRqKlVkagipAMCJyoxXbiaQ2kRWn1hrDV0TZ7QA7e7g/dbtiS4cv4lKM4yRrzke6VZTczJ7kFVAFzeH+XIUuS0rEhU2uylmdRVRG38xwBxwnbNgO4dGH/sSHMY15M3ImLP+83huH2iEjpikfvhYLvZzHhViS50LvMjNZMrf1KnBtKLEjR2TXIFebunKgkxYF9WNF0H9a68o7yZE+4VhdaI+c8lMTiQD1sltJpFavl3G7YPOx/Tr9W6tEuF+jgOmM/FSIUBXQXE= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0899; 31:y+zIx0pTRD52vAybnE41PIpQzySZvuLVFIupVHpg9W/hIwOeGcQAbSG1IUQD63+aZY0+C/Ojr2n5NhKaPNHYBFP8ZcSDEagd3j9GtSJmCzys4QE2g/4+25mRQd7cqbWRjatl610vf6UQtgKN5uGLGGpv5+4RrYsG0MhIDNYnFOq3qvbAqZXEJBimjUHTPhZOscglW3xsb8S5SHojE6ERbXyEdezAYqOdSFWR04ctI/90fQ+BwakPRRmC77u0uT7F/NblgD6uA9Nmz3CFyLwycA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700054)(100105000095)(100000701054)(100105300095)(100000702054)(100105100095)(6095135)(601004)(2401047)(8121501046)(13018025)(5005006)(13016025)(93006095)(93001095)(100000703054)(100105400095)(10201501046)(3002001)(6055026)(6096035)(20161123559100)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(20161123565025)(20161123556025)(100000704054)(100105200095)(100000705054)(100105500095); SRVR:BN3PR0301MB0899; BCL:0; PCL:0; RULEID:(100000800054)(100110000095)(100000801054)(100110300095)(100000802054)(100110100095)(100000803054)(100110400095)(400006)(100000804054)(100110200095)(100000805047)(100110500095); SRVR:BN3PR0301MB0899; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB0899; 4:/Bp+D5vbihLeeXr3CE2QMHTTxhdgmRFiStxpwbBo?= =?us-ascii?Q?jeoSXpp0WZy75CN5bZ+jH2RnK5jZmIBj6FGDBCM9xeAfwxte0jC2rigbJpIW?= =?us-ascii?Q?p7BK4WPlYe9VlrFdY+QqOXKw6GUX6dTfMLW21zuwk8IswF0qbpincnU/nQ/X?= =?us-ascii?Q?7rmSxQK78fd4ylwKjd5gVxj9chBd6uzCIm03s40hKbWYhej/Lt7Ua2tCYlWi?= =?us-ascii?Q?2rq3tTihyQIdWclSuX6AJj6srU5Ck4MuDUH14u9qS99JzXT1ctzs1sdPQn8H?= =?us-ascii?Q?lGKB8XQz2yjXXiJxAcqm7BdfWZHvejHUldlzUlNynqKGE03T7GtyPWqZ55kE?= =?us-ascii?Q?g92FFchvGe5am2iHOdRglmoDR/ntWz+WkI+PPfWz+USMsZN2RrUYH3rtdFFB?= =?us-ascii?Q?Krfd4V3oSqeg5H37q1dlKlZR0/l4Eu5oaorooOEjvqHS6ip7F6swXQo8xVDQ?= =?us-ascii?Q?RbSE0/+SW9kdNQXSGX1kuAo94LbtSxPScn5mzluBwcXAEZ7yz34Cn0hyp1Fk?= =?us-ascii?Q?YiZbBn98pB4bBre9RfABDUYAqHO/9IgvOeQ3mbEs/4bIZehFe4hVe2Z7jEs7?= =?us-ascii?Q?wG0WEPk3oXir4JkBYZH3VoU1XGPjnNAGfhAE3Pyxtn/Ybd6LM61+YcUl75Rm?= =?us-ascii?Q?aD0PH4W6t/5Gkpw/IPk7qcru8cPNiHMkSHFhgG8QBGwUT5zihOXP1cJyVP55?= =?us-ascii?Q?HTznhYvBaZSO9o37F30b+gORkW6maTcZod1JCwF7ZDugxEAZrz3oueVN89Ux?= =?us-ascii?Q?cHJ1vxiNjRuZnA7Iq9CjIMXaADLg8Vc3RocJlfJHlCaBaVfdawJze+zDKxGG?= =?us-ascii?Q?2Q554UzD8TD8BBjty2WXLuYNZfblNWQs9MCXpXDd3+h0b3kHioHeROEdrk+V?= =?us-ascii?Q?Rk4i6y9QRSTi1Xu+RDajQgQK4GXx5nC0RAsk5Hs0QgWOMBoT/pI+6y3TW/TS?= =?us-ascii?Q?iOoMPkWWNANHXvxtKe60LJ2P/kznePvrNVsWADgugSOqii1HtisDOx5GVNdJ?= =?us-ascii?Q?Sk+PAqxBO/kFWQ1cUO/fjETBz35Eu2VlIHk8Yg62W0/ZzfKeOCxoTLbPmg5b?= =?us-ascii?Q?z3ve4J80uShv5Ra2TGTqDpKvUANOypuFZLrd3Tl914/5M372wNbyfn5Gv2d7?= =?us-ascii?Q?458caoyG8tByRkdR4H0Nk2QSXCGA2TwHcVJkiO1MtY1dNQUUveiqlLNY8Uhe?= =?us-ascii?Q?JrFCKS4JfB4bki3oBKb80gXvdAIUvtKptBuv5L8Awai3mYdqcmm81zHG6cFK?= =?us-ascii?Q?Nx8BQJrWJe/qXlyFldLJsH/94LIWiGjbc0/9OhuThlqaMEJPc6zEBmvkmYqK?= =?us-ascii?Q?jQ=3D=3D?= X-Forefront-PRVS: 0318501FAE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB0899; 23:6T6QoyBbXD7kVR8tKIDbYA9319TARjmqklkO4HK?= =?us-ascii?Q?Cd04LxWUzI7ICvGJqU092osbYBS6GjmQe6apvc0oLyov2zUtUEbl2p9MC4mG?= =?us-ascii?Q?43r36VUCzDLM5WhhOjogt/Df05u0YclvLIt6eURF4HCmE+L6QA0PG45kQkEL?= =?us-ascii?Q?Dw9W5cehs325v3u+SbBY4ykE1j6sAaeZ+Qff20ElE91yStJGZo+tZCGSi6H2?= =?us-ascii?Q?nzbcR3nlibdv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?us-ascii?Q?PAXnZU9icUqOQOLpA6f9bSlksrVa75a93+turnzvzRhFSrsKzEnD9Il2RRTI?= =?us-ascii?Q?NUGe4K4kSKsuoKUrcAEawnTVJBDrObcv7Kil7/Onw0wBwYgzYe1q+oRRvRT3?= =?us-ascii?Q?13Au8sy/1bwi+NTOjQyo=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0899; 6:UOdQGl9LJhKiOPP72zB6/yenHFk1/64Tot/ALsxpaJUvlmvSFH25/E3XFagGCj7Cn0pQKODCuUoHL+rSqfApBlcarMHQNHgRzlHQzDXP680kPM88KyAK6CizbddFfaUBqod2hA3k6RpGEATNTU2aHLZYFFHKbmjO+BTvhNhAvexD1vFefiN/3NeOZn+pSjzvu0ZDGZQsUN4gxoAxyMYOHkmMEcb00SDLG+q5epPf3aybbxj3yJksRC54nLSmnurbj3CMGvThd3k363j4OK7jF80pp3za+rC6ZJ8UMQ30ggdX/aC6kqEiScWfo0D4xaW7HU8gi218cLkOBwCgejeGj1uNqxOilo+4cSxU/nwdIN3zYHmFyUUrd89EKqHI7ep2fUaBC+6mz+BSF4PzPE4StV05YZJlyvi1tlFeC6w3YfPgLBBbKikezELC7Tb3CgjFvSTc35zTBL7ndK//vPYkcWXuKx50GbN5w+GP56wJETGZBwIv7UH235rDENvfWb91 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0899; 5:a5HgNQM+s51fEX8i9VAZ9fgbcaIZJokWmH5sWP14dnYO6NLRVF5OBYuiEDJ8DKa+/eYc91ff6Qp+w2Pz9bTSk1zumz3ln72+FTLQMElyT3yIm33tlRyqxHewxZa4RWeNyW/52pD3EoTu9zQXIMlH5bTa12mDNwmOY+Hm71tlbEgCeF1J7Ocnc52X2sga0CcV9iUlIEeWm9NLUwGvTRN6A5FjbIZyP5n2uM8JksoR3PzZc/DjcPonpfZDlSoeIEPqSt2lo1KU4xqO85pHGpoWa+rdQruvXopdUkCoBmKdcIv6P6t2cJA+37WT6B6H3SjZTKJ7oBXk8tLHS2tUi9NT+crluvJMorya6bT8hODX05GKJ+NUmd1RQoyDJXSCKsxAVtoBbH+INZSx1SsaLtcPUD2mR4xhxPNrlE77hxPGs450BNEfYOpVJD6EW6YYKrI1+bXoNUAl4BCqMtHNre31IQAH9G9yQuQQ/bUXqU/SS4uOLQ0MXE+R/wF9MaaMXVl2tbWCEciWx5kWWTyFU9yUnQ==; 24:Vps3LtQAKfLJxo3K8g4JbS7Y87qdOS4QczWBKSczAAOhX4lf+Ci6G8IK35nD8djTdG09cTmqnodT0LcPSdcf47bE0J3Kc4QjA6YWkg8jba4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB0899; 7:ETf2v7gFPkrD0bdT47JnDi/gHHH6fNOU5tk4msUTUSxpzdEMmqmV94B1z7h3BofCkWgYnVZ3iNclGltqgifq2WyFmq3GtsqJu4N2PYvDxH1dC473u0KaPvYwzkLzbbNLm4D89173QgPabFO7XM0YRGtZM0YxP6RmQ6Asq0VORK2HmWt5XQjs7Ne39byXbZMp5q53D2hwngHmKk2SDjiNRoKv1dk6B9txLRHvaHMXKecnNn6cNxDi2KS3XRq0HHnEhhKytzvDmWJj07om/AfdQhxnrCRHEYDlZ+znytT+1Gv3n7uAAMiJiLj5B+wTaLl1kwPfrEpTzMur5wu3HBafWA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 18:09:54.0048 (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: BN3PR0301MB0899 Subject: [dpdk-dev] [PATCH 14/20] bus/fslmc: add callback per queue to enable 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, 25 May 2017 18:09:57 -0000 Dequeue from event device needs to process the event on the basis of the hardware queue from which it is dequeued. A callback is added into dpaa2_queue structure, to enable event dequeue functionality to call that processing routine. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 9f9df50..119cf91 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -34,6 +34,8 @@ #ifndef _DPAA2_HW_PVT_H_ #define _DPAA2_HW_PVT_H_ +#include + #include #include @@ -97,6 +99,8 @@ struct dpaa2_dpio_dev { uintptr_t ci_size; /**< Size of the CI region */ int32_t vfio_fd; /**< File descriptor received via VFIO */ int32_t hw_id; /**< An unique ID of this DPIO device instance */ + uint64_t dqrr_held; + uint8_t dqrr_size; }; struct dpaa2_dpbp_dev { @@ -112,6 +116,11 @@ struct queue_storage_info_t { struct qbman_result *dq_storage[NUM_DQS_PER_QUEUE]; }; +typedef void (dpaa2_queue_cb_dqrr_t)(struct qbman_swp *swp, + const struct qbman_fd *fd, + const struct qbman_result *dq, + struct rte_event *ev); + struct dpaa2_queue { struct rte_mempool *mb_pool; /**< mbuf pool to populate RX ring. */ void *dev; @@ -123,6 +132,7 @@ struct dpaa2_queue { uint64_t tx_pkts; uint64_t err_pkts; struct queue_storage_info_t *q_storage; + dpaa2_queue_cb_dqrr_t *cb; }; struct dpaa2_dpci_dev { -- 1.9.1