From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.161.173]) by dpdk.org (Postfix) with ESMTP id AE24C5592 for ; Sat, 31 Dec 2016 10:19:18 +0100 (CET) Received: by mail-yw0-f173.google.com with SMTP id r204so239760003ywb.0 for ; Sat, 31 Dec 2016 01:19:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=TlEaDi2wJpByqYuot+JqajZBlwR2ACuSTTlvigqwTkk=; b=Pk1LWuXKvXHpRsdrSVMglHP567CAtaSzlMXVbI6I22N5bj2/i3hFtRfyP+cP0v0Wun SvZ72vDOR6uwKQ2JCXoQBlk1eltK6AKB6cILYBRYs4Xg+pxT9KMkohuRdOfYw3X4kxzb gPAngAnwnLQRvDHQhFuIVIX2X1YZklSp/YYovSqYST8dxBqIBuTfBXt1LBjCuBTnqYuW 9K+ho6z9/GF41OCrMQH51npELvcnmnW3f87BEZcKF8Azl0uYdoItPFxWw9qCS6Je6CCu VAflcQKL4dIH+JmjYOSk9qjJdbXGM06EYjL2S/vvp8MpE8fexrSx5C4we3ZZana0rcfT 16IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=TlEaDi2wJpByqYuot+JqajZBlwR2ACuSTTlvigqwTkk=; b=ZtdW9mInvnxhtA5RhZlKGNCxeCJMMwlQLa5H3BGA0D/DHFYlrjpOEpxVl3KHeeDJOI jSqcTIbZP9EWk//woE0mSRoCEcfUZIkle5ia9Rc3j71NPkbs9cuvwDTRrEc7AxAYM5Pc oxntEJrbma1GgkxygvYjFFaVq/jRAmBjJ1kvkawh1B+3fM1/XkKFMGMl8qD9Tdrb1Xv5 ltS6Widke6615ccjM/P0e+zvcE6PlBVbTrK0px007UKAF1lk75u6P6vtbo1p9T9a2J++ FX1fHm2kW3jv16gUUENRbymHcke+3DU0t2UHj2vwavOQvZNc7DEudmHjX8RkH6vlYgmS wfuA== X-Gm-Message-State: AIkVDXIpYz1ih0gffzMFAlIm8mSs4MICfvdr56H2XgHoZi+si4okvM0zq53M10rJcjxw1OKONKxpzzjTuJYOzQ== X-Received: by 10.129.165.21 with SMTP id c21mr45283209ywh.48.1483175958044; Sat, 31 Dec 2016 01:19:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.99.213 with HTTP; Sat, 31 Dec 2016 01:19:17 -0800 (PST) From: Kevin Wilson Date: Sat, 31 Dec 2016 11:19:17 +0200 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Subject: [dpdk-users] dpdk pcap in testpmd - not working in dpdk 16.11 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2016 09:19:18 -0000 Hi, I am trying to read packets from one pcap file and write them to another pcap file, according to the example in: http://dpdk.org/doc/guides/nics/pcap_ring.html The code is built with support for pmd pcap (I have in build/.config: CONFIG_RTE_LIBRTE_PMD_PCAP=y) In dpdk-16.04 this works: I am running: ./build/app/testpmd -c '0x3' -n 4 --vdev 'eth_pcap0,rx_pcap=96pings.pcap,tx_pcap=file_tx.pcap' -- --port-topology=chained and after pressing enter I see +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ RX-packets: 96 RX-dropped: 0 RX-total: 96 TX-packets: 96 TX-dropped: 0 TX-total: 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ and a file named "file_tx.pcap" is generated, and it has the exact size of the input file, 96pings.pcap. Next I tried with dpdk 16.11 and it fails to copy the file, but without an error message. As opposed to the previous invocation, please note the change to "net_pcap0", according to the the doc, which is not supported in 16.04. ./build/app/testpmd -c '0x3' -n 4 --vdev 'net_pcap0,rx_pcap=96pings.pcap,tx_pcap=file_tx.pcap' -- --port-topology=chained What I see is: ... +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 0 TX-dropped: 0 TX-total: 0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ And ls -al *.pcap shows that the file_tx.pcap size is only 24 bytes (as opposed to the input file, 96pings.pcap, which is 10776 bytes). Any ideas ? is it a BUG of 16.11 ? can somebody check this sequence in 16.11 with some arbitrary pcap input file? Regards, Kevin