From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0077.outbound.protection.outlook.com [104.47.37.77]) by dpdk.org (Postfix) with ESMTP id 8DBEA237 for ; Sat, 16 Dec 2017 13:34:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZqPy2mFN3N27Z/NX6t5aySfLJmTs79hWcU4QR9AusvM=; b=H1ruUeNEsKSdV9VfNabodcuyeJglXl1NkoKbP45UzkPc19BUOJEWL7O5f5Kh9S7e3fugn063nPLyKBrKdj4epo+EAkMpeZAo5lPnr0/2DOhgqI9bBTStU9NPBmyPxlmcEfJ0lSzjLlbuY6bZm4Bc9wBojKEEXpYmaCcfsBPeg+4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by CY1PR07MB2521.namprd07.prod.outlook.com (10.167.16.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Sat, 16 Dec 2017 12:34:34 +0000 Date: Sat, 16 Dec 2017 18:04:01 +0530 From: Jerin Jacob To: Sunil Kumar Kori Cc: dev@dpdk.org, hemant.agrawal@nxp.com Message-ID: <20171216123400.GB17045@jerin> References: <20171215130828.14218-1-sunil.kori@nxp.com> <20171215130828.14218-2-sunil.kori@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171215130828.14218-2-sunil.kori@nxp.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: MAXPR0101CA0053.INDPRD01.PROD.OUTLOOK.COM (10.174.63.15) To CY1PR07MB2521.namprd07.prod.outlook.com (10.167.16.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: be4a903e-c4a1-489b-c278-08d544815e00 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 3:b1M5Hn/KslnPRnEpALm43m5HFj931pulMuvfPSgk1rbda+wOw3hSY2ph1q0IEOOfv70reSUbx7a2m3j2IdozLnxJvJqwHkUSkeU9KYAyoH2J+VqFYXPQ/wVX13Fig/0XR3xBp7G5+uRrpyz90/c8F0/8N4mtscHaeqUE3zY0YsmMepvP2+Yg8e+BiFhbLKqIH3qRjNGwKbK4/OIb1+YtPkp2yJWS30Njtu63qsKGd88dWlj8zwIvnVDgsFuj/CfL; 25:6FlGXaV0raKQz0eshY/gS1oo4/n3Zb7yDhtn1DlaeFRJ2JRZL34UBd481TPStLAWECAI2mlmsU6PYugFDhaOFRUoj5Ens78BncrzzMyvRZntXepuvtgZXNqGsedAaMe5sV6ZTH+jL6cdke3KVAPGowLZl83Z/vYBFSpw9mp0eZa1dgAQNTSGTZMudyyYcw7FHSERmoos2XLh6WJ6D/bynWn8BXEQXhGRpug7vJON2qWFN+o12n8iU/dd7YvnK8BxOsJ+vwb+UeFc78cEx0OHL8vMtPiJ2f7XhQEJBrtZycVSP9xy7Fuoc+bZ9DWhvSWsH8P8pwCCBK7UlTl8q1ixG52S7UMHEHLaZB32QZwwwQ8=; 31:mAULjOyRgT69UFOHaiRR8zCBEz4sCIwEdT4nI6CnGDyKrG+pbjAHtqZ9YOmZo94QqHR3nbtt8kBOWqfqdeTH1jveURFIiTAdSOBJDmHajCoR5Xna0I1ggzawZq12UeiaAVwUdHRiuV88rlmSvoSJBPa9mBn0ZVFLFkrAbHJLYjsLyIOtdcgQVnqF8cd0Pze7PfxoMjOlQWqTuXkFYwEksOz8LJ1Qk6s6RKQ2NKf2Gl4= X-MS-TrafficTypeDiagnostic: CY1PR07MB2521: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 20:wXqobmpGI7TxoNjY7rDy4gEVu79Qu/kWfQZxvh25rYxDyCUS4AEJ0mRdk1kzd1phAjk9AT4c0NdMSULyt9vjZxPpuBDKjdYatnyGTMZw1CYWvIKXorNBRCSIVjV4xzRZf3sUFdz95t5KNQrRe+PpDI61qPAbIkSqcIiqbHpvdYX3q18pddNYaIwxxwS+C9EV3E9HQejOgXDv414RvdX/KoekNG/a/pTNbAi7bCfM85wNjN2vmHpGox3WKr6TgethgckziIfwVlFSg3W5TjfEx7ah0GdA6BdM83R3HQHr7gbFqiwhojSNlq5Cj5skYPnN7JD6FHYLcUJgYb64xT+/AfjlPvkBQiOxeX85NQMl9YNXH3pjJzJG5H/KijSH+VUAaYax+EjA66NObFScwboi6NyUsb6tjr6kSvu7azp3gCaHicMO36ZXA22hsBSkkKd0NFm9TODKkKzQFG6BAlGtzNKTGDmsWVb5ySrFIvyeKnGIgKu0ktW+FLYQj/G2hHNos+SSxkommesAoRKbarc2mX2BlmZQGgPkvMZGlF7ogfMw4vbnayLUC4WOyPzoKmt8misJgr3zBzmecSIa0tOgsr5fVlfRJiE0CtzOukCOfhY=; 4:q0JFfYbXycVCvay0QxuQjewFiiyHPIVzD/77NP1t7EHcaegaJtCSclq44dGjb/Azdok6RHCzauhcJrCNML/tH22UkjTnBSznIXkYhXpDBV+1mk7YCQPhUv3JmvMp0IHjZggsxLNzt/whd+2Aj8Xx9i3g6gu42vbP0116Y3nd4JLwHZQIh+95P+mMPN8RVASKvGc2CcE2IHIlgbqgmFn3oLLwjXzf90EzVd4IgG7D6Bhk3WrMopGTw5z/zBMTtk+Z9KvjknGGuc5+NnEp7ghSjxUg0xd+bLJmxNKHSgArOMlAHZYArQopwfeSekNJZgIW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(10201501046)(3231023)(93006095)(3002001)(6041248)(20161123558100)(20161123564025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6072148)(201708071742011); SRVR:CY1PR07MB2521; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR07MB2521; X-Forefront-PRVS: 0523CF0711 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(376002)(346002)(396003)(39860400002)(366004)(199004)(189003)(13464003)(1076002)(3846002)(76176011)(42882006)(8656006)(6916009)(33896004)(6666003)(52116002)(81166006)(33656002)(8676002)(23726003)(2906002)(81156014)(47776003)(6496006)(4326008)(7736002)(2950100002)(5660300001)(50466002)(66066001)(68736007)(106356001)(53936002)(16526018)(25786009)(83506002)(55016002)(316002)(16586007)(105586002)(97736004)(229853002)(9686003)(6116002)(58126008)(8936002)(33716001)(72206003)(6246003)(305945005)(386003)(59450400001)(55236004)(478600001)(18370500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2521; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2521; 23:xz8et8vXfFE951s4TchHLbHklrfr9V7LzyHz1ErAQ?= =?us-ascii?Q?BgmYj8JcrbUs3yooNNKS2D/lenpNC4GyUFTgJNN+vt9q19NyZ1I6BGme9bOi?= =?us-ascii?Q?TCMpP2QA0fRD1rgNTuo2PWLEA0Oj7zuRBtGNtGY/3Vmcm2Q743F6oPba8wXn?= =?us-ascii?Q?E+uxFxNMVTZ2bdZFSuxEqlnfH3jupjdJP5Tz+RYTHz0f/YEBYEzCX4oxaKnQ?= =?us-ascii?Q?2/WReVWu8Wu8CF8iRUEgYbEYpT12UeHVopm6fj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HfoIALhVziZ73i8/ttZeXmwn4Dzevygs+C4aESyNvUpDBGg3b7AHO/gZDBTB5+E0VpiM2w4XUmcymTQ7fBNCSFiUYpgk1VuGuAtXZ3H64i9h0cJbLSxeNGmIB3AUD/qyJJEX/4C955farfW3IRJOPQaDidggOD SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2017 12:34:34.6215 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: be4a903e-c4a1-489b-c278-08d544815e00 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2521 Subject: Re: [dpdk-dev] [PATCH 1/6] bus/dpaa: added event dequeue and consumption 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: , X-List-Received-Date: Sat, 16 Dec 2017 12:34:39 -0000 -----Original Message----- > Date: Fri, 15 Dec 2017 18:38:23 +0530 > From: Sunil Kumar Kori > To: jerin.jacob@caviumnetworks.com > CC: dev@dpdk.org, hemant.agrawal@nxp.com > Subject: [PATCH 1/6] bus/dpaa: added event dequeue and consumption support > X-Mailer: git-send-email 2.9.3 > > To receive events from given event port, corresponding > function needs to be added which receives events > from portal. Also added function to consume received > events based on entry index. > > Signed-off-by: Sunil Kumar Kori > --- > drivers/bus/dpaa/base/qbman/qman.c | 90 +++++++++++++++++++++++++++++-- > drivers/bus/dpaa/dpaa_bus.c | 1 + > drivers/bus/dpaa/include/fsl_qman.h | 26 +++++++-- > drivers/bus/dpaa/rte_bus_dpaa_version.map | 5 ++ > drivers/bus/dpaa/rte_dpaa_bus.h | 14 +++++ > drivers/net/dpaa/dpaa_rxtx.c | 1 + > 6 files changed, 128 insertions(+), 9 deletions(-) > > diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c > index 42d509d..f39e618 100644 > --- a/drivers/bus/dpaa/base/qbman/qman.c > +++ b/drivers/bus/dpaa/base/qbman/qman.c > @@ -41,6 +41,7 @@ > #include "qman.h" > #include > #include > +#include > > /* Compilation constants */ > #define DQRR_MAXFILL 15 > @@ -1144,6 +1145,74 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, > return limit; > } > > +u32 qman_portal_dequeue(struct rte_event ev[], unsigned int poll_limit, > + void **bufs) > +{ > + const struct qm_dqrr_entry *dq; > + struct qman_fq *fq; > + enum qman_cb_dqrr_result res; > + unsigned int limit = 0; > + struct qman_portal *p = get_affine_portal(); > +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ Use DPDK specific primitive(RTE_BYTE_ORDER) > + struct qm_dqrr_entry *shadow; > +#endif > + unsigned int rx_number = 0; > + > + do {