From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by dpdk.org (Postfix) with ESMTP id 28BCA11A2 for ; Wed, 18 Mar 2015 17:39:14 +0100 (CET) Received: by lbcgn8 with SMTP id gn8so33921736lbc.2 for ; Wed, 18 Mar 2015 09:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=W/GcdEN2JE1rnEiLgybiIePKaolKPHQwdKn4Ky8x6V8=; b=rz4+Vfy2KmwLz93ML95SnPZUPSmRDvLoVNfTJnfByCK6aT5DWNqtkrW/WD0n+RxD3L 52g83HGqS9inJT7yOsdp5WBGa3ZJMeK322tYgHp9HvoK5saKbKCe5hWaaish6V3nUeVD TqnyRNfJUEfE/4jh4Akysvd4pArgeS1tABUsMT5V30Nic5MvaRThExbfCUfxysWAhAEn 7dNuwb/zqQqeshJgB4coscG/1TKSnShxOxbKyMNplvJ1VxGYjw9ZNpSS79CuRZOvIz3E kdJfvkWmsMnp1cvncYMeCnAXMdTawITdRlv4oxtZeQzV3TH4iM3nMgKW/ZDkrfVU7jCV wbAg== MIME-Version: 1.0 X-Received: by 10.152.26.201 with SMTP id n9mr64356767lag.29.1426696753812; Wed, 18 Mar 2015 09:39:13 -0700 (PDT) Received: by 10.25.214.42 with HTTP; Wed, 18 Mar 2015 09:39:13 -0700 (PDT) Date: Wed, 18 Mar 2015 22:09:13 +0530 Message-ID: From: Shankari Vaidyalingam To: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Virtual NIC interface fails to receive 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: Wed, 18 Mar 2015 16:39:14 -0000 Hi, I'm trying to test the l2fwd sample application by passing packets from traffic generator. I'm doing this testing in a VM with a configuration hav=E2=80=8Cing virtual= NIC port. When I bind the virtual NIC port with the igb driver, the interface doesnt get listed in the "ifconfig" output. Also the virtual NIC port fails to receive packets from the traffic generator after the interface is bound to igb driver. Please let me know whether this is the expected behavior and also let me know how I can make the traffic pass through the port bound to the igb driver. While starting the VM the interfaces currently active: controller@controller-VirtualBox:~$ ifconfig -a eth0 Link encap:Ethernet HWaddr 08:00:27:21:a9:02 inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.= 0 inet6 addr: fe80::a00:27ff:fe21:a902/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:70 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1180 (1.1 KB) TX bytes:14504 (14.5 KB) eth1 Link encap:Ethernet HWaddr 08:00:27:ef:8b:a1 inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.= 0 inet6 addr: fe80::a00:27ff:feef:8ba1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:80 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1180 (1.1 KB) TX bytes:15132 (15.1 KB) eth2 Link encap:Ethernet HWaddr 08:00:27:bc:04:b6 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:febc:4b6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:150 errors:0 dropped:0 overruns:0 frame:0 TX packets:215 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:12304 (12.3 KB) TX bytes:25233 (25.2 KB) eth4 Link encap:Ethernet HWaddr 08:00:27:b7:3a:25 inet6 addr: fe80::a00:27ff:feb7:3a25/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:196 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:44609 (44.6 KB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:300 errors:0 dropped:0 overruns:0 frame:0 TX packets:300 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:18580 (18.5 KB) TX bytes:18580 (18.5 KB) After executing this command >>>> controller@controller-VirtualBox:~/dpdk-1.7.1$ sudo insmod $RTE_SDK/$RTE_TARGET/kmod/igb_uio.ko controller@controller-VirtualBox:~/dpdk-1.7.1$ sudo $RTE_SDK/tools/dpdk_nic_bind.py --bind=3Digb_uio 00:08.0 00:09.0 00:0a.0 Routing table indicates that interface 0000:00:08.0 is active. Not modifyin= g Routing table indicates that interface 0000:00:09.0 is active. Not modifyin= g controller@controller-VirtualBox:~/dpdk-1.7.1$ sudo $RTE_SDK/tools/dpdk_nic_bind.py --status Network devices using DPDK-compatible driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:0a.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=3Digb_uio unused=3De1000 Network devices using kernel driver =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0000:00:08.0 '82545EM Gigabit Ethernet Controller (Copper)' if=3Deth0 drv=3De1000 unused=3Digb_uio *Active* 0000:00:09.0 '82545EM Gigabit Ethernet Controller (Copper)' if=3Deth1 drv=3De1000 unused=3Digb_uio *Active* 0000:00:11.0 '82545EM Gigabit Ethernet Controller (Copper)' if=3Deth2 drv=3De1000 unused=3Digb_uio *Active* Other network devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D got the below output: controller@controller-VirtualBox:~$ ifconfig eth4 >>> Corresponds to the interface bound to igb driver eth4: error fetching interface information: Device not found controller@controller-VirtualBox:~$ ifconfig eth2 eth2 Link encap:Ethernet HWaddr 08:00:27:bc:04:b6 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:febc:4b6/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:197 errors:0 dropped:0 overruns:0 frame:0 TX packets:271 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:15864 (15.8 KB) TX bytes:30592 (30.5 KB) controller@controller-VirtualBox:~$ ifconfig eth1 eth1 Link encap:Ethernet HWaddr 08:00:27:ef:8b:a1 inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.= 0 inet6 addr: fe80::a00:27ff:feef:8ba1/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:90 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1180 (1.1 KB) TX bytes:17162 (17.1 KB)aff After this when I send traffic with this MAC >>> 080027b73a25 traffic does not flow to this interface Regards Shankari.V