Re: [ovs-discuss] How to get the flow data of OVN logical port, such as in and out bytes?

2019-05-15 Thread Qiang Zhuo
Thank you for your reply. Can you give me an example of using OpenFlow counters 
to understand how to use counters for traffic statistics on the ports of 
logical switches/routers?


Qiang.zhuo

On 05/16/2019 08:35,Justin Pettit 
wrote:
I don't believe we pull those out separately, but you might be able to get 
rough estimates if you look at the appropriate ingress and egress OpenFlow 
counters.

--Justin


On May 14, 2019, at 9:32 PM, Qiang Zhuo  wrote:

hello:
How to get the flow data of OVN logical port, such as in and out bytes?
Qiang.zhuo

___
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] How to get the flow data of OVN logical port, such as in and out bytes?

2019-05-15 Thread Justin Pettit
I don't believe we pull those out separately, but you might be able to get 
rough estimates if you look at the appropriate ingress and egress OpenFlow 
counters.

--Justin


> On May 14, 2019, at 9:32 PM, Qiang Zhuo  wrote:
> 
> hello:
> How to get the flow data of OVN logical port, such as in and out bytes?
>   
>   Qiang.zhuo
> 
> ___
> 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


[ovs-discuss] Unable to hotplug interface with DPDK initialized

2019-05-15 Thread Shriroop Joshi (shrirjos) via discuss
Hello ovs community

I am trying to attach an interface (eth4-4) to a bridge (svc-br) with netdev 
datapath_type. Here are the steps which I follow:
1. Load vfio-pci driver
2. Bind vfio-pci driver to interface eth4-4
(following steps as mentioned here: 
http://docs.openvswitch.org/en/latest/topics/dpdk/phy/#dpdk-binding-nics)
3. Hotplug this interface to DPDK bridge:
# ovs-vsctl add-port svc-br eth4-4 -- set interface eth4-4 type=dpdk 
options:dpdk-devargs=:af:00.3
(following steps as mentioned here: 
http://docs.openvswitch.org/en/latest/topics/dpdk/phy/#hotplugging)

After completing these steps, I see that it shows 'Error attaching device 
':af:00.3' to DPDK' error.
Here are the error logs:
2019-05-15T21:11:20.663Z|00227|dpdk|INFO|EAL: PCI device :af:00.3 on NUMA 
socket 1
2019-05-15T21:11:20.663Z|00228|dpdk|INFO|EAL:   probe driver: 8086:1521 
net_e1000_igb
2019-05-15T21:11:20.663Z|00229|dpdk|ERR|EAL: Driver cannot attach the device 
(:af:00.3)
2019-05-15T21:11:20.663Z|00230|netdev_dpdk|WARN|Error attaching device 
':af:00.3' to DPDK
2019-05-15T21:11:20.663Z|00231|netdev|WARN|eth4-4: could not set configuration 
(Invalid argument)

I noticed that restarting openvswitch solves this issue, and I can see the 
interface attached to bridge after restart.
Here is the snippet from logs during restart:
2019-05-15T21:14:54.172Z|00078|dpdk|INFO|EAL: PCI device :af:00.3 on NUMA 
socket 1
2019-05-15T21:14:54.172Z|00079|dpdk|INFO|EAL:   probe driver: 8086:1521 
net_e1000_igb
2019-05-15T21:14:54.174Z|00080|dpdk|INFO|EAL:   using IOMMU type 1 (Type 1)

Am I missing any step? Openvswitch documentation does not specify anything else.

# ovs-vswitchd --version
ovs-vswitchd (Open vSwitch) 2.9.3
DPDK 17.11.0

Regards,
Shriroop




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


[ovs-discuss] OpenFlow(ver >=1.5) selection method dp_hash use in recirc action

2019-05-15 Thread Jai Rana
Hi All,

I am trying to understand how selection method dp_hash is used in recirc
action in datapath. With dp_hash in use, ovs action OVS_ACTION_ATTR_HASH is
triggered which invokes execute_hash(...) to calculate ovs flow hash based
on the hash basis received as netlink attribute and populates
key->ovs_flow_hash.

But during subsequent calls to
execute_recirc(...)->clone_execute(...)->ovs_dp_process_packet(...)->ovs_flow_tbl_lookup_stats(...),
skb_hash is used instead of DP populated hash in key->ovs_flow_hash to look
up the flow in ovs_flow_tbl_lookup_stats(...).

If someone can help me understand why hash in key->ovs_flow_hash is not
used here if it is available and is non zero that will be great help.

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


Re: [ovs-discuss] TSO Support for OVS-DPDK

2019-05-15 Thread Ian Stokes

On 5/15/2019 9:05 AM, Harsh Gondaliya wrote:

Dear Team,

Since long I've been figuring out how to enable TSO support is OVS-DPDK 
bridge.


I am trying to perform Inter-VM communication within same host (L2 
forwarding). I get significantly less throughput in OVS-DPDK as compared 
to OVS bridge for the same arrangement.


I have realised that OVS-DPDK bridge due to its lack of support for TSO 
is not able to give high throughput results.


There has been some work done in this regard, but, I am not able to 
understand what all config need to done or what patches need to be 
applied in order to have TSO support in OVS-DPDK.


Being a beginner with these packages and Linux, may I please get a sort 
of detailed description of what can be done to achieve TSO support in 
OVS-DPDK?




Hi,

TSO is not supported currently in OVS DPDK. TSO essentially requires the 
enablement of multi segment mbuf in OVS as well as TSO enablement.


There were patches proposed previously to enable both of these but they 
have not made it upstream to date due to concerns around their impact 
for non TSO usecases as well as some of the fundamental changes 
introduced WRT to the mbuf itself.


The series will be re-visited at some stage in the future once these 
issue can be addressed.


In the meantime if you wish to test the series that was available I 
would advise downloading the following patch series.


https://patchwork.ozlabs.org/project/openvswitch/list/?series=85802&state=*

https://patchwork.ozlabs.org/project/openvswitch/list/?series=85807&state=*

These will not apply to head of master any more so you will have to 
apply them on top of the following commit manually:


adb3f0b ("python: Avoid flake8 warning for unused variables.")

For tips on configuring MSEG/TSO there are instructions introduced in 
the cover letter and documentation of the patch series that can be 
consulted.


Multiseg enablement documentation (Setup steps etc.).
https://mail.openvswitch.org/pipermail/ovs-dev/2019-January/355111.htmll

TSO Documentation (Setup steps etc.)
https://mail.openvswitch.org/pipermail/ovs-dev/2019-January/355118.html

Cover letters (Performance figures, usecases, known issues).
https://mail.openvswitch.org/pipermail/ovs-dev/2019-January/355103.html
https://mail.openvswitch.org/pipermail/ovs-dev/2019-January/355115.html


HTL
Ian



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


[ovs-discuss] TSO Support for OVS-DPDK

2019-05-15 Thread Harsh Gondaliya
Dear Team,

Since long I've been figuring out how to enable TSO support is OVS-DPDK
bridge.

I am trying to perform Inter-VM communication within same host (L2
forwarding). I get significantly less throughput in OVS-DPDK as compared to
OVS bridge for the same arrangement.

I have realised that OVS-DPDK bridge due to its lack of support for TSO is
not able to give high throughput results.

There has been some work done in this regard, but, I am not able to
understand what all config need to done or what patches need to be applied
in order to have TSO support in OVS-DPDK.

Being a beginner with these packages and Linux, may I please get a sort of
detailed description of what can be done to achieve TSO support in OVS-DPDK?
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss