About the vpp service on boot - it was disabled - I enable it with systemctl and now OK
> -----Original Message----- > From: Avi Cohen (A) > Sent: Sunday, 01 April, 2018 10:57 AM > To: 'Damjan Marion'; vpp-dev@lists.fd.io > Subject: RE: [vpp-dev] virtio devices add to white list > > Thank you Yichen and Damjan > I don’t have to insmod igb_uio - VPP handles it. > So connecting to pci devices from startup config is OK. > > Another question: > 1. how to connect to a pci device during runtime ? > 2. My VPP service is not started automatically during boot - why is that ? > > Best Regards > Avi > > > -----Original Message----- > > From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of > > Damjan Marion > > Sent: Thursday, 29 March, 2018 10:36 PM > > To: vpp-dev@lists.fd.io > > Cc: vpp-dev@lists.fd.io > > Subject: Re: [vpp-dev] virtio devices add to white list > > > > > > Why you cannot use uio_pci_generic or even better vfio-pci in no-iommu > > mode instead of igb_uio? > > > > > On 29 Mar 2018, at 20:18, Yichen Wang <yicw...@cisco.com> wrote: > > > > > > This is a general questions of Linux. Proper way is (1) Install the > > > kernel modules; (2) Create /etc/modules-load.d/<name>.conf so KO > > > will automatically being loaded > > > > > > More practical way, or for development: > > > (1) If you have a systemd managed VPP service, you can add these > > > commands in the systemd service file as ExecPre task; > > > (2) Just put this two line in /etc/rc.local. > > > > > > Normally for long term, you may want to deal with kernel update case > > > for > > this particular KO. > > > > > > Thanks very much! > > > > > > Regards, > > > Yichen > > > > > > On 3/29/18, 5:11 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: > > > > > > 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 (#8750): https://lists.fd.io/g/vpp-dev/message/8750 View All Messages In Topic (11): 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 -=-=-=-=-=-=-=-=-=-=-=-