From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0069.outbound.protection.outlook.com [104.47.40.69]) by dpdk.org (Postfix) with ESMTP id D8B7C1B686 for ; Mon, 23 Oct 2017 18:30:02 +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=a68scDTnwIlRM1nbEqdFy/LYrJCjWc9QJImA/hVpqgI=; b=iwx+Tgf8yBgjfghtjdFbKzGP+84MirdmoB03gqhSp5oMGBvWXtR5WAKFYRpy4QCi0HSIeMw3oJJUd/Ga9lYl536YR1UlKBplNFxQWsrBPdsOBdOSssLAMvXJ/UOlkFgyYwZ1OAEmsQYH0k3lTuOxzMyX5FP5NfbpLxHLRuvGcmc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (103.16.71.47) by MWHPR07MB3472.namprd07.prod.outlook.com (10.164.192.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Mon, 23 Oct 2017 16:29:59 +0000 From: Pavan Nikhilesh To: harry.van.haaren@intel.com, hemant.agrawal@nxp.com, jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Pavan Bhagavatula Date: Mon, 23 Oct 2017 21:59:37 +0530 Message-Id: <1508776177-11264-3-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508776177-11264-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507814147-8223-1-git-send-email-pbhagavatula@caviumnetworks.com> <1508776177-11264-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: HK2PR04CA0047.apcprd04.prod.outlook.com (10.170.154.15) To MWHPR07MB3472.namprd07.prod.outlook.com (10.164.192.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 46e04b4d-a1e1-4dfb-21a9-08d51a334eb1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:MWHPR07MB3472; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3472; 3:CLtB+BR+werMw7f9jozQ7O1DaKOZaAMBjIkERYBK0bYnTzNPuUp5r53K4lA2Y0lQpTF8NW31TuSmBC4Hnd2H/N37tedv3eWrb2RQ99m/NDqTInTl6onN47CsQG94rrIsEiUV9FY1+OuQ2P7zqbWqnlKGR6pNI92dDxZl7N7a9G6N3HAVPHIoLuws+1DLlmlD3yexmB8yjdq3z5/CWDVCBQReyoyCMV7EDpz6mZHoZOvTmsCne1Hbm35qRvG0TTJ0; 25:1lr8KdoaWgohACEBqZy2fknZREubS+NygNNlBV4S6E6Dsh2/Q9CkJ5eUbSMvsOiWg8VOAzo0INjz6tINLn4Z9FceUhxfZmcRQTOD22NkvUveLFdJ2cAN9kj8TkD9S0TIu/yP0I6ecYe1z4+ObizfHg7EiS+rHPWd3qsosLYvWP5NKTG9ohk3zLgctDGRvuTd8up9IfZMvePYXdZQiqouKw+cCHpb54BIsoFmeircEJ9mcyooZ63XO2DsnvO9IGS0VantErIhW3fT2bS+dUqQ9Az8lGwAFmNOUFfnVein/Ofj4FQJZmeEc5SwrghjcNUa6wYIrMdh3CZyxm08Kowtqg==; 31:JIHxdfNc8OpwtMw0uggs3NWNyXs1beEc85ar85u70qZesZWjk7k/A5hPevM5i+awku3f6PB6oB4BbHlL5Eik0sFLOHYCycqVf6hD2V4132V42mUvRafxqw9ryiEFgZIBVy62jQjigUkkzLjVKCAvdioZGDzMAITYHT62xOFmVL84dITIWrykjmuVAdmN+y0WsBKz2raVSHqWKuJm8EKTCamkX5r0h5ptKqcvq+yJYsg= X-MS-TrafficTypeDiagnostic: MWHPR07MB3472: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3472; 20:kKAUnDNylU098NT4F9tEyaL9TZdUWJyzsekB38SwK/NU3x+niF6UFPD39YRKeMlBrYkjFhEcAyYClkEn9N9CSKbkoiFiHR2HX/vgOgvqIqTdBQ1VgeSC4Zq7UBCqTjsRfxP8YlcW2KdnVGx9EWPrL/+zHF08tQTU1DWd/EXn2+Lf2lX0mB9ZtYlCRE62Or1fIvyZ+oLhEVy5ZqMUX73ojnVe1tePbeH0SesJdSISSWrGQlkmN2+LhmRXHt2haITViMxDV7YF+YhHJMcrtO97MoXal0K6UY+fkCsX5KPH2TvAf6y5MJIP/t1JirxvPJaFv52+m5FrxzFLjY8iMza8wPPMtikzlSko5lbBWIMUZhZfmabxxHl0UE+QdKetuKFcTEgc7wuMFFa7LytUJFEnT4ftf734z1DuKd8dmDVZQ8wZHvrHHDla+/1rLH3lOkDFsAY+wZrluuuBKoVr4G1Y7Crym7Yk7mDFVxgXF/QR4CIXPwk9dHfaGtXxIsSH1Tk6P3QNd1souHWg/J8nNsppw+NHNMwr79BNMlhPDYmmwCHM3AdT+KVrF++3hWBKMpexbnxjJVGSfC7CLjVsb9OGE36xn7hQkvZ8qbeiGI5ZZOk=; 4:2tDYN6DgDC/uH1ny+7vyfVrOEA2Z+Rc/tp2akTiUfaULSXgN5PqcacuZ91RsBzslEeE7a/5rgLdet+VaH+ucc6Ftuw0nWSfHPlPJzDYIoHFt6Wt2uAAPO3MguMNpoGRrqTat+merjaageU7EfJPG86EvHQEOgzuGl7GCJTnnhQxpV6j5DizZAmo0sYQQRlCvTUYZirl34pqLS/9tgrC5Bk0BMr7Kvzog2BKrBa/kam3TDanPwWSIBqOY80uXq9HW 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)(5005006)(8121501046)(3231020)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123558100)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3472; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3472; X-Forefront-PRVS: 046985391D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(376002)(346002)(189002)(199003)(4326008)(48376002)(42882006)(8936002)(2950100002)(8656005)(8656005)(36756003)(6116002)(3846002)(316002)(33646002)(189998001)(107886003)(81156014)(2906002)(81166006)(8676002)(50466002)(16586007)(6636002)(6666003)(66066001)(97736004)(53936002)(47776003)(105586002)(72206003)(7736002)(106356001)(478600001)(101416001)(15650500001)(50986999)(76176999)(5660300001)(6512007)(305945005)(6506006)(50226002)(25786009)(6486002)(16526018)(5003940100001)(68736007)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3472; H:localhost.localdomain; 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; MWHPR07MB3472; 23:T76pA8VFdVWtt3SNU9wuoPMTth0I2CeViurVsNsj/?= =?us-ascii?Q?KVEZvj+BPsBIrrsz1GMVYlnCogxCB9c9WipTmWQdo6RnYr/kY2DzZK50NplS?= =?us-ascii?Q?AaQKOtcPMzclUIhvTrtYRNMSp5+f9zQ8HkaAYQ4lFKGixRyv+TDKhhBsMj5t?= =?us-ascii?Q?CCcDE7mbJHQhSwa0RTnvJPX3HOU67DbaPKr8+Tzm6du8V6rxaHLeTB6Hr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RlEROZZpOD0BfySxsd+q8fDXAYSt9iajdgNi?= =?us-ascii?Q?j3aKvncYHXSZG9oFU8BOe07k1jK9KKNUoah8lUtcMMWDHX9gdMGOpOTCC1p7?= =?us-ascii?Q?41t84dxr5meipqP2qj5Xf4K8OnPmsMw6pfe?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3472; 6:6Tn41QQRGuyRUhma+2TYGIoHTwxmf8//Rl1ITeTz62XAiKWEWcwIcTL80Zo0W6tZwoNMUDujQvhGYNgtMoeETXBQ47H1mccHrLftLixB3eKGRBTYQOLFy+6WbDmFRXifTgOznjm3KQ+PfQsg5aXBJoEDtSbgTUUeDinf1uDRsbgvOKNhVjX1h2LqZrY95KaRK785JDWqLAScvGzz+prsmaZS+fHogMyWCbY/ClAf/+MutodJ8jTFjMRtvIHcsIkQySjj5hW3P/iTFPxHk0jz1NWmuD3RoCk7V7fb1iicjkGCimlVabkHwPMOPzkLs7zpq6qMYihmS6RyjIMkFk9www==; 5:m9bp1ncWLfRN5PUhZOIRZVzI/ddf4q72zT3r5oLlUVhMcVql38CEq4PB1UpJNxxgtYJZm5u+i6Q++nMGkAg8BcCmEf5DqmsX+ovukojwDtqst/RgX4QVrQljHq4+XGqKeQ+ultZkXxnCgpQxOI2qBQ==; 24:HMgcID5+OmiKT7FuklLJTPEmASGUy+Ll4Hsh9rvCmvxna4McurUHDMK34SFcPFGuRE5lqleSFluoB2JvqlvvLfef1n773HuuPcWL1L3c0Gc=; 7:bskFqi7fSLQw7Eg2Y7H4Su11IxexMH7YJYlUnBrNiQt3u+UjaRNfX8q5w+bDEHd2AXIWrBs5xBj9jkp5aC8j1SvW+5OXNDuYEIyLI2RnFntt2Ak/n/sIEnDROMnYiassQ7OpU+IQNDHg690Le5NkExx6XxCPR3GagMTa0MyNZ1DtK6sp8Y3fzzgoo/e8xir/Av5gv1QVS60ckJW0nOA76fa8ocLj0POPSXuAFIcmz/g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2017 16:29:59.3366 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 46e04b4d-a1e1-4dfb-21a9-08d51a334eb1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3472 Subject: [dpdk-dev] [PATCH v2 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: Mon, 23 Oct 2017 16:30:03 -0000 From: Pavan Bhagavatula 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