[ovs-discuss] A tool to feel-up flow-tables in ofproto

2017-07-11 Thread Sara Gittlin
Hello,
I need a tool to feel up the flow tables in ofproto.
do you know what tool/other should i use ?
Thank you in advance - Sara
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Issue with offloading OVS flows into Mellanox-4 cards

2017-07-11 Thread Sugu Deepthy
Hi Roi

On Tue, Jul 11, 2017 at 12:20 AM, Sugu Deepthy 
wrote:

> Thank you Roi for your help!
>
> On Mon, Jul 10, 2017 at 4:57 AM, Roi Dayan  wrote:
>
>>
>>
>> On 07/07/2017 17:36, Sugu Chandran wrote:
>>
>>> Hi,
>>>
>>> I am trying to test hardware offloading feature in OVS using a 2*25G
>>> mellanox NIC.   My test setup has static OVS L2 rules to forward packets
>>> between these two ports. The traffic generators are connected to these
>>> ports to pump in traffic.
>>> The hardware offloading is enabled in the system by using,
>>> ovs-vsctl --no-wait set Open_vSwitch . other_config:hw-offload=true
>>> I didnt set any hw-policy explicit,  as I kept it default as 'None'
>>>
>>> I noticed that when I am sending traffic to these ports, there are no
>>> rules that are getting programmed into the hardware. Also there are no
>>> error reported in ovs-vswitchd.log as such.
>>> Of Course the packets are getting forwarded in software.  Is there
>>> anything else needs to be done to make the TC for programming the
>>> mellanox NICs?
>>>
>>> Regards
>>> _Sugu
>>>
>>>
>>>
>> Hi Sugo,
>>
>> Since you do not have errors in the log did you check if the rules
>> were added to tc software?
>> you can dump like this:
>> # tc -s filter show dev ens5f0 ingress
>>
> I dont see any rules that are configured with above tc dump.
>
>
>>
>> You need to enable the offload feature on the HCA with ethtool.
>> example:
>> # ethtool -K ens5f0 hw-tc-offload on
>>
> This is enabled .
>
> I am trying to forward traffic between two PFs on the same NIC?
> Does it supported in the offload implementation?
> When creating the switchdev on PFs with 2 VFs, there is no VF netdevs are
> populated in my system. They are still showing as the vfs under the PF.
> Ofcourse there are no errors too.
>
> Also the system reports the mode 'inline-mode transport'is unsupported.
> I am using ubunutu 17.04 with 4.10 kernel.
> Is there anything I am missing here?
> Any help is really appreciated!.
>
[Sugu] Some more details on this. I was really getting error when trying to
enable hw-offload on mlnx-4 NICs.
Didnt notice in the logs before.

This the error info that I got from mellanox git.

BAD_SYS_STATE | 0x368B01 | query_vport_counter: vport is not enabled
(INIT_HCA is required)

I verfied that the ports named eth1, eth2, eth3 and et4 are created for my
vfs, when
I ran the commands 'devlink dev eswitch set pci/:07:00.0 mode
switchdev' and
'devlink dev eswitch set pci/:07:00.1 mode switchdev'

The detailed error in dmesg are given below,
[ 1245.941287] mlx5_core :07:00.0: mlx5_cmd_check:697:(pid 3107):
QUERY_VPORT_COUNTER(0x770) op_mod(0x0) failed, status bad system
state(0x4), syndrome (0x368b01)
[ 1245.941478] mlx5_core :07:00.1: mlx5_cmd_check:697:(pid 3107):
QUERY_VPORT_COUNTER(0x770) op_mod(0x0) failed, status bad system
state(0x4), syndrome (0x368b01)

Please note I couldn't run the "inline-mode transport" command as its not
supported.



>> We still need to work on docs for this feature but for now I
>> documented it a little here:
>> https://github.com/roidayan/ovs/wiki
>
> As suggested in the wiki,
>
>>
>>
>> Thanks,
>> Roi
>>
>>
>>
>>>
>>> ___
>>> discuss mailing list
>>> disc...@openvswitch.org
>>> https://emea01.safelinks.protection.outlook.com/?url=https%3
>>> A%2F%2Fmail.openvswitch.org%2Fmailman%2Flistinfo%2Fovs-discu
>>> ss&data=02%7C01%7Croid%40mellanox.com%7Cb226a368b9814cdc87ce
>>> 08d4c5530730%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%
>>> 7C636350407766292115&sdata=9mMWoehygP7%2BmftGsOuyynyaHnYx
>>> %2FKQzka7gedr1%2FUE%3D&reserved=0
>>>
>>>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] A tool to feel-up flow-tables in ofproto

2017-07-11 Thread Ben Pfaff
On Tue, Jul 11, 2017 at 10:58:39AM +0300, Sara Gittlin wrote:
> I need a tool to feel up the flow tables in ofproto.
> do you know what tool/other should i use ?

What does it mean "to feel up" a flow table?
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Information on Bugs in OVS v2.3.x

2017-07-11 Thread Anand Nande
Hello list,

I need information/list of all the bugs that were present in v2.3.x.

status of the bugs can be anything (CLOSED,WONTFIX,OPEN ..etc.)

Is there a way I can pull this info down from any source?

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


Re: [ovs-discuss] Information on Bugs in OVS v2.3.x

2017-07-11 Thread Justin Pettit

> On Jul 11, 2017, at 8:55 AM, Anand Nande  wrote:
> 
> Hello list,
> 
> I need information/list of all the bugs that were present in v2.3.x. 
> 
> status of the bugs can be anything (CLOSED,WONTFIX,OPEN ..etc.)
> 
> Is there a way I can pull this info down from any source? 

We don't have a central bug tracker.  You could look at the OVS github branch 
"branch-2.3" to see what's been fixed, but there's not an easy way to determine 
all issues that have been raised through various mailing lists.

--Justin


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


[ovs-discuss] Reacting on change of BFD session state

2017-07-11 Thread Михаил Аграновский
Hello list,

There are 2 question to you:

1. OvS supports BFD. Does OvS react somehow on change of BFD session state?
Does BFD connection fault means something for OpenFlow-driven part of OvS?

2. In general, I consider OvS as switch side for SD-WAN solution. Thus, the
goal is to switch over links according to BFD session state. Are there some
practices of interacting with OvS this way using OpenFlow?
-- 

С уважением, Михаил Аграновский |
Sincerely, Mikhail Agranovskiy
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Reacting on change of BFD session state

2017-07-11 Thread Blue Lang
Looks like quite a few people have written BFD apps into various
controllers..

https://www.google.com/search?q=openflow+bfd+app&rlz=1C5CHFA_enUS736US737&oq=openflow+bfd+app&aqs=chrome..69i57.3977j0j9&sourceid=chrome&ie=UTF-8



On Tue, Jul 11, 2017 at 3:05 PM, Михаил Аграновский 
wrote:

> Hello list,
>
> There are 2 question to you:
>
> 1. OvS supports BFD. Does OvS react somehow on change of BFD session
> state? Does BFD connection fault means something for OpenFlow-driven part
> of OvS?
>
> 2. In general, I consider OvS as switch side for SD-WAN solution. Thus,
> the goal is to switch over links according to BFD session state. Are there
> some practices of interacting with OvS this way using OpenFlow?
> --
>
> С уважением, Михаил Аграновский |
> Sincerely, Mikhail Agranovskiy
>
> ___
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
>
>


-- 
Blue Lang
PM *| *Veracity

3423 Piedmont Rd NE

Suite 350

Atlanta, GA  30305
Cell:  (770) 265-1381 <+17702651381>
https://www.linkedin.com/in/bluelang/
b...@veracity.io
www.veracity.io
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Issue with offloading OVS flows into Mellanox-4 cards

2017-07-11 Thread Roi Dayan



On 11/07/2017 14:28, Sugu Deepthy wrote:

Hi Roi

On Tue, Jul 11, 2017 at 12:20 AM, Sugu Deepthy mailto:deepthysug...@gmail.com>> wrote:

Thank you Roi for your help!

On Mon, Jul 10, 2017 at 4:57 AM, Roi Dayan mailto:r...@mellanox.com>> wrote:



On 07/07/2017 17:36, Sugu Chandran wrote:

Hi,

I am trying to test hardware offloading feature in OVS using
a 2*25G
mellanox NIC.   My test setup has static OVS L2 rules to
forward packets
between these two ports. The traffic generators are
connected to these
ports to pump in traffic.
The hardware offloading is enabled in the system by using,
ovs-vsctl --no-wait set Open_vSwitch .
other_config:hw-offload=true
I didnt set any hw-policy explicit,  as I kept it default as
'None'

I noticed that when I am sending traffic to these ports,
there are no
rules that are getting programmed into the hardware. Also
there are no
error reported in ovs-vswitchd.log as such.
Of Course the packets are getting forwarded in software.  Is
there
anything else needs to be done to make the TC for
programming the
mellanox NICs?

Regards
_Sugu



Hi Sugo,

Since you do not have errors in the log did you check if the rules
were added to tc software?
you can dump like this:
# tc -s filter show dev ens5f0 ingress

I dont see any rules that are configured with above tc dump.



then nothing went to the HCA because even if the HW doesn't
support it the rule should be in tc software.




You need to enable the offload feature on the HCA with ethtool.
example:
# ethtool -K ens5f0 hw-tc-offload on

This is enabled .

I am trying to forward traffic between two PFs on the same NIC?
Does it supported in the offload implementation?


offload between PF ports is currently not supported.
only PF and its VFs.



When creating the switchdev on PFs with 2 VFs, there is no VF
netdevs are populated in my system. They are still showing as the
vfs under the PF.
Ofcourse there are no errors too.

Also the system reports the mode 'inline-mode transport'is unsupported.
I am using ubunutu 17.04 with 4.10 kernel.
Is there anything I am missing here?
Any help is really appreciated!.

[Sugu] Some more details on this. I was really getting error when trying
to enable hw-offload on mlnx-4 NICs.
Didnt notice in the logs before.

This the error info that I got from mellanox git.

BAD_SYS_STATE | 0x368B01 | query_vport_counter: vport is not enabled
(INIT_HCA is required)


executing which command raised this error?



I verfied that the ports named eth1, eth2, eth3 and et4 are created for
my vfs, when
I ran the commands 'devlink dev eswitch set pci/:07:00.0 mode
switchdev' and
'devlink dev eswitch set pci/:07:00.1 mode switchdev'

The detailed error in dmesg are given below,
[ 1245.941287] mlx5_core :07:00.0: mlx5_cmd_check:697:(pid 3107):
QUERY_VPORT_COUNTER(0x770) op_mod(0x0) failed, status bad system
state(0x4), syndrome (0x368b01)
[ 1245.941478] mlx5_core :07:00.1: mlx5_cmd_check:697:(pid 3107):
QUERY_VPORT_COUNTER(0x770) op_mod(0x0) failed, status bad system
state(0x4), syndrome (0x368b01)

Please note I couldn't run the "inline-mode transport" command as its
not supported.



maybe you need newer iproute package. try to install latest upstream.




We still need to work on docs for this feature but for now I
documented it a little here:
https://github.com/roidayan/ovs/wiki



As suggested in the wiki,



Thanks,
Roi




___
discuss mailing list
disc...@openvswitch.org 

https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.openvswitch.org%2Fmailman%2Flistinfo%2Fovs-discuss&data=02%7C01%7Croid%40mellanox.com%7Cb226a368b9814cdc87ce08d4c5530730%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636350407766292115&sdata=9mMWoehygP7%2BmftGsOuyynyaHnYx%2FKQzka7gedr1%2FUE%3D&reserved=0