From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0080.outbound.protection.outlook.com [104.47.32.80]) by dpdk.org (Postfix) with ESMTP id C30291B9D4 for ; Wed, 25 Oct 2017 16:22:19 +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=PR30hYfETBhDxMWf6nlIJYfWnMLFjnkotUmZMU3qFEY=; b=NTR2/4dj1GmTqmZvgkoMR8qg2FlNepEX+N8wDfCfjmNgPEmmUneiPbJzubJo7SYxheST91VfroD3fCp3noyBx7s+Bu1MW6aUyFZO4Pmj/EBweEpOlyoQTq5B8e/tMuYPh3Eh7Unz3PSnVxH4lsvXAv55Et9z/cMPFfTeCwytebM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by BN6PR07MB3458.namprd07.prod.outlook.com (10.161.153.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Wed, 25 Oct 2017 14:22:16 +0000 From: Pavan Nikhilesh To: harry.van.haaren@intel.com, hemant.agrawal@nxp.com, jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Wed, 25 Oct 2017 19:51:44 +0530 Message-Id: <1508941304-11596-3-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508941304-11596-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507814147-8223-1-git-send-email-pbhagavatula@caviumnetworks.com> <1508941304-11596-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0115.INDPRD01.PROD.OUTLOOK.COM (10.174.144.31) To BN6PR07MB3458.namprd07.prod.outlook.com (10.161.153.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa89f82e-3435-46bf-8f9d-08d51bb3cc6d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:BN6PR07MB3458; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 3:HbMu4yrkgYz24MeOnUtiTg5WFEOzhC2HB7TXL8xizDZhuTjEq9w6hxiQKCUqgcyjLCViy5zDz7+tZfZk5FJKF5ytYzX4w5+Xa0l/rHtMyI64Q+/sK8ybYUalYlswTI+XgaTsdzVtwfw6NyH5lVg/oXkIWLabnWDLI8V9Kb/l+FJQ3RBoK7fgh3BowZ/K7nAlsEEN619a05iRTJC8d0eNvhc47vMMHUd1ysfQkORHULesMkjusWKRBrdFw5Ntaqfh; 25:MPPb+WfuZJwQ2uQ0oqKscaUNYbULpVL3wNXLJ3rmdhUfHWkEp7hOuv3JYaUM4OfNktPIPxB59ocgJldB8qITLjZkx05PXda4oQVisrNVeShw4+/wULOAf9YbzX64JydI1XOnDsdfD/gD75mci+7t2lYLUKRCukmaV/HtQjBm5L3B9OiHMymLUXNk/pS5R9kksoMe0C38tWCDg9TDpdbemTrMNWnI4uW7+EZspCnUE7Hh8kATHo4Nq5uTlK6w4VU2FNk3EpijirBzSKL50Xss/UhieyzztLJmhbh/cXzVnb/qaTjYYNwztUBBbBQg/FjfGlbbvWb6MwG7HOqOlpJRLw==; 31:Kk/Qhdlg5TTdTHaiE/JQzU8iBuO1z5vm/nQftd1cB+aDIUjh2PxDLlHcUv4VAvgiIR5CCzmlppXdLyvoGkuZh51IEBocFhh2VElwmUQhMIOdABzuLxLZshpk2elIPaKc/sGwVdDV2ssLq8cFmPvJdxCzIrGowJl6hdkixfSqx245M+ZyzdLd51nN41wKIdsTcKVWs1NnbvqVCm3x84sEm8qQCmqrNta50KwgP/g/iJE= X-MS-TrafficTypeDiagnostic: BN6PR07MB3458: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 20:mRPBidyQ9ugwCaXMyiF/HEj6K0I+1da0PRXPSkO9s8P8usHf1D9/3DH3E+FVtTIHtR9kz801Pw0lXWe+COx+SsnkVZYkYGVEeE3MbuMpCODlmhX0X+lUFfNXXM3Mz/gvzSZJs1LjIlPgP+BaUeJS41fFz/vR+VI/atTlvvZstgjXPwiJv8UnSK7bLrHxT5/kxkxkhEJLkwBn87mvxG8Mo3wCOHCwjzcoDjwwrAege3apGdd8s8DDu8jZt1NtKsWZsptxoM1I0VKhKOUxu3dlUkeO6S/sn7Af+u/y1QcgyNQ1jDsm1XJlaLBFu5b2vq8z91W99ZGkZZ7ihbna9lE3K6x+GljXJYqY0b8nBNE68ltEQFkJ2S9iDAmVBuIB9uJ2BgqMxmzV1SaKUWAGxQdvAMF2x+qPm18a2sMDfReuKxrwKVyXahl0i7byj0q9VyW0/m3xtO/IsbjSlHaQDfMPtaQnCYGIlWdZmCB9Hd49KWuzO3Grx1LUSvqAOXG4gTTrLu0b6ZQiKXEBukeeRI20GDS8OGAw1GMPdiiR2162GYlzem5sqYcz1KKbX/PQyFKYVGaEd47IwKqp0fRmFY3RRyynxVgu33vC2yKwkdCH7+k=; 4:INPX0yJGj7YPLH2mHHHWbRdPcmDS5w7mCOCooFJrp3SKKQkpGBhUv9JBfaNJA/UYe4qrTkX0t7ZS/JQrnv3YIYOYQrZ7imjTl4UlniEZObVekVWXavlrgfR1lS7hZgui1g3uZovKQUsJG2UOGX7sIANrLbg3V6v04PTSu7v4SqEqvxJANB4PDfKxXySIlkEZXuVBeXBlBtoFr/6hOpU2kU4P1a5H9GNWqD3DcrzWou+8cspoAc+RDd47qDzrqqOA6YMPMy3pMbUhrQTbPYZhvBBkDyFl/WHQhha+W6btokk= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); 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)(3002001)(3231020)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3458; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3458; X-Forefront-PRVS: 0471B73328 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(81166006)(53936002)(50986999)(7736002)(16526018)(50226002)(76176999)(4326008)(66066001)(305945005)(5003940100001)(8936002)(2906002)(25786009)(101416001)(42882006)(6666003)(6636002)(107886003)(6512007)(8676002)(5660300001)(2950100002)(68736007)(81156014)(47776003)(50466002)(36756003)(5009440100003)(316002)(16586007)(48376002)(33646002)(105586002)(106356001)(53416004)(189998001)(6116002)(15650500001)(97736004)(6506006)(478600001)(3846002)(6486002)(72206003)(69596002)(8656006)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3458; 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; BN6PR07MB3458; 23:l05oX0RSY6WfjxvdcYtTrh2gW9LQ/XePuujAIx5m1?= =?us-ascii?Q?zZJKilz+HjuXwsNCY8aJCTfuNkE1Sl8gPhJPn7aYYIokjsv4jmrxaHF+TODv?= =?us-ascii?Q?9PWi1usQ28KG5pbDExq6/xxu9/nLLu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KvpAe4ShXkHJqaMKLYgxR3RzweutNtd9BUz/OaDLdlFdhNPigmTjsa3vFLvG6fBek7sJSIZDrNs+uKpmNJKxrq9pCJGMkt0AqYWsEq8o5YqhMBNbuo+RADluQ6mV8tTnqaLoN/sJqYNA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2017 14:22:16.9199 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fa89f82e-3435-46bf-8f9d-08d51bb3cc6d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3458 Subject: [dpdk-dev] [PATCH v4 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: Wed, 25 Oct 2017 14:22:20 -0000 Update the guide with event queue configuration and event enqueue operation. Signed-off-by: Pavan Nikhilesh Acked-by: Harry van Haaren --- 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