From patchwork Tue Sep 8 12:31:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guy Kaneti X-Patchwork-Id: 76918 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A989FA04AA; Tue, 8 Sep 2020 14:33:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 231201BE85; Tue, 8 Sep 2020 14:33:09 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 5579D1BE0C for ; Tue, 8 Sep 2020 14:33:07 +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 088CV3cF024986; Tue, 8 Sep 2020 05:33:06 -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=pfpt0220; bh=LHf55gwsRY0+courFVo1g0kmPKr7l/ic0xt0iHIhZJw=; b=gjh1pwO9miBKW1v9mBuXVYvFswlo4DneWZMR2dsH/yJooN/3r0zHNNTYoTITJmWih2GT samcNNunf5eHCHwWFam8vpENoT0wmSAvFDYk6DQTN383cEVHlsg7G7shCCJnx3npZxBu zqO5U0yUXHBUOxdPniuu8xZLJR2/NPZi/nWSb01nF7yeqivVvxDcd99bMDD2WNZ4jtta /Ml9OA1mzn8Vby6tktWSCSh2EbmaehtaIFAnn+cGkF2EflZjScF2VC3mLhokyy59RLkv trLOTh+d1phCeRzYj0evUikc5eyrg3X04S89l9CEr/hPYO99aAGkfrPwTap4WkFb3SQL bA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 33ccvr27pb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 08 Sep 2020 05:33:05 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Sep 2020 05:33:03 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 8 Sep 2020 05:33:04 -0700 Received: from vvenus124.il.marvell.com (unknown [10.5.116.64]) by maili.marvell.com (Postfix) with ESMTP id AB7923F7043; Tue, 8 Sep 2020 05:33:01 -0700 (PDT) From: To: , , , CC: , , , , Date: Tue, 8 Sep 2020 15:31:42 +0300 Message-ID: <20200908123144.26444-1-guyk@marvell.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-08_06:2020-09-08, 2020-09-08 signatures=0 Subject: [dpdk-dev] [PATCH 0/2] Add example l3fwd-regex 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: Guy Kaneti The L3 Forwarding with Regex application is a simple example of packet processing using DPDK Regex framework. The application performs L3 LPM based forwarding while using Regex framework for pre-filtering decision. Guy Kaneti (2): examples/l3fwd-regex: add regex based l3fwd doc: add l3fwd-regex application user guide MAINTAINERS | 3 + doc/guides/sample_app_ug/index.rst | 1 + doc/guides/sample_app_ug/intro.rst | 4 + doc/guides/sample_app_ug/l3_forward_regex.rst | 235 ++++ examples/l3fwd-regex/l3fwd.h | 207 +++ examples/l3fwd-regex/l3fwd_lpm.c | 461 +++++++ examples/l3fwd-regex/l3fwd_lpm.h | 100 ++ examples/l3fwd-regex/l3fwd_regex.c | 487 +++++++ examples/l3fwd-regex/l3fwd_regex.h | 38 + examples/l3fwd-regex/main.c | 1117 +++++++++++++++++ examples/l3fwd-regex/meson.build | 10 + examples/meson.build | 2 +- 12 files changed, 2664 insertions(+), 1 deletion(-) create mode 100644 doc/guides/sample_app_ug/l3_forward_regex.rst create mode 100644 examples/l3fwd-regex/l3fwd.h create mode 100644 examples/l3fwd-regex/l3fwd_lpm.c create mode 100644 examples/l3fwd-regex/l3fwd_lpm.h create mode 100644 examples/l3fwd-regex/l3fwd_regex.c create mode 100644 examples/l3fwd-regex/l3fwd_regex.h create mode 100644 examples/l3fwd-regex/main.c create mode 100644 examples/l3fwd-regex/meson.build