Hi Damjan, Sorry i just saw your reply. Some how it was buried in a folder and i did not pay attention.
I don't have the setup now, but i can summarize what i found recently. 1. When using vpp 17.4 with ubuntu 16.04.2 (kernel 4.8), show PCI indicated the nic using its native driver (ixg40 x710), even when i put the nic in whitelist of vpp. For comparison, with vpp 17.4 and ubuntu 14.04, same startup.conf had shown the nic as pass-through interface on vpp and driver as uio_pci_genric. 2. For vpp 17.1 with ubuntu 16.04.2, it will still show as ixg40 x710, if i just add the PCI to startup.conf as whitelist. But, after i manually load up uio_pci_genric (modprobe uio_pci_gneric), and ten restart vpp, the nic will show up as pass-through interface and "show pci" will show it is using pci_uio. Doing lsmod on host will confirm it is using pci_uio. The manually loaded uio_pci_generic has 0 user. I believe this issue is related to the new kernel switching to systemd for device initialization. Is there any fix available? 3. never mind for the "create host-interface", it shall only work with tap interface. Thanks, Yewei -------------------------------------------- On Fri, 4/14/17, Damjan Marion (damarion) <damar...@cisco.com> wrote: Subject: Re: [vpp-dev] whitelist pci pass-through and host interface To: "Yewei Tang" <yeweit...@yahoo.com> Cc: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io> Date: Friday, April 14, 2017, 2:43 PM > On 12 Apr 2017, at 03:57, Yewei Tang via vpp-dev <vpp-dev@lists.fd.io> wrote: > > Hi Friends, > I have some question regarding pci pass-though for bare metal host interface. > All following questions are for running vpp on bare metal ubuntu. > > 1. host interface won't showing up. > As i understand, when i start vpp, it can see all the host interface that are in down state and not in host routing table. This is true if i run vpp in a vagrant box ("show int" shows the down interface of vbox host). But this was not happening when i ran vpp on bare metal ubuntu host. is there any additional setting for bare metal linux? > > 2. Add host interface to vpp by using "create host-interface <name>" > The "create host-interface" command works fine with veth pair or tap interface. For host physical nic interface, such as eth2, i can add it to vpp. It show up as host-eth2. But it seems cannot passing traffic. Is it true the "create host-interface " command does not suppose to work with physical interface? > > 3. pci passthrough. > With kernel 4.4.1, if i add pci number to dpdk white list in /etc/vpp/startup.conf and bring up vpp, vpp can see the interface and pass packets. But after upgrade kernel to 4.8, (ubuntu 16.4.02) even i added the interface pci number to white list, vpp can not see the pass through interface anymore. > Does vpp dpdk support kernel newer than 4.4.1? > Can you share output of "show pci" command? > > Thanks a lot! > > Yewei > > Some related post on vpp-dev. but i cannot find solution to my questions. > https://lists.fd.io/pipermail/vpp-dev/2016-March/000235.html > _______________________________________________ > vpp-dev mailing list > vpp-dev@lists.fd.io > https://lists.fd.io/mailman/listinfo/vpp-dev _______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev