From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgw.gov.kz (mgw.gov.kz [89.218.88.242]) by dpdk.org (Postfix) with ESMTP id BEEC668B7 for ; Thu, 11 Sep 2014 11:47:44 +0200 (CEST) Received: from mgw.gov.kz (mx.ctsat.kz [178.89.4.95]) by mgw.gov.kz with ESMTP id s8B9qt8b028528-s8B9qt8c028528; Thu, 11 Sep 2014 15:52:55 +0600 Received: from EXCASHUB2.rgp.local (192.168.40.53) by EdgeForefront.rgp.local (192.168.40.59) with Microsoft SMTP Server (TLS) id 14.2.247.3; Thu, 11 Sep 2014 15:52:42 +0600 Received: from [192.168.35.15] (192.168.35.15) by excashub2.rgp.local (192.168.40.48) with Microsoft SMTP Server (TLS) id 14.2.247.3; Thu, 11 Sep 2014 15:52:47 +0600 Message-ID: <54117091.6010903@sts.kz> Date: Thu, 11 Sep 2014 15:51:13 +0600 From: Yerden Zhumabekov User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Xin Li , "dev@dpdk.org" References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [192.168.35.15] X-FEAS-SYSTEM-WL: e_zhumabekov@sts.kz Subject: Re: [dpdk-dev] l2fwd does not send packets 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: Thu, 11 Sep 2014 09:47:45 -0000 Hi, To make l2fwd act like a L2 bridge, I had altered l2fwd_simple_forward() function: static void l2fwd_simple_forward(struct rte_mbuf *m, unsigned portid) { unsigned dst_port; dst_port = l2fwd_dst_ports[portid]; l2fwd_send_packet(m, (uint8_t) dst_port); } 11.09.2014 3:18, Xin Li пишет: > Hi, > > The l2fwd sample application in my environment does not send packets > through the TX port. I run DPDK inside a KVM guest. The NIC ports are VFs > assigned to the VM by pci passthrough. > > Environment: > > Host OS: ubuntu 14.04 x86_64 > NIC: intel x540-t1 > Guest OS: ubuntu 14.04 x86_64 > DPDK: v1.7.0 > > Some findings: > > 1. l2fwd reports 511 packets sent when max tx descriptor is 512, The number > changes to 1023 if the max tx descriptor is set to 1024. > > 2. On the receiver side, no packet captured. > > Anyone know the issue and the corresponding fix? Thanks. > > Best, > Xin -- Sincerely, Yerden Zhumabekov State Technical Service Astana, KZ