[vpp-dev] virtio devices add to white list
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 (#8711): https://lists.fd.io/g/vpp-dev/message/8711 View All Messages In Topic (1): 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 -=-=-=-=-=-=-=-=-=-=-=-
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)" 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 (#8713): https://lists.fd.io/g/vpp-dev/message/8713 View All Messages In Topic (2): 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 -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] virtio devices add to white list
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)" 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 (#8718): https://lists.fd.io/g/vpp-dev/message/8718 View All Messages In Topic (3): 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 -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] virtio devices add to white list
Or maybe this is impossible to acquire theses linux interfaces in the VPP. Should I create a host-interface (af-packet) to connect this interface ? For example to connect ens3 interface vppctl create host-interface name ens3 ? Regards Avi > -Original Message- > From: Avi Cohen (A) > Sent: Thursday, 29 March, 2018 8:54 AM > To: 'steven luong'; vpp-dev@lists.fd.io > Subject: RE: [vpp-dev] virtio devices add to white list > > 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)" > > 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 (#8719): https://lists.fd.io/g/vpp-dev/message/8719 View All Messages In Topic (4): 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 -=-=-=-=-=-=-=-=-=-=-=-
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)" 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)" 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 (#8720): https://lists.fd.io/g/vpp-dev/message/8720 View All Messages In Topic (5): 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 -=-=-=-=-=-=-=-=-=-=-=-
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)" 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)" > > 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 (#8722): https://lists.fd.io/g/vpp-dev/message/8722 View All Messages In Topic (6): 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 -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] virtio devices add to white list
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)" 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)" > > > > 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 -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] virtio devices add to white list
This is a general questions of Linux. Proper way is (1) Install the kernel modules; (2) Create /etc/modules-load.d/.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)" 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)" 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)" > > > > 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 (#8733): https://lists.fd.io/g/vpp-dev/message/8733 View All Messages In Topic (8): 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 -=-=-=-=-=-=-=-=-=-=-=-
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 wrote: > > This is a general questions of Linux. Proper way is (1) Install the kernel > modules; (2) Create /etc/modules-load.d/.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)" > 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)" 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)" >>> >>> 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 (#8735): https://lists.fd.io/g/vpp-dev/message/8735 View All Messages In Topic (9): 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 -=-=-=-=-=-=-=-=-=-=-=-
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 wrote: > > > > This is a general questions of Linux. Proper way is (1) Install the > > kernel modules; (2) Create /etc/modules-load.d/.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)" 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)" 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 > >>>
Re: [vpp-dev] virtio devices add to white list
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 wrote: > > > > > > This is a general questions of Linux. Proper way is (1) Install the > > > kernel modules; (2) Create /etc/modules-load.d/.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)" > 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)" wrote: > > >>> > > >>>Thank you Steven > > >>>My interfaces are not vhost-user. > > >>>Just virtio interfaces created on the