From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by dpdk.org (Postfix) with ESMTP id 45DB71B31F for ; Thu, 12 Oct 2017 15:16:10 +0200 (CEST) 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=1k23Mh1y7p+4xpfd9D+ggwg9IrI8sFKcLenbvZRorSk=; b=WDKXWo65zx+RP6QnVy+pz4gVwcwi9V4OnQQqqhlIQ0A+yyT4rfolF76e1sacosMgGd27AO7wxzQgO9R1rqniNuA7rMIylo9KLhvbl8Wm2IkmuQyU1evwrvkiLX2lGDYgUMUR658Vez7/kTjcaLRLdeO7bSd8s8XzL/qOaOmiN6Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by MWHPR07MB3471.namprd07.prod.outlook.com (10.164.192.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 12 Oct 2017 13:16:07 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, harry.van.haaren@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Thu, 12 Oct 2017 18:45:47 +0530 Message-Id: <1507814147-8223-3-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507814147-8223-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507814147-8223-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR12CA0033.namprd12.prod.outlook.com (10.172.49.19) To MWHPR07MB3471.namprd07.prod.outlook.com (10.164.192.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ff105b4d-7c72-4a79-5cf0-08d51173670c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR07MB3471; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 3:3I+dcIfSbFhzU5pu9U+Fknsgb93DPTXCw8z64xNG7XyyHxWdv9ocYIf0Jg4VHgSxMDKwt0whDSb3HIvNMsmzBnSs6/gkHviCXPvw7vWQIIFNp7pceNevPSE3BlG8eUhrO41ykWxzdTFpTr0d+pupcdVtRecjBToD7e0nc1AqCSZMMMRa4yIQxIyM8ZfhPGkTjmasrmNsoEAzXuCv3OiVKhLqZztzIBrLX0QHTde9kCo63fH9a8H+zi6znYveoyxd; 25:N2qxDJcV01MEGiSn4I9Z6lesXi8eR51QBvL0+RW0PriFEHkzfCqwJneF3Pnpu2nm5SDoLRK/qBu9mQ3fYwmRG5sfM4Rn+Cg534NzdtaqTJ1FBEWX/aacxL8i+E1bIOUuJ3CPPfF8IBnBGud1MSsiXFcgk5QWo8km9+RiEVqPa3PhUvqe0FtEuPEuAkQrtKiuHCPmUXQ4iH7cDIzW1Q1ZIPIOEGENwWFNDRSE7kKmrQLFGyNw3brWbEZK5PmT7BCEjRKYVQ0OAKHB2A3Cyk4s059LR5PKS1IKUwqHYWe/AQhOIjAJwbmze6J6ufPtiLBzJ+u/mXgDEpuXtjncVwFZwg==; 31:441j7edmJqm4BIsSbVHTu6/6KTwTfjSNb7B1hGK6mOq0Hvp10FiBRg3ARF0sh9D7rhBvxlf59Kc+eANrFpEW7JLoiSQkjw2D2hQyB9aAa/PvEqGFgslcGEzG2IHnd9Zj2+6g0eBUNr88Udbp/KuQptlZy+QU+/eIqiqMguVjKo0cgNA8m6Xa9p7uN6BhwjnOufTUveC0Pg68U/rYPkdCxTCcLfIe77L4l0yMeahVB9A= X-MS-TrafficTypeDiagnostic: MWHPR07MB3471: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 20:hLMIqHzdODHZN+ccJU2XUdyHwUpT+kOqOh9qAlFt0qmvYiq1a3LX++S9s+KutwGTTI1T2HS5BPisRWI/+eB6UxZhxVD2saUR1laeIX7OvGH13SC4+TCseNRiDNHmvhAeexcr5OZexwYrgdfIXBKIp9ZwiYGhbEfJyndyXONcbyFYKHw9KqSR5vLE50NXBsEFPdMwraljoLy2krp5DUVLpeCcHNr3U6Ms3PCQonnhlQWBjIgyRXUn6PkgksRoDNWL31u2vbHBM8x6rwVu8PvdY/FxwMHOR2YUdS9bRj1moaUZe2nAvcRz7fA8ROolA4ZjEQEcJEjUOo4KigkL3S+zPKGT9KbSLn0HgXzbglpC9Q8KMJ7TK4lMHYgpWWQzf+nmUksWBvF2ZgsBPTvlDAG463mvX1X4uzec/v6SpgdaH8ePyM3UA1Pu215UTunB309JKxsoPw+Uwmcunp004l1jc6HlwXcFecp9B7EAVOCmzArrAdG+yG0Vo4f3k4MVbeg0qiDFIUNECJhYaoA1DTBzd8cCEQu14OTLgeSwTv1B1Z2xKdXZmXjZIsT5F2Wuq1JeA35LGne98yAt82P0Qy/4yJsrkLL8LOnRI9+GkmCu0tc=; 4:57bqoePz2kXPPc9TnQHAhV1KXxOpZatFQzisyf1DPjzM7xzHV0p/f9CcDH7xsxyRJ/OrJGUEdEj34gAF9AbmgZt8VWVWpFY7Hiv8U1N3g+6tMeWLWaQ1h7Uyzyu5jDDINPVLpHZj3tbeee824z9E0yU9dy+irtorXoE/TovghSV2QwuLN3t7twE3ipXFyDTQ3dRJ7Zw/BUouQ3OsLDFFOx4MPLpQMd83d9Y8mOHkd+r3n+qag+Ztzj3uWwlZF9Ti X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3471; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3471; X-Forefront-PRVS: 04583CED1A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(8676002)(5003940100001)(81156014)(69596002)(105586002)(6666003)(53936002)(42882006)(2950100002)(305945005)(33646002)(106356001)(66066001)(25786009)(8656003)(7736002)(50466002)(48376002)(53416004)(47776003)(8936002)(189998001)(81166006)(6506006)(36756003)(6512007)(316002)(5660300001)(72206003)(76176999)(97736004)(3846002)(6116002)(2906002)(50226002)(16526018)(16586007)(478600001)(4326008)(6486002)(50986999)(15650500001)(101416001)(107886003)(5009440100003)(68736007)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3471; H:PBHAGAVATULA-LT.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; MWHPR07MB3471; 23:KgiDpqz36naTAouXcom+JeeYvu1CPzoauV94YF+5c?= =?us-ascii?Q?xyPI344Ir9exsqMzekQunC/U25NUvJeoVlEld1A63Dg+AQ9cS6Ko5n2V7A39?= =?us-ascii?Q?CK/xVDPWaCzNkAPcXlStsF2qa5S9J3fDjPiRyXMVX5/mW0NxhpLAwRW4YVhP?= =?us-ascii?Q?vgmhMRuzRXFTakeVEvzlJsbnGFirFIaYSZlVxUaJBQj3c1onulT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gqbs7LVwNZEiFe6GDeDFWaAU3+o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2017 13:16:07.4786 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3471 Subject: [dpdk-dev] [PATCH 3/3] doc: update eventdev programmers guide 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, 12 Oct 2017 13:16:12 -0000 Update the guide with event queue configuration and event enqueue operation. Signed-off-by: Pavan Nikhilesh --- doc/guides/prog_guide/eventdev.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/prog_guide/eventdev.rst b/doc/guides/prog_guide/eventdev.rst index 908d123..be9fccd 100644 --- a/doc/guides/prog_guide/eventdev.rst +++ b/doc/guides/prog_guide/eventdev.rst @@ -217,7 +217,7 @@ calling the setup function. Repeat this step for each queue, starting from .. code-block:: c struct rte_event_queue_conf atomic_conf = { - .event_queue_cfg = RTE_EVENT_QUEUE_CFG_ATOMIC_ONLY, + .schedule_type = RTE_SCHED_TYPE_ATOMIC, .priority = RTE_EVENT_DEV_PRIORITY_NORMAL, .nb_atomic_flows = 1024, .nb_atomic_order_sequences = 1024, @@ -320,7 +320,7 @@ The following code shows how those packets can be enqueued into the eventdev: for (i = 0; i < nb_rx; i++) { ev[i].flow_id = mbufs[i]->hash.rss; ev[i].op = RTE_EVENT_OP_NEW; - ev[i].sched_type = RTE_EVENT_QUEUE_CFG_ATOMIC_ONLY; + ev[i].sched_type = RTE_SCHED_TYPE_ATOMIC; ev[i].queue_id = 0; ev[i].event_type = RTE_EVENT_TYPE_ETHDEV; ev[i].sub_event_type = 0; -- 2.7.4