Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Sandeep Adapala
I am having a HP ProLiant DL360 Gen9 (755258-B21) with Intel NIC

On Thu, Jul 12, 2018 at 3:43 PM, Ian Stokes  wrote:

> On 7/12/2018 8:28 PM, Sandeep Adapala wrote:
>
>> Yes that would be great help. Ben.
>>
>>
> I've posted a patch to address this, comments are welcome.
>
> https://mail.openvswitch.org/pipermail/ovs-dev/2018-July/349611.html
>
> Ian, Flavio- Now I have moved little bit further. now I am in start
>> switched step. I got this error when I do ovs-vswitchd unix:$DB_SOCK
>> --pidfile --detach
>>
>> Device is ineligible for IOMMU domain attach due to platform RMRR
>> requirement
>>
>>
> I haven't come across this error before myself, what type of platform are
> you using?
>
> Ian
>
>>
>> but my NIC is Intel05:00.0 Ethernet controller: Intel Corporation 82599ES
>> 10-Gigabit SFI/SFP+ Network Connection (rev 01)
>>
>>
>> So am I missing anything here?
>>
>>
>> Regards,
>>
>> Sandeep
>>
>>
>>
>>
>> On Thu, Jul 12, 2018 at 12:55 PM, Ben Pfaff > b...@ovn.org>> wrote:
>>
>> On Thu, Jul 12, 2018 at 03:42:08PM +0100, Ian Stokes wrote:
>> > On 7/12/2018 3:26 PM, Flavio Leitner wrote:
>> > >On Thu, Jul 12, 2018 at 09:41:24AM -0400, Sandeep Adapala wrote:
>> > >>Hello Ian,
>> > >>
>> > >>Currently I am using Ubuntu 16.04 OS
>> > >>OVS version is v2.6.1 and DPDK is v16.11.1
>> > > I'd echo what Flavio has said below, also OVS 2.6.1 uses DPDK
>> 16.07.1, I'm
>> > not sure if it will work as is with DPDK 16.11. The OVS to DPDK
>> version
>> > mappings are available in the OVS release FAQ.
>> > > http://docs.openvswitch.org/en/latest/faq/releases/
>> 
>>
>> Should we move that mapping in the DPDK installation instructions?
>> Then
>> we'd get fewer questions because users would have the right answer to
>> that particular question whenever they read the instructions, even if
>> they happened to read the instructions for the wrong version.
>>
>>
>>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Ian Stokes

On 7/12/2018 8:28 PM, Sandeep Adapala wrote:

Yes that would be great help. Ben.



I've posted a patch to address this, comments are welcome.

https://mail.openvswitch.org/pipermail/ovs-dev/2018-July/349611.html

Ian, Flavio- Now I have moved little bit further. now I am in start 
switched step. I got this error when I do ovs-vswitchd unix:$DB_SOCK 
--pidfile --detach


Device is ineligible for IOMMU domain attach due to platform RMRR requirement



I haven't come across this error before myself, what type of platform 
are you using?


Ian


but my NIC is Intel05:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit 
SFI/SFP+ Network Connection (rev 01)



So am I missing anything here?


Regards,

Sandeep




On Thu, Jul 12, 2018 at 12:55 PM, Ben Pfaff > wrote:


On Thu, Jul 12, 2018 at 03:42:08PM +0100, Ian Stokes wrote:
> On 7/12/2018 3:26 PM, Flavio Leitner wrote:
> >On Thu, Jul 12, 2018 at 09:41:24AM -0400, Sandeep Adapala wrote:
> >>Hello Ian,
> >>
> >>Currently I am using Ubuntu 16.04 OS
> >>OVS version is v2.6.1 and DPDK is v16.11.1
> 
> I'd echo what Flavio has said below, also OVS 2.6.1 uses DPDK 16.07.1, I'm

> not sure if it will work as is with DPDK 16.11. The OVS to DPDK version
> mappings are available in the OVS release FAQ.
> 
> http://docs.openvswitch.org/en/latest/faq/releases/



Should we move that mapping in the DPDK installation instructions?  Then
we'd get fewer questions because users would have the right answer to
that particular question whenever they read the instructions, even if
they happened to read the instructions for the wrong version.




___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Sandeep Adapala
Yes that would be great help. Ben.

Ian, Flavio- Now I have moved little bit further. now I am in start
switched step. I got this error when I do ovs-vswitchd unix:$DB_SOCK
--pidfile --detach

Device is ineligible for IOMMU domain attach due to platform RMRR requirement


but my NIC is Intel 05:00.0 Ethernet controller: Intel Corporation
82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)


So am I missing anything here?


Regards,

Sandeep




On Thu, Jul 12, 2018 at 12:55 PM, Ben Pfaff  wrote:

> On Thu, Jul 12, 2018 at 03:42:08PM +0100, Ian Stokes wrote:
> > On 7/12/2018 3:26 PM, Flavio Leitner wrote:
> > >On Thu, Jul 12, 2018 at 09:41:24AM -0400, Sandeep Adapala wrote:
> > >>Hello Ian,
> > >>
> > >>Currently I am using Ubuntu 16.04 OS
> > >>OVS version is v2.6.1 and DPDK is v16.11.1
> >
> > I'd echo what Flavio has said below, also OVS 2.6.1 uses DPDK 16.07.1,
> I'm
> > not sure if it will work as is with DPDK 16.11. The OVS to DPDK version
> > mappings are available in the OVS release FAQ.
> >
> > http://docs.openvswitch.org/en/latest/faq/releases/
>
> Should we move that mapping in the DPDK installation instructions?  Then
> we'd get fewer questions because users would have the right answer to
> that particular question whenever they read the instructions, even if
> they happened to read the instructions for the wrong version.
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Ian Stokes

On 7/12/2018 5:54 PM, Ben Pfaff wrote:

On Thu, Jul 12, 2018 at 11:26:53AM -0300, Flavio Leitner wrote:

On Thu, Jul 12, 2018 at 09:41:24AM -0400, Sandeep Adapala wrote:

Hello Ian,

Currently I am using Ubuntu 16.04 OS
OVS version is v2.6.1 and DPDK is v16.11.1



You need to follow the instructions of the version you're using.
The doc url below refers to the latest OVS which is different than
the 2.6.1 you're using.


I wonder whether we should add a note to the DPDK installation
instructions that says that they vary between versions and that if
you're reading them outside the OVS build tree then you should check
that you're looking at the right version.


Good point, this issue has appears quite a bit. I'll submit a patch to 
do this.


Ian

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Ben Pfaff
On Thu, Jul 12, 2018 at 11:26:53AM -0300, Flavio Leitner wrote:
> On Thu, Jul 12, 2018 at 09:41:24AM -0400, Sandeep Adapala wrote:
> > Hello Ian,
> > 
> > Currently I am using Ubuntu 16.04 OS
> > OVS version is v2.6.1 and DPDK is v16.11.1
> 
> 
> You need to follow the instructions of the version you're using.
> The doc url below refers to the latest OVS which is different than
> the 2.6.1 you're using.

I wonder whether we should add a note to the DPDK installation
instructions that says that they vary between versions and that if
you're reading them outside the OVS build tree then you should check
that you're looking at the right version.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Sandeep Adapala
Thanks Guys, Let me try this.

On Thu, Jul 12, 2018 at 10:42 AM, Ian Stokes  wrote:

> On 7/12/2018 3:26 PM, Flavio Leitner wrote:
>
>> On Thu, Jul 12, 2018 at 09:41:24AM -0400, Sandeep Adapala wrote:
>>
>>> Hello Ian,
>>>
>>> Currently I am using Ubuntu 16.04 OS
>>> OVS version is v2.6.1 and DPDK is v16.11.1
>>>
>>
> I'd echo what Flavio has said below, also OVS 2.6.1 uses DPDK 16.07.1, I'm
> not sure if it will work as is with DPDK 16.11. The OVS to DPDK version
> mappings are available in the OVS release FAQ.
>
> http://docs.openvswitch.org/en/latest/faq/releases/
>
> Ian
>
>
>>
>> You need to follow the instructions of the version you're using.
>> The doc url below refers to the latest OVS which is different than
>> the 2.6.1 you're using.
>>
>> https://github.com/openvswitch/ovs/blob/branch-2.6/INSTALL.DPDK.md
>>
>>
>> On Wed, Jul 11, 2018 at 1:40 PM, Ian Stokes  wrote:
>>>
>>> On 7/10/2018 10:30 PM, Sandeep Adapala wrote:

 Hello,
>
> I am very new to OvS and DPDK but somehow after following the document
> http://docs.openvswitch.org/en/latest/intro/install/dpdk/ I went
> through
> till ovs service start step but the problem I get is when I run
> ovs-vsctl
> get Open_vSwitch . dpdk_initialized I don't get TRUE. I exactly did the
> same thing as mentioned in the doc but not sure why it is not running.
>

>>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Ian Stokes

On 7/12/2018 3:26 PM, Flavio Leitner wrote:

On Thu, Jul 12, 2018 at 09:41:24AM -0400, Sandeep Adapala wrote:

Hello Ian,

Currently I am using Ubuntu 16.04 OS
OVS version is v2.6.1 and DPDK is v16.11.1


I'd echo what Flavio has said below, also OVS 2.6.1 uses DPDK 16.07.1, 
I'm not sure if it will work as is with DPDK 16.11. The OVS to DPDK 
version mappings are available in the OVS release FAQ.


http://docs.openvswitch.org/en/latest/faq/releases/

Ian



You need to follow the instructions of the version you're using.
The doc url below refers to the latest OVS which is different than
the 2.6.1 you're using.

https://github.com/openvswitch/ovs/blob/branch-2.6/INSTALL.DPDK.md



On Wed, Jul 11, 2018 at 1:40 PM, Ian Stokes  wrote:


On 7/10/2018 10:30 PM, Sandeep Adapala wrote:


Hello,

I am very new to OvS and DPDK but somehow after following the document
http://docs.openvswitch.org/en/latest/intro/install/dpdk/ I went through
till ovs service start step but the problem I get is when I run ovs-vsctl
get Open_vSwitch . dpdk_initialized I don't get TRUE. I exactly did the
same thing as mentioned in the doc but not sure why it is not running.




___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Flavio Leitner
On Thu, Jul 12, 2018 at 09:41:24AM -0400, Sandeep Adapala wrote:
> Hello Ian,
> 
> Currently I am using Ubuntu 16.04 OS
> OVS version is v2.6.1 and DPDK is v16.11.1


You need to follow the instructions of the version you're using.
The doc url below refers to the latest OVS which is different than
the 2.6.1 you're using.

https://github.com/openvswitch/ovs/blob/branch-2.6/INSTALL.DPDK.md


> On Wed, Jul 11, 2018 at 1:40 PM, Ian Stokes  wrote:
> 
> > On 7/10/2018 10:30 PM, Sandeep Adapala wrote:
> >
> >> Hello,
> >>
> >> I am very new to OvS and DPDK but somehow after following the document
> >> http://docs.openvswitch.org/en/latest/intro/install/dpdk/ I went through
> >> till ovs service start step but the problem I get is when I run ovs-vsctl
> >> get Open_vSwitch . dpdk_initialized I don't get TRUE. I exactly did the
> >> same thing as mentioned in the doc but not sure why it is not running.

-- 
Flavio

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] OVN - MTU path discovery

2018-07-12 Thread Miguel Angel Ajo Pelayo
I believe we need to emit ICMP / need to frag messages to have proper
support
on different MTUs (on router sides), I wonder how does it work the other way
around (when external net is 1500, and internal net is 1500-geneve
overhead).

Is there any way to match packet_size > X on a flow?

How could we implement this?



On Wed, Jul 11, 2018 at 1:01 PM Daniel Alvarez Sanchez 
wrote:

> On Wed, Jul 11, 2018 at 12:55 PM Daniel Alvarez Sanchez <
> dalva...@redhat.com> wrote:
>
>> Hi all,
>>
>> Miguel Angel Ajo and I have been trying to setup Jumbo frames in
>> OpenStack using OVN as a backend.
>>
>> The external network has an MTU of 1900 while we have created two tenant
>> networks (Logical Switches) with an MTU of 8942.
>>
>
> s/1900/1500
>
>>
>> When pinging from one instance in one of the networks to the other
>> instance on the other network, the routing takes place locally and
>> everything is fine. We can ping with -s 3000 and with tcpdump we verify
>> that the packets are not fragmented at all.
>>
>> However, when trying to reach the external network, we see that the
>> packets are not tried to be fragmented and the traffic doesn't go through.
>>
>> In the ML2/OVS case (reference implementation for OpenStack networking),
>> this works as we're seeing the following when attempting to reach a network
>> with a lower MTU:
>>
>
> Just to clarify, in the reference implementation (ML2/OVS) the routing
> takes place with iptables rules so we assume that it's the kernel
> processing those ICMP packets.
>
>>
>> 10:38:03.807695 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: ICMP echo
>> request, id 30977, seq 0, length 3008
>>
>> 10:38:03.807723 IP overcloud-controller-0 > 192.168.20.14: ICMP
>> dell-virt-lab-01.mgmt.com unreachable - need to frag (mtu 1500), length
>> 556
>>
>> As you can see, the router (overcloud-controller-0) is responding to the
>> instance with an ICMP need to frag and after this, subsequent packets are
>> going fragmented (while replies are not):
>>
>> 0:38:34.630437 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: ICMP echo
>> request, id 31233, seq 0, length 1480
>>
>> 10:38:34.630458 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: icmp
>>
>> 10:38:34.630462 IP 192.168.20.14 > dell-virt-lab-01.mgmt.com: icmp
>>
>> 10:38:34.631334 IP dell-virt-lab-01.mgmt.com > 192.168.20.14: ICMP echo
>> reply, id 31233, seq 0, length 3008
>>
>>
>>
>> Are we missing some configuration or we lack support for this in OVN?
>>
>> Any pointers are highly appreciated :)
>>
>>
>> Thanks a lot.
>>
>> Daniel Alvarez
>>
>>
>
> ___
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] dpdk installation failed with OVS

2018-07-12 Thread Sandeep Adapala
Hello Ian,

Currently I am using Ubuntu 16.04 OS
OVS version is v2.6.1 and DPDK is v16.11.1

I am compiling from the Source.

Regards,
Sandeep

On Wed, Jul 11, 2018 at 1:40 PM, Ian Stokes  wrote:

> On 7/10/2018 10:30 PM, Sandeep Adapala wrote:
>
>> Hello,
>>
>> I am very new to OvS and DPDK but somehow after following the document
>> http://docs.openvswitch.org/en/latest/intro/install/dpdk/ I went through
>> till ovs service start step but the problem I get is when I run ovs-vsctl
>> get Open_vSwitch . dpdk_initialized I don't get TRUE. I exactly did the
>> same thing as mentioned in the doc but not sure why it is not running.
>>
>>
> Hi Sandeep,
>
> can you provide more details as regards the installation?
>
> What OS are you using?
> What version of OVS and DPDK are you using?
>
> Are you compiling from source or using repos?
>
> Thanks
> Ian
>
>
>> Regards,
>> Sandeep
>>
>>
>>
>> ___
>> discuss mailing list
>> disc...@openvswitch.org
>> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>>
>>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Regarding ovs metering behaviour

2018-07-12 Thread Justin Pettit


> On Jul 11, 2018, at 11:06 PM, NITIN ANAND  wrote:
> 
> I am using metering feature in ovs-dpdk.
> I added meter using below command.
> "ovs-ofctl -Oopenflow13 add-meter br-int meter=1,kbps,band=type=drop,rate=100"
> And i added flows as below -
> "ovs-ofctl -OOpenFlow13 add-flow br-int 
> priority=1,table=0,in_port=vhue24dfb5e-d1,dl_type=0x0800,actions=meter:1,goto_table:1"
> "ovs-ofctl -OOpenFlow13 add-flow br-int 
> priority=1,table=1,in_port=vhue24dfb5e-d1,dl_type=0x0800,actions=output=vhuff4faf96-f8"
>  
> My intention to have above 2 flow is -
> 1)do metering in table 0 after flow criteria match
> 2)Then do extra processing as needed in table 1 (not depicted in above flow 
> add command).
>  
> But the behaviour i observed in testing with traffic is .. All packets are 
> being hit in table 1 and table 0. Though final rate at which the packets are 
> comign out of port "vhuff4faf96-f8"  is 100Kbps correctly.
> So from the stats it looks like, all packets hit table 1 and then metering 
> was applied.
> My expection was to get only upto 100kbps traffic in table 1, not the entire 
> input traffic. i.e metering has to be applied instantly. 
>  
> Please clarify whether its bug in ovs-dpdk or its expected behaviour 
> currenlty ?

This is expected behavior due to OVS's architecture.  OVS will take the first 
packet from a flow and run it through the flow table to generate a megaflow 
entry, which will then be placed in a cache that sits in front of the full 
table.  Future packets that look similar to the packet will hit the megaflow 
entry instead of going through the full table.  (This speeds up the performance 
significantly over sending every packet through the entire flow table.)  This 
design means that something like metering will be applied after the packet has 
run through the entire flow table.

--Justin


___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Regarding ovs metering behaviour

2018-07-12 Thread NITIN ANAND


 
Hi,
 
I am using metering feature in ovs-dpdk.
I added meter using below command.
"ovs-ofctl -Oopenflow13 add-meter br-int meter=1,kbps,band=type=drop,rate=100"
And i added flows as below -
"ovs-ofctl -OOpenFlow13 add-flow br-int priority=1,table=0,in_port=vhue24dfb5e-d1,dl_type=0x0800,actions=meter:1,goto_table:1"
"ovs-ofctl -OOpenFlow13 add-flow br-int priority=1,table=1,in_port=vhue24dfb5e-d1,dl_type=0x0800,actions=output=vhuff4faf96-f8"
 
My intention to have above 2 flow is -
1)do metering in table 0 after flow criteria match
2)Then do extra processing as needed in table 1 (not depicted in above flow add command).
 
But the behaviour i observed in testing with traffic is .. All packets are being hit in table 1 and table 0. Though final rate at which the packets are comign out of port "vhuff4faf96-f8"  is 100Kbps correctly.
So from the stats it looks like, all packets hit table 1 and then metering was applied.
My expection was to get only upto 100kbps traffic in table 1, not the entire input traffic. i.e metering has to be applied instantly. 
 
Please clarify whether its bug in ovs-dpdk or its expected behaviour currenlty ?
 
Thanks n Regards,
Nitin Anand

 
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss