Yichen Also do I have to insmod the igb_uio or this can be done auto by vpp ? where to put it ? Regards Avi
> -----Original Message----- > From: Avi Cohen (A) > Sent: Thursday, 29 March, 2018 2:34 PM > To: 'Yichen Wang (yicwang)'; vpp-dev@lists.fd.io > Subject: RE: [vpp-dev] virtio devices add to white list > > Great Yichen, > I see that the interfaces should be down before VPP startup, otherwise it > does > not acquire the interface > > Best Regards > Avi > > > > -----Original Message----- > > From: Yichen Wang (yicwang) [mailto:yicw...@cisco.com] > > Sent: Thursday, 29 March, 2018 9:45 AM > > To: Avi Cohen (A); vpp-dev@lists.fd.io > > Subject: Re: [vpp-dev] virtio devices add to white list > > > > Hi, Avu, > > > > If I am understanding correctly, you want to run VPP in a VM, while > > the interface is a virtio interface. > > > > If that is the case, there is no difference as you want to use with a > > physical NIC interface. You need to get the PCI address of your virtio > > interface by using "lspci" + "ip" command. Or just this "basename > > $(readlink /sys/class/net/ens3/device)". Once you have the pci > > address, put below in the startup.conf file for VPP to consume: > > dpdk { > > dev {{PCI_ADDRESS_1}} > > dev {{PCI_ADDRESS_2}} > > uio-driver igb_uio > > } > > > > For uio-driver, you have the choice of igb_uio or vfio-pci. Up to you. > > If you want igb_uio, you may need to compile it manually from dpdk if on > RedHat distro. > > > > Thanks very much! > > > > Regards, > > Yichen > > > > On 3/28/18, 10:54 PM, "vpp-dev@lists.fd.io on behalf of Avi Cohen > > (A)" <vpp- d...@lists.fd.io on behalf of avi.co...@huawei.com> wrote: > > > > Thank you Steven > > My interfaces are not vhost-user. > > Just virtio interfaces created on the host and then assigned to the VM. > > In my VM is see them as ens3 , ens4 etc... > > > > Regards > > Avu > > > > > > > -----Original Message----- > > > From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of > steven > > > luong > > > Sent: Wednesday, 28 March, 2018 7:08 PM > > > To: vpp-dev@lists.fd.io > > > Subject: Re: [vpp-dev] virtio devices add to white list > > > > > > Avi, > > > > > > Yes, you can. As an example, I have it like this in my startup.conf > > > > > > dpdk { > > > vdev virtio_user0,path=/tmp/sock0 > > > } > > > > > > Steven > > > > > > On 3/28/18, 8:09 AM, "vpp-dev@lists.fd.io on behalf of Avi Cohen (A)" > > <vpp- > > > d...@lists.fd.io on behalf of avi.co...@huawei.com> wrote: > > > > > > Hi > > > In the startup.conf , in the dpdk part we can add pci devices to > > the > white- > > list . > > > Is there option to also add virtual interfaces to white-list - > > I'm running > > VPP on > > > virtual-machine and I have few virtio devices that I would > > automatically add to > > > VPP > > > > > > Best Regards > > > Avi > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8723): https://lists.fd.io/g/vpp-dev/message/8723 View All Messages In Topic (7): https://lists.fd.io/g/vpp-dev/topic/16303673 Mute This Topic: https://lists.fd.io/mt/16303673/21656 New Topic: https://lists.fd.io/g/vpp-dev/post Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656 Group Home: https://lists.fd.io/g/vpp-dev Contact Group Owner: vpp-dev+ow...@lists.fd.io Terms of Service: https://lists.fd.io/static/tos Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub -=-=-=-=-=-=-=-=-=-=-=-