From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B0949A2EFC for ; Thu, 19 Sep 2019 11:26:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6BBF81EC3D; Thu, 19 Sep 2019 11:26:11 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id AD2111EC3A for ; Thu, 19 Sep 2019 11:26:09 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8J9Otga027068; Thu, 19 Sep 2019 02:26:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=56WjblpCg5LfzenKsrmnGTh5NP3nKTWBGEQMKOozUeI=; b=TyzGhfTLgyfLCF0D/fCHMz0PTdENquXP4HSD7vREhXdIHW/DUO5uV+S7Wky5eXY+hz/R /m5nc0OyiSvfYx3wQlEeljpl0Kv282MHnQElG0ksxIdfTXS6kkQ4flg/GvdZohJok7cf JTzL4ssBEr31frM2xrvhkCm2eO5zbFipuO3GxZbpI0uSIypX/7B2v/fDlN+E0XaOJT9Q 2g51Yu6yrvfa4oUJp6/bv2kh85iERJjZ0MjYLkkE7C2ojnh6jhTeXc0sfB8/MeKFHlGr cBjXjuv7CWlGe7vJjdD4qxlB1ZxzjXoIVdRb1xh8DITqhaHSxvbBZYaGgDJE1IlCOZn1 vA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2v3vcfj5vc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 19 Sep 2019 02:26:08 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 19 Sep 2019 02:26:07 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 19 Sep 2019 02:26:07 -0700 Received: from BG-LT7430.marvell.com (unknown [10.28.17.12]) by maili.marvell.com (Postfix) with ESMTP id 00DF23F7041; Thu, 19 Sep 2019 02:26:04 -0700 (PDT) From: To: , , CC: , Pavan Nikhilesh , "Sunil Kumar Kori" Date: Thu, 19 Sep 2019 14:55:54 +0530 Message-ID: <20190919092603.5485-1-pbhagavatula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-19_03:2019-09-18,2019-09-19 signatures=0 Subject: [dpdk-dev] [PATCH v2 00/10] example/l2fwd-event: introduce l2fwd-event example 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh This patchset adds a new application to demonstrate the usage of event mode. The poll mode is also available to help with the transition. The following new command line parameters are added: --mode: Dictates the mode of operation either poll or event. --eventq_sync: Dictates event synchronization mode either atomic or ordered. Based on event device capability the configuration is done as follows: - A single event device is enabled. - The number of event ports is equal to the number of worker cores enabled in the core mask. Additional event ports might be configured based on Rx/Tx adapter capability. - The number of event queues is equal to the number of ethernet ports. If Tx adapter doesn't have internal port capability then an additional single link event queue is used to enqueue events to Tx adapter. - Each event port is linked to all existing event queues. - Dedicated Rx/Tx adapters for each Ethernet port. Signed-off-by: Sunil Kumar Kori Signed-off-by: Pavan Nikhilesh Pavan Nikhilesh (5): examples/l2fwd-event: add infra to split eventdev framework examples/l2fwd-event: add eventdev queue and port setup examples/l2fwd-event: add event Rx/Tx adapter setup examples/l2fwd-event: add eventdev main loop examples/l2fwd-event: add graceful teardown Sunil Kumar Kori (5): examples/l2fwd-event: add default poll mode routines examples/l2fwd-event: add infra for eventdev examples/l2fwd-event: add eth port setup for eventdev examples/l2fwd-event: add service core setup doc: add application usage guide for l2fwd-event MAINTAINERS | 5 + doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/intro.rst | 5 + .../l2_forward_event_real_virtual.rst | 799 +++++++++++++++++ examples/Makefile | 1 + examples/l2fwd-event/Makefile | 60 ++ examples/l2fwd-event/l2fwd_common.h | 26 + examples/l2fwd-event/l2fwd_eventdev.c | 536 ++++++++++++ examples/l2fwd-event/l2fwd_eventdev.h | 118 +++ examples/l2fwd-event/l2fwd_eventdev_generic.c | 349 ++++++++ .../l2fwd_eventdev_internal_port.c | 281 ++++++ examples/l2fwd-event/main.c | 804 ++++++++++++++++++ examples/l2fwd-event/meson.build | 15 + examples/l2fwd/main.c | 10 +- 14 files changed, 3005 insertions(+), 5 deletions(-) create mode 100644 doc/guides/sample_app_ug/l2_forward_event_real_virtual.rst create mode 100644 examples/l2fwd-event/Makefile create mode 100644 examples/l2fwd-event/l2fwd_common.h create mode 100644 examples/l2fwd-event/l2fwd_eventdev.c create mode 100644 examples/l2fwd-event/l2fwd_eventdev.h create mode 100644 examples/l2fwd-event/l2fwd_eventdev_generic.c create mode 100644 examples/l2fwd-event/l2fwd_eventdev_internal_port.c create mode 100644 examples/l2fwd-event/main.c create mode 100644 examples/l2fwd-event/meson.build -- 2.17.1