Re: [ovs-discuss] [Ryu-devel] Meter Table Support in Openvswitch

2018-02-19 Thread Yi Tseng
[c.c. to ovs mailing list]

2018-02-18 23:10 GMT-08:00 knet solutions :

> Hi,
>
> Does OpenVSwitch(latest release 2.8.1 + )  support Meter table?
> In the release notes, its mentioned  2.7.0 onward its supported.  Is it
> correct?
>
> Thanks
> Suresh
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Ryu-devel mailing list
> ryu-de...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>


-- 
Yi Tseng (a.k.a Takeshi)
Taiwan National Chiao Tung University
Department of Computer Science
W2CNLab

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


[ovs-discuss] OVS doesn't apply action in packet_out message

2018-02-19 Thread S hj
I have some OVSs connected to ONOS controller.
OVS1---OVS2OVS3

when OVS1 wants to send packets to OVS3, OVS2 sends packet_in messages to
the controller including ARP message and ONOS sends packet_out messages
contain OFPP_FLOOD as an action.

However, OVS2 doesn't flood the flow toward the OVS3.
Is there any way to find out why OVS2 by receiving the packet_out,
doesn't apply the action on the flow?


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


Re: [ovs-discuss] OVS 2.9 [kernel 4.13]

2018-02-19 Thread Justin Pettit

> On Feb 19, 2018, at 7:18 AM, Avi Cohen (A)  wrote:
> 
> My kernel is 4.13 and according 
> http://docs.openvswitch.org/en/latest/faq/releases/ the only ovs compatible 
> is 2.9. but I cannot find it ..

It should be released today or tomorrow.

--Justin



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


Re: [ovs-discuss] ovs-vswitchd 100% CPU in OVN scale test

2018-02-19 Thread aginwala
Hi All:

As per the discussions/requests by Mark and Numan, I finally reverted the
mtu patch (commit-id 8c319e8b73032e06c7dd1832b3b31f8a1189dcd1) on
branch-2.9 and re-ran the test with 10k lports to bind on farms, with 8 LRs
and 40 LS ;and results improvised.  Since ovs did not go super hot, it did
result in completion for 10k ports binding to HVs in 5 hrs 28 minutes vs 8
hours with mtu patch.  Thus, the extra strcmp did add the overhead. Cpu
idle graph of farm with 50 Hvs running 2.9 with/without mtu is available @
https://raw.githubusercontent.com/noah8713/ovn-scale-test/4cef99dbe9a0677a1b2d852b7f4f429ede340875/results/overlay/farm_cpu_2.9.png
which indicates ;running non-mtu patch had more idle cpu percentage vs with
mtu patch. In addition, I have also captured ovs-vswitchd process cpu util
on farm since ovs itself was creating a bottleneck by slowing down the port
binding on the computes.Graph is available @
https://raw.githubusercontent.com/noah8713/ovn-scale-test/scale_results/results/overlay/ovs-vswitchd_2.9_util.png
Hence, overall performance improved which resulted in faster completion of
all 10k port bindings.


On Thu, Feb 15, 2018 at 12:20 PM, Mark Michelson 
wrote:

>
>
> On 02/08/2018 07:55 PM, Han Zhou wrote:
>
>>
>>
>> On Wed, Feb 7, 2018 at 12:47 PM, Han Zhou  zhou...@gmail.com>> wrote:
>>  >
>>  > When doing scale testing for OVN (using https://github.com/openvswitch
>> /ovn-scale-test), we had some interesting findings, and need some help
>> here.
>>  >
>>  > We ran the test "create and bind lports" against branch 2.9 and branch
>> 2.6, and we found that 2.6 was must faster. With some analysis, we found
>> out the reason is not because of OVN gets slower in 2.9, but because the
>> bottleneck of this test in branch 2.9 is ovs-vswitchd.
>>  >
>>  > The testing was run in an environment with 20 farm nodes, each has 50
>> sandbox HVs (I will just mention them as HVs in short). Before the test,
>> there are already 9500 lports bound in 950 HVs on 19 farm nodes. The test
>> run against the last farm node to bind the lport on the 50 HVs there. The
>> steps in the test scenario are:
>>  >
>>  > 1. Create 5 new LSs in NB (so that the LSs will not be shared with any
>> of HVs on other farm nodes)
>>  > 2. create 100 lports in NB on a LS
>>  > 3. bind these lports on HVs, 2 for each HV. They are bound
>> sequentially on each HV, and for each HV the 2 ports are bound using one
>> command together: ovs-vsctl add-port  -- set Interface
>> external-ids:...  -- add-port  -- set Interface external-ids:...
>> (the script didn't set type to internal, but I hope it is not an issue for
>> this test).
>>  > 4. wait the port stated changed to up in NB for all the 100 lports
>> (with a single ovn-nbctl command)
>>  >
>>  > These steps are repeated for 5 times, one for each LS. So in the end
>> we got 500 more lports created and bound (the total scale is then 1k HVs
>> and 10k lports).
>>  >
>>  > When running with 2.6, the ovn-controllers were taking most of the CPU
>> time. However, with 2.9, the CPU of ovn-controllers spikes but there is
>> always ovs-vswitchd on the top with 100% CPU. It means the ovs-vswitchd is
>> the bottleneck in this testing. There is only one ovs-vswitchd with 100% at
>> the same time and different ovs-vswitchd will spike one after another,
>> since the ports are bound sequentially on each HV. From the rally log, each
>> 2 ports binding takes around 4 - 5 seconds. This is just the ovs-vsctl
>> command execution time. The 100% CPU of ovs-vswitchd explains the slowness.
>>  >
>>  > So, based on this result, we can not using the total time to evaluate
>> the efficiency of OVN, instead we can evaluate by CPU cost of
>> ovn-controller processes. In fact, 2.9 ovn-controller costs around 70% less
>> CPU than 2.6, which I think is due to some optimization we made earlier.
>> (With my work-in-progress patch it saves much more, and I will post later
>> as RFC).
>>  >
>>  > However, I cannot explain why ovs-vswitchd is getting slower than 2.6
>> when doing port-binding. We need expert suggestions here, for what could be
>> the possible reason of this slowness. We can do more testing with different
>> versions between 2.6 and 2.9 to find out related change, but with some
>> pointers it might save some effort. Below are some logs of ovs-vswitchd
>> when port binding is happening:
>>  >
>>  > ==
>>  > 2018-02-07T00:12:54.558Z|01767|bridge|INFO|bridge br-int: added
>> interface lport_bc65cd_QFOU3v on port 1028
>>  > 2018-02-07T00:12:55.629Z|01768|timeval|WARN|Unreasonably long 1112ms
>> poll interval (1016ms user, 4ms system)
>>  > 2018-02-07T00:12:55.629Z|01769|timeval|WARN|faults: 336 minor, 0 major
>>  > 2018-02-07T00:12:55.629Z|01770|timeval|WARN|context switches: 0
>> voluntary, 13 involuntary
>>  > 2018-02-07T00:12:55.629Z|01771|coverage|INFO|Event coverage, avg rate
>> over last: 5 seconds, last minute, last hour,  hash=b256889c:
>>  > 

[ovs-discuss] Is a new field in flow.h necessary for matching on a custom v6 extension header?

2018-02-19 Thread Alan Kayahan
Hello,

I have a custom v6 extension header, in which I would like to perform an
LPM match on only one 32bit field.

Since an extension header is technically not a new field, do I still need
to introduce anything in the struct flow?

In miniflow_extract(), what I did was to add a case
in parse_ipv6_ext_hdrs__ as (*nw_proto == IPPROTO_TRH) where IPPROTO_TRH is
my custom proto number, and parse the *datap to my struct trh_hdr, then
data_try_pull. Is this the appropriate approach?

If yes, what would the appropriate way be for accessing the 32bit field in
trh_hdr to perform the match?

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


[ovs-discuss] OvS build (w DPDK) failed - Undefined Mellanox references

2018-02-19 Thread Avi Cohen (A)
Hi,
I build dpdk-18.02 with MLX5_PMD - ok..
Then I failed to build ovs - 2.8.1]  with dpdk and get many undefined reference 
for mlx
I have mellanox OFED installed

Some of the errors here :


/home/avi/dpdk-18.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o):
 In function `mlx5_glue_dv_init_obj':
/home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:307: undefined reference to 
`mlx5dv_init_obj'
/home/avi/dpdk-18.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o):
 In function `mlx5_glue_dv_set_context_attr':
/home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:301: undefined reference to 
`mlx5dv_set_context_attr'
/home/avi/dpdk-18.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o):
 In function `mlx5_glue_dv_query_device':
/home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:294: undefined reference to 
`mlx5dv_query_device'
/home/avi/dpdk-18.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o):
 In function `mlx5_glue_dv_create_cq':
/home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:287: undefined reference to 
`mlx5dv_create_cq'
/home/avi/dpdk-18.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o):
 In function `mlx5_glue_port_state_str':
/home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:273: undefined reference to 
`ibv_port_state_str'
/home/avi/dpdk-18.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o):
 In function `mlx5_glue_get_async_event':
/home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:267: undefined reference to 
`ibv_get_async_event'
/home/avi/dpdk-18.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o):
 In function `mlx5_glue_ack_async_event':
/home/avi/dpdk-18.02/drivers/net/mlx5/mlx5_glue.c:260: undefined reference to 
`ibv_ack_async_event'
/home/avi/dpdk-18.02/x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx5.a(mlx5_glue.o):
 In function `mlx5_glue_dereg_mr':

Who can help ?
Best Regards
Avi
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port

2018-02-19 Thread Avi Cohen (A)
Olga
i'm familiar with the procedure. I can build dpdk 17.11 but has this 
compilation error in 17.08
Here https://community.mellanox.com/thread/3545  the answer to the same error  
is to install another OFED - when I install this OFED, it breaks the build of 
17.11 and 17.08
Best Regards
Avi


> -Original Message-
> From: Olga Shern [mailto:ol...@mellanox.com]
> Sent: Monday, 19 February, 2018 5:08 PM
> To: Avi Cohen (A); ovs-discuss@openvswitch.org
> Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> 
> Please refer to mlx5 DPDK guide: http://dpdk.org/doc/guides-
> 17.11/nics/mlx5.html
> 
> -Original Message-
> From: Avi Cohen (A) [mailto:avi.co...@huawei.com]
> Sent: Monday, February 19, 2018 3:51 PM
> To: Olga Shern ; ovs-discuss@openvswitch.org
> Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> 
> Olga
> Now I have compilation error
> /home/avi/dpdk-17.08/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error:
> infiniband/mlx5_hw.h: No such file or directory
> 
> > -Original Message-
> > From: Avi Cohen (A)
> > Sent: Monday, 19 February, 2018 3:41 PM
> > To: 'Olga Shern'; ovs-discuss@openvswitch.org
> > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> >
> > Ohh. - I've downgrade to 17.08 (from 17.11) and  forgot to set this flag .
> > checking now...
> >
> > > -Original Message-
> > > From: Olga Shern [mailto:ol...@mellanox.com]
> > > Sent: Monday, 19 February, 2018 3:26 PM
> > > To: Avi Cohen (A); ovs-discuss@openvswitch.org
> > > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> > >
> > > Did you compile DPDK with mlx5 PMD enabled?
> > >
> > > -Original Message-
> > > From: Avi Cohen (A) [mailto:avi.co...@huawei.com]
> > > Sent: Monday, February 19, 2018 3:20 PM
> > > To: Olga Shern ; ovs-discuss@openvswitch.org
> > > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> > >
> > > Thank you Olga
> > > I did specify the port name as ibv_devinfo output - but still I'm
> > > getting error
> > > msg:
> > >
> > >
> > > Feb 19 15:16:03 Pizza05 ovs-vsctl: ovs|1|vsctl|INFO|Called as
> > > ovs-vsctl -- timeout 10 add-port br-phy dpdk0 -- set Interface dpdk0
> > > type=dpdk
> > > options:dpdk-devargs=mlx5_0 Feb 19 15:16:03 Pizza05 ovs-vswitchd[29371]:
> > > ovs|00044|dpdk|ERR|EAL: Unable to find a bus for the device 'mlx5_0'
> > > Feb 19 15:16:03 Pizza05 ovs-vswitchd[29371]:
> > > ovs|00045|netdev_dpdk|WARN|Error attaching device 'mlx5_0' to DPDK
> > > ovs|00045|Feb
> > > 19 15:16:03 Pizza05 ovs-vswitchd[29371]: ovs|00046|netdev|WARN|dpdk0:
> > > could not set configuration (Invalid argument
> > >
> > > Best Regards
> > > Avi
> > >
> > > > -Original Message-
> > > > From: Olga Shern [mailto:ol...@mellanox.com]
> > > > Sent: Monday, 19 February, 2018 2:58 PM
> > > > To: Avi Cohen (A); ovs-discuss@openvswitch.org
> > > > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> > > >
> > > > Hi Avi,
> > > >
> > > > Please try the following commandovs-vsctl --timeout 10 add-port br-
> phy
> > > > dpdk0   -- set Interface dpdk0 type=dpdk options:dpdk-devargs=mlx5_0
> > > >
> > > > You need to specify port name, mlx5_0 or mlx5_1 according
> > > > ibv_devinfo output
> > > >
> > > > Starting DPDK 18.02 and 17.11.2 you will be able to use PCI
> > > > address as OVS devargs parameters.
> > > >
> > > > Best Regards,
> > > > Olga
> > > >
> > > > -Original Message-
> > > > From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss-
> > > > boun...@openvswitch.org] On Behalf Of Avi Cohen (A)
> > > > Sent: Monday, February 19, 2018 2:33 PM
> > > > To: ovs-discuss@openvswitch.org
> > > > Subject: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port
> > > >
> > > > Hi
> > > > I cannot add mellanox dpdk port - and  I don't find any reference
> > > > for this for new ovs versions I get  an error message when typing
> > > > this
> > command
> > > > ovs-vsctl --timeout 10 add-port br-phy dpdk0   -- set Interface dpdk0
> > > type=dpdk
> > > > options:dpdk-devargs=:04:00:0
> > > > I'm running:
> > > > Openvswitch 2.8.1 ; dpdk-17.08 ' mellanox - connectx-4
> > > >
> > > > Best Regards
> > > > Avi
> > > > ___
> > > > discuss mailing list
> > > > disc...@openvswitch.org
> > > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2
> > > > Fm
> > > > ai
> > > > l.op
> > > > envswitch.org%2Fmailman%2Flistinfo%2Fovs-
> > > >
> > >
> >
> discuss=02%7C01%7Colgas%40mellanox.com%7Cf91254be9a904a48d525
> > > >
> > >
> >
> 08d57794fdf6%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636546
> > > >
> > >
> >
> 404170173730=eYSbGlSDbizK%2Fdz8CKpfiRQDj4mqnrKugSuYk5Fi2M4%3
> > > > D=0
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] OVS 2.9 [kernel 4.13]

2018-02-19 Thread Avi Cohen (A)
Hi
My kernel is 4.13 and according 
http://docs.openvswitch.org/en/latest/faq/releases/ the only ovs compatible is 
2.9. but I cannot find it ..

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


Re: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port

2018-02-19 Thread Olga Shern
Please refer to mlx5 DPDK guide: 
http://dpdk.org/doc/guides-17.11/nics/mlx5.html 

-Original Message-
From: Avi Cohen (A) [mailto:avi.co...@huawei.com] 
Sent: Monday, February 19, 2018 3:51 PM
To: Olga Shern ; ovs-discuss@openvswitch.org
Subject: RE: ovs-dpdk cannot add a dpdk mellanox port

Olga
Now I have compilation error
/home/avi/dpdk-17.08/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: 
infiniband/mlx5_hw.h: No such file or directory

> -Original Message-
> From: Avi Cohen (A)
> Sent: Monday, 19 February, 2018 3:41 PM
> To: 'Olga Shern'; ovs-discuss@openvswitch.org
> Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> 
> Ohh. - I've downgrade to 17.08 (from 17.11) and  forgot to set this flag .
> checking now...
> 
> > -Original Message-
> > From: Olga Shern [mailto:ol...@mellanox.com]
> > Sent: Monday, 19 February, 2018 3:26 PM
> > To: Avi Cohen (A); ovs-discuss@openvswitch.org
> > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> >
> > Did you compile DPDK with mlx5 PMD enabled?
> >
> > -Original Message-
> > From: Avi Cohen (A) [mailto:avi.co...@huawei.com]
> > Sent: Monday, February 19, 2018 3:20 PM
> > To: Olga Shern ; ovs-discuss@openvswitch.org
> > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> >
> > Thank you Olga
> > I did specify the port name as ibv_devinfo output - but still I'm 
> > getting error
> > msg:
> >
> >
> > Feb 19 15:16:03 Pizza05 ovs-vsctl: ovs|1|vsctl|INFO|Called as 
> > ovs-vsctl -- timeout 10 add-port br-phy dpdk0 -- set Interface dpdk0 
> > type=dpdk
> > options:dpdk-devargs=mlx5_0 Feb 19 15:16:03 Pizza05 ovs-vswitchd[29371]:
> > ovs|00044|dpdk|ERR|EAL: Unable to find a bus for the device 'mlx5_0'
> > Feb 19 15:16:03 Pizza05 ovs-vswitchd[29371]:
> > ovs|00045|netdev_dpdk|WARN|Error attaching device 'mlx5_0' to DPDK 
> > ovs|00045|Feb
> > 19 15:16:03 Pizza05 ovs-vswitchd[29371]: ovs|00046|netdev|WARN|dpdk0:
> > could not set configuration (Invalid argument
> >
> > Best Regards
> > Avi
> >
> > > -Original Message-
> > > From: Olga Shern [mailto:ol...@mellanox.com]
> > > Sent: Monday, 19 February, 2018 2:58 PM
> > > To: Avi Cohen (A); ovs-discuss@openvswitch.org
> > > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> > >
> > > Hi Avi,
> > >
> > > Please try the following commandovs-vsctl --timeout 10 add-port br-phy
> > > dpdk0   -- set Interface dpdk0 type=dpdk options:dpdk-devargs=mlx5_0
> > >
> > > You need to specify port name, mlx5_0 or mlx5_1 according 
> > > ibv_devinfo output
> > >
> > > Starting DPDK 18.02 and 17.11.2 you will be able to use PCI 
> > > address as OVS devargs parameters.
> > >
> > > Best Regards,
> > > Olga
> > >
> > > -Original Message-
> > > From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss- 
> > > boun...@openvswitch.org] On Behalf Of Avi Cohen (A)
> > > Sent: Monday, February 19, 2018 2:33 PM
> > > To: ovs-discuss@openvswitch.org
> > > Subject: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port
> > >
> > > Hi
> > > I cannot add mellanox dpdk port - and  I don't find any reference 
> > > for this for new ovs versions I get  an error message when typing 
> > > this
> command
> > > ovs-vsctl --timeout 10 add-port br-phy dpdk0   -- set Interface dpdk0
> > type=dpdk
> > > options:dpdk-devargs=:04:00:0
> > > I'm running:
> > > Openvswitch 2.8.1 ; dpdk-17.08 ' mellanox - connectx-4
> > >
> > > Best Regards
> > > Avi
> > > ___
> > > discuss mailing list
> > > disc...@openvswitch.org
> > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2
> > > Fm
> > > ai
> > > l.op
> > > envswitch.org%2Fmailman%2Flistinfo%2Fovs-
> > >
> >
> discuss=02%7C01%7Colgas%40mellanox.com%7Cf91254be9a904a48d525
> > >
> >
> 08d57794fdf6%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636546
> > >
> >
> 404170173730=eYSbGlSDbizK%2Fdz8CKpfiRQDj4mqnrKugSuYk5Fi2M4%3
> > > D=0
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port

2018-02-19 Thread Avi Cohen (A)
Olga
Now I have compilation error
/home/avi/dpdk-17.08/drivers/net/mlx5/mlx5_rxtx.h:46:32: fatal error: 
infiniband/mlx5_hw.h: No such file or directory

> -Original Message-
> From: Avi Cohen (A)
> Sent: Monday, 19 February, 2018 3:41 PM
> To: 'Olga Shern'; ovs-discuss@openvswitch.org
> Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> 
> Ohh. - I've downgrade to 17.08 (from 17.11) and  forgot to set this flag .
> checking now...
> 
> > -Original Message-
> > From: Olga Shern [mailto:ol...@mellanox.com]
> > Sent: Monday, 19 February, 2018 3:26 PM
> > To: Avi Cohen (A); ovs-discuss@openvswitch.org
> > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> >
> > Did you compile DPDK with mlx5 PMD enabled?
> >
> > -Original Message-
> > From: Avi Cohen (A) [mailto:avi.co...@huawei.com]
> > Sent: Monday, February 19, 2018 3:20 PM
> > To: Olga Shern ; ovs-discuss@openvswitch.org
> > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> >
> > Thank you Olga
> > I did specify the port name as ibv_devinfo output - but still I'm
> > getting error
> > msg:
> >
> >
> > Feb 19 15:16:03 Pizza05 ovs-vsctl: ovs|1|vsctl|INFO|Called as
> > ovs-vsctl -- timeout 10 add-port br-phy dpdk0 -- set Interface dpdk0
> > type=dpdk
> > options:dpdk-devargs=mlx5_0 Feb 19 15:16:03 Pizza05 ovs-vswitchd[29371]:
> > ovs|00044|dpdk|ERR|EAL: Unable to find a bus for the device 'mlx5_0'
> > Feb 19 15:16:03 Pizza05 ovs-vswitchd[29371]:
> > ovs|00045|netdev_dpdk|WARN|Error attaching device 'mlx5_0' to DPDK Feb
> > 19 15:16:03 Pizza05 ovs-vswitchd[29371]: ovs|00046|netdev|WARN|dpdk0:
> > could not set configuration (Invalid argument
> >
> > Best Regards
> > Avi
> >
> > > -Original Message-
> > > From: Olga Shern [mailto:ol...@mellanox.com]
> > > Sent: Monday, 19 February, 2018 2:58 PM
> > > To: Avi Cohen (A); ovs-discuss@openvswitch.org
> > > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> > >
> > > Hi Avi,
> > >
> > > Please try the following commandovs-vsctl --timeout 10 add-port br-phy
> > > dpdk0   -- set Interface dpdk0 type=dpdk options:dpdk-devargs=mlx5_0
> > >
> > > You need to specify port name, mlx5_0 or mlx5_1 according
> > > ibv_devinfo output
> > >
> > > Starting DPDK 18.02 and 17.11.2 you will be able to use PCI address
> > > as OVS devargs parameters.
> > >
> > > Best Regards,
> > > Olga
> > >
> > > -Original Message-
> > > From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss-
> > > boun...@openvswitch.org] On Behalf Of Avi Cohen (A)
> > > Sent: Monday, February 19, 2018 2:33 PM
> > > To: ovs-discuss@openvswitch.org
> > > Subject: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port
> > >
> > > Hi
> > > I cannot add mellanox dpdk port - and  I don't find any reference
> > > for this for new ovs versions I get  an error message when typing this
> command
> > > ovs-vsctl --timeout 10 add-port br-phy dpdk0   -- set Interface dpdk0
> > type=dpdk
> > > options:dpdk-devargs=:04:00:0
> > > I'm running:
> > > Openvswitch 2.8.1 ; dpdk-17.08 ' mellanox - connectx-4
> > >
> > > Best Regards
> > > Avi
> > > ___
> > > discuss mailing list
> > > disc...@openvswitch.org
> > > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fm
> > > ai
> > > l.op
> > > envswitch.org%2Fmailman%2Flistinfo%2Fovs-
> > >
> >
> discuss=02%7C01%7Colgas%40mellanox.com%7Cf91254be9a904a48d525
> > >
> >
> 08d57794fdf6%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636546
> > >
> >
> 404170173730=eYSbGlSDbizK%2Fdz8CKpfiRQDj4mqnrKugSuYk5Fi2M4%3
> > > D=0
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port

2018-02-19 Thread Avi Cohen (A)
Ohh. - I've downgrade to 17.08 (from 17.11) and  forgot to set this flag . 
checking now...

> -Original Message-
> From: Olga Shern [mailto:ol...@mellanox.com]
> Sent: Monday, 19 February, 2018 3:26 PM
> To: Avi Cohen (A); ovs-discuss@openvswitch.org
> Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> 
> Did you compile DPDK with mlx5 PMD enabled?
> 
> -Original Message-
> From: Avi Cohen (A) [mailto:avi.co...@huawei.com]
> Sent: Monday, February 19, 2018 3:20 PM
> To: Olga Shern ; ovs-discuss@openvswitch.org
> Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> 
> Thank you Olga
> I did specify the port name as ibv_devinfo output - but still I'm getting 
> error
> msg:
> 
> 
> Feb 19 15:16:03 Pizza05 ovs-vsctl: ovs|1|vsctl|INFO|Called as ovs-vsctl --
> timeout 10 add-port br-phy dpdk0 -- set Interface dpdk0 type=dpdk
> options:dpdk-devargs=mlx5_0 Feb 19 15:16:03 Pizza05 ovs-vswitchd[29371]:
> ovs|00044|dpdk|ERR|EAL: Unable to find a bus for the device 'mlx5_0'
> Feb 19 15:16:03 Pizza05 ovs-vswitchd[29371]:
> ovs|00045|netdev_dpdk|WARN|Error attaching device 'mlx5_0' to DPDK Feb
> 19 15:16:03 Pizza05 ovs-vswitchd[29371]: ovs|00046|netdev|WARN|dpdk0:
> could not set configuration (Invalid argument
> 
> Best Regards
> Avi
> 
> > -Original Message-
> > From: Olga Shern [mailto:ol...@mellanox.com]
> > Sent: Monday, 19 February, 2018 2:58 PM
> > To: Avi Cohen (A); ovs-discuss@openvswitch.org
> > Subject: RE: ovs-dpdk cannot add a dpdk mellanox port
> >
> > Hi Avi,
> >
> > Please try the following commandovs-vsctl --timeout 10 add-port br-phy
> > dpdk0   -- set Interface dpdk0 type=dpdk options:dpdk-devargs=mlx5_0
> >
> > You need to specify port name, mlx5_0 or mlx5_1 according  ibv_devinfo
> > output
> >
> > Starting DPDK 18.02 and 17.11.2 you will be able to use PCI address as
> > OVS devargs parameters.
> >
> > Best Regards,
> > Olga
> >
> > -Original Message-
> > From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss-
> > boun...@openvswitch.org] On Behalf Of Avi Cohen (A)
> > Sent: Monday, February 19, 2018 2:33 PM
> > To: ovs-discuss@openvswitch.org
> > Subject: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port
> >
> > Hi
> > I cannot add mellanox dpdk port - and  I don't find any reference for
> > this for new ovs versions I get  an error message when typing this command
> > ovs-vsctl --timeout 10 add-port br-phy dpdk0   -- set Interface dpdk0
> type=dpdk
> > options:dpdk-devargs=:04:00:0
> > I'm running:
> > Openvswitch 2.8.1 ; dpdk-17.08 ' mellanox - connectx-4
> >
> > Best Regards
> > Avi
> > ___
> > discuss mailing list
> > disc...@openvswitch.org
> > https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmai
> > l.op
> > envswitch.org%2Fmailman%2Flistinfo%2Fovs-
> >
> discuss=02%7C01%7Colgas%40mellanox.com%7Cf91254be9a904a48d525
> >
> 08d57794fdf6%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636546
> >
> 404170173730=eYSbGlSDbizK%2Fdz8CKpfiRQDj4mqnrKugSuYk5Fi2M4%3
> > D=0
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port

2018-02-19 Thread Olga Shern
Hi Avi, 

Please try the following commandovs-vsctl --timeout 10 add-port br-phy 
dpdk0   -- set Interface dpdk0 type=dpdk options:dpdk-devargs=mlx5_0 

You need to specify port name, mlx5_0 or mlx5_1 according  ibv_devinfo output 

Starting DPDK 18.02 and 17.11.2 you will be able to use PCI address as OVS   
devargs parameters. 

Best Regards,
Olga

-Original Message-
From: ovs-discuss-boun...@openvswitch.org 
[mailto:ovs-discuss-boun...@openvswitch.org] On Behalf Of Avi Cohen (A)
Sent: Monday, February 19, 2018 2:33 PM
To: ovs-discuss@openvswitch.org
Subject: [ovs-discuss] ovs-dpdk cannot add a dpdk mellanox port

Hi
I cannot add mellanox dpdk port - and  I don't find any reference for this for 
new ovs versions I get  an error message when typing this command
ovs-vsctl --timeout 10 add-port br-phy dpdk0   -- set Interface dpdk0 type=dpdk 
options:dpdk-devargs=:04:00:0
I'm running:
Openvswitch 2.8.1 ; dpdk-17.08 ' mellanox - connectx-4

Best Regards
Avi
___
discuss mailing list
disc...@openvswitch.org
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.openvswitch.org%2Fmailman%2Flistinfo%2Fovs-discuss=02%7C01%7Colgas%40mellanox.com%7Cf91254be9a904a48d52508d57794fdf6%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636546404170173730=eYSbGlSDbizK%2Fdz8CKpfiRQDj4mqnrKugSuYk5Fi2M4%3D=0
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] [ovs-dev] DPDK: How to send packets from one OVS bridge to another OVS bridge while running in the same user space ?

2018-02-19 Thread Kapil A
Hi Jan,

Thanks sharing the information. For my use case, i cant run a secondary VM,
so need to look for DPDK ring port option.

I didn't find much information on how to use a DPDK ring port to connect
two Bridges. i have added a dpdkr0  to a dpdk bridge, but not sure how to
connect it to another bridge. Can you please share light on how to connect
two bridges using DPDK ring ports.

On Wed, Feb 14, 2018 at 1:41 PM, Jan Scheurich 
wrote:

> Hi Kapil,
>
>
>
> I am afraid there is no really efficient way today to connect a user-space
> (netdev-dpdk) datapath in OVS to kernel interfaces (such as internal/tap
> ports or veth pairs) today. Communication works but packet I/O is very
> slow compared to DPDK interfaces (both ethernet and vhostuser). The PMD
> threads polling the DPDK interfaces are heavily slowed down when sending
> packets to kernel ports and in the other direction all kernel interfaces
> are polled by the main ovs-vswitchd thread.
>
>
>
> If your other bridge also uses DPDK in user space, you can try with DPDK
> ring ports as interface between the two bridges. DPDK ring ports should be
> supported in OVS.
>
>
>
> Another almost as efficient solution for sending packets from the OVS DPDK
> datapath to another DPDK vSwitch would be to run the other vSwitch in a VM
> and connect it to OVS-DPDK on the host through a vhostuser port. The DPDK
> vSwitch in the VM would then use the virtio PMD, I expect this to be
> supported by all DPDK vSwitches.
>
>
>
> BR, Jan
>
>
>
> *From:* Kapil A [mailto:kapil20...@gmail.com]
> *Sent:* Wednesday, 14 February, 2018 03:47
> *To:* Jan Scheurich 
> *Cc:* disc...@openvswitch.org; d...@openvswitch.org
> *Subject:* Re: [ovs-dev] DPDK: How to send packets from one OVS bridge to
> another OVS bridge while running in the same user space ?
>
>
>
> Hi Jan,
>
> Thanks for the clarification. I also came across patch port as the best
> option between ovs Bridges. But, is it possible to use patch ports to an
> external OpenFlow bridge? Like one bridge is OVS, other is Lagopus bridge
> or LINC bridge? For my use case, I want to send packets from OVS Bridge to
> another OpenFlow bridge(like a loopback port) as OVS doesn't support the
> functionality I am looking for.
>
>
>
> On Tue, Feb 13, 2018, 21:22 Jan Scheurich 
> wrote:
>
> Hi Kapil,
>
> This is what patch ports are for. They are only traversed for the first
> packet of a flow in the slow path. The resulting datapath flow entry
> collapses the processing in both bridges into a single megaflow. So there
> is no performance overhead compared to having a single bridge.
>
> Regards, Jan
>
> > -Original Message-
> > From: ovs-dev-boun...@openvswitch.org [mailto:ovs-dev-bounces@
> openvswitch.org] On Behalf Of Kapil A
> > Sent: Tuesday, 13 February, 2018 16:44
> > To: disc...@openvswitch.org; d...@openvswitch.org
> > Subject: [ovs-dev] DPDK: How to send packets from one OVS bridge to
> another OVS bridge while running in the same user space ?
> >
> > Hello,
> >
> > In my setup, i have two DPDK ports, where dpdk0 is part of br0 and and
> > dpdk1 is part of br1. How can i send packets from br0 to br1 in an
> > efficient way within userspace with good performance?
> > I came across, veth pair as one option, but i couldn't find if it will
> > provide good performance in userspace while running in dpdk mode ?
> >
> > My query might sound odd, but i have a use case where i need to send the
> > packets across bridges within the same userspace, so appreciate some help
> > on this.
> >
> > Regards
> > Kapil
> > ___
> > dev mailing list
> > d...@openvswitch.org
> > https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
>
>
> --
>
> Regards
> Kapil
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] OpenStack profiling with networking-ovn - port creation is slow

2018-02-19 Thread Daniel Alvarez Sanchez
Just for completeness, I did some tests with and without the
JSON parser C extension [0]. There's no significant gain (at
this point), maybe when we add the port groups it's more
noticeable though. Average time without it's been 2.09s
while with the C extension it's been 2.03s.

@Han, I can try rebase the patch if you want but that was
basically renaming the Address_Set table and from Ben's
comment, it may be better to keep the name. Not sure,
however, how we can proceed to address Lucas' points in
this thread.

Thanks,
Daniel

[0] https://imgur.com/a/etb5M

On Fri, Feb 16, 2018 at 6:33 PM, Han Zhou  wrote:

> Hi Daniel,
>
> Thanks for the detailed profiling!
>
> On Fri, Feb 16, 2018 at 6:50 AM, Daniel Alvarez Sanchez <
> dalva...@redhat.com> wrote:
> >
> > About the duplicated processing of the update2 messages, I've verified
> that those are not always present. I've isolated the scenario further and
> did tcpdump and debugging on the exact process which is sending
> the'transact' command and I see no update2 processing duplicates. Among the
> rest of the workers, one of them is always getting them duplicated while
> the rest don't I don't know why.
> > However, the 'modify' in the LS table for updating the acls set is the
> one always taking 2-3 seconds on this load.
> >
> I think this explains why the time spent grows linearly with number of
> lports. Each lport has its own ACLs added to same LS, so the acl column in
> the row gets bigger and bigger. It is likely that the port group
> optimization would solve this problem.
>
> Thanks
> Han
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss