From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 2257D292D for ; Fri, 11 Mar 2016 18:08:12 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 11 Mar 2016 09:08:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,321,1455004800"; d="scan'208";a="667774582" Received: from sie-lab-212-033.ir.intel.com (HELO silpixa00383881.ir.intel.com) ([10.237.212.33]) by FMSMGA003.fm.intel.com with ESMTP; 11 Mar 2016 09:08:11 -0800 From: Fan Zhang To: dev@dpdk.org Date: Fri, 11 Mar 2016 17:08:06 +0000 Message-Id: <1457716090-26742-1-git-send-email-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457539652-17337-1-git-send-email-roy.fan.zhang@intel.com> References: <1457539652-17337-1-git-send-email-roy.fan.zhang@intel.com> Subject: [dpdk-dev] [PATCH v4 0/4] Add PCAP support to source and sink port X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 17:08:13 -0000 This patchset adds feature to source and sink type port in librte_port library, and to examples/ip_pipline. Originally, source/sink ports act as input and output of NULL packets generator. This patchset enables them read from and write to specific PCAP file, to generate and dump packets. v4: *fixed compile issue when RTE_NEXT_ABI is disabled v3: *added RTE_NEXT_ABI macro to source port *updated to fit ip_pipeline configuration new code style v2: *fixed source/sink open function returns *removed duplicated code *added clearer error message display on different error messages Acked-by: Cristian Dumitrescu Fan Zhang (4): lib/librte_port: add PCAP file support to source port example/ip_pipeline: add PCAP file support lib/librte_port: add packet dumping to PCAP file support in sink port examples/ip_pipeline: add packets dumping to PCAP file support config/common_base | 1 + examples/ip_pipeline/app.h | 6 +- examples/ip_pipeline/config_parse.c | 291 ++++++++++++++++++- examples/ip_pipeline/init.c | 35 ++- examples/ip_pipeline/pipeline_be.h | 4 +- lib/librte_port/Makefile | 10 +- lib/librte_port/rte_port_source_sink.c | 501 ++++++++++++++++++++++++++++++++- lib/librte_port/rte_port_source_sink.h | 24 +- mk/rte.app.mk | 5 + 9 files changed, 865 insertions(+), 12 deletions(-) -- 2.5.0