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 8D10BA2EDB for ; Fri, 6 Sep 2019 10:05:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F8D31F2AE; Fri, 6 Sep 2019 10:05:15 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 46D131F275 for ; Fri, 6 Sep 2019 10:05:14 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x86802GU024642 for ; Fri, 6 Sep 2019 01:05:13 -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-type; s=pfpt0818; bh=g14jZmERTWH4yW7IW2qmXwNT853TWvwFtPP2ffQv9uk=; b=ebhVjvrePOWU51tOGZXu9L4IBaBkHvQwGSIDyiBtNQjGY9vTiU19Szw9/Xy5NQNo5nEK I/gJnvOS+kMqORxLwFSu57JmG5ICuXEaf4gI3SggVkvXBl2g46Q5mdpvt3Ubwhy+NVEZ 89mLflK1w6FaFQKNNN7s98JW/4RANGls6WF1xz0EtZjYy0Rp+noVL//BbF58l8CwxuY0 NIZYvg7wsrXbVRfBjd3C0cjkVIYC49DpT6R/6blV8lqHinM4s6LB3vT+pQZGHZQsv5zv x7IUQQGPyU+Qw0WTOrbQ/Pj5rJY7gUsSLKo/lIp+YmABYAs2lq85DvHV4UkO+LErF/cW UQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2uqp8pqcvr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 06 Sep 2019 01:05:13 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 6 Sep 2019 01:05:11 -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; Fri, 6 Sep 2019 01:05:11 -0700 Received: from dc7-eodlnx05.marvell.com (dc7-eodlnx05.marvell.com [10.28.113.55]) by maili.marvell.com (Postfix) with ESMTP id 376653F7040; Fri, 6 Sep 2019 01:05:09 -0700 (PDT) From: Sunil Kumar Kori To: CC: , Sunil Kumar Kori Date: Fri, 6 Sep 2019 13:34:27 +0530 Message-ID: <1567757068-7099-1-git-send-email-skori@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-06_03:2019-09-04,2019-09-06 signatures=0 Subject: [dpdk-dev] [PATCH] examples/l3fwd: Eventdev mode support for packet I/O 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" Patchset adds support for eventdev mode for packet enqueue/dequeue. Following is the summary of newly added features: 1. Exposing new command line parameters. - mode: It dictates the mode of operation i.e. poll or eventdev. - eventq_sync: It dictates eventq synchronization method i.e. atomic or ordered. Currently only atomic and ordered methods are implemented. 2. Default application will be working into poll mode. 3. All the eventdev resources are initialized with default values. no configuration are exposed to the user. Following is the summary of default configuration: - Single instance of eventdev supported. - Number of event ports are equal to number of worker thread. - Number of event queue are equal number of ethernet ports. - Each event port is linked to all existing event queues. - Dedicated Rx adapter for each Ethernet port and all Ethernet port Rx queues are added to respective Rx adapter. - Dedicated Tx adapter for each Ethernet port and all Ethernet port Rx queues are added to respective Rx adapter. Sunil Kumar Kori (1): examples/l3fwd: add support for eventdev mode examples/l3fwd/Makefile | 2 +- examples/l3fwd/l3fwd.h | 21 +- examples/l3fwd/l3fwd_common.h | 10 + examples/l3fwd/l3fwd_em.c | 69 +++++ examples/l3fwd/l3fwd_eventdev.c | 593 ++++++++++++++++++++++++++++++++++++++++ examples/l3fwd/l3fwd_eventdev.h | 85 ++++++ examples/l3fwd/l3fwd_lpm.c | 71 +++++ examples/l3fwd/main.c | 46 +++- 8 files changed, 887 insertions(+), 10 deletions(-) create mode 100644 examples/l3fwd/l3fwd_eventdev.c create mode 100644 examples/l3fwd/l3fwd_eventdev.h -- 1.8.3.1