Re: [ovs-discuss] Problem when installing OVS with DPDK

2017-08-21 Thread 唐志军
Thank you, Ben,
I have successfully installed OVS 2.7.2 with DPDK 17.02
 
 
-- Original --
From:  "Ben Pfaff";
Date:  Tue, Aug 22, 2017 02:14 AM
To:  "唐志军"; 
Cc:  "bugs"; 
Subject:  Re: [ovs-discuss] Problem when installing OVS with DPDK

 
On Mon, Aug 21, 2017 at 06:09:57PM +0800, 唐志军 wrote:
> But I also get problems. I am using OVS-2.72 and DPDK-17.05.1

OVS 2.7.2 uses DPDK 16.11.___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] [Super TIME SENSITIVE] Setting QOS for OVS Swtiches

2017-08-21 Thread Justin Pettit

> On Aug 21, 2017, at 5:28 AM, Fahmy Sherif Alaa Salaheldin 
>  wrote:
> 
> Good Afternoon,
> 
> I am trying to use Mininet together with OVS and a RYU controller to emulate 
> a simple network.
> 
> I was wondering if some could tell me IF it is possible to set queues/qos 
> through linux tc and then they would show up in the commands:
> 
> sh ovs-vsctl list Qos
> sh ovs-vsctl list Queue
> 
> What I am doing now is for instance,
> 
> tc qdisc add dev s2-eth5 rot handle 1: drr 
> 
> then add two sub classes (what I want as my queues)
> 
> tc class add dev s2-eth5 parent 1: classid 1:1 drr quantum 100
> tc class add dev s2-eth5 parent 1: classid 1:2 drr quantum 200
> 
> then because I know it is necessary I add a filter that basically let's 
> everything pass through it, 
> 
> tc filter add dev eth0 protocol ip parent 1: prio 1 u32 
> 
> But nothing shows in my queues/qos tables.. I am a beginner and I apologize 
> if this is trivial but any thoughts?
> My goal is to create one QOS per port that has 2-3 queues that are served in 
> a Deficit Round Robin (DRR) Fashion!!

OVS uses the tc subsystem in the opposite direction that you're suggesting.  
Those ovs-vsctl commands modify fields in a database. ovs-vswitchd takes that 
configuration and makes tc calls to configure qos on Linux.  If you call tc 
directly, OVS will not read your changes back and update the configuration 
database.

If OVS does not provide the configuration knobs you want, you can directly call 
tc and skip the ovs-vsctl configuration entirely.  I would be careful if you do 
both, though, since you're likely to get a broken configuration if both you and 
ovs-vswitchd are modifying tc.

If you think your configuration is generally useful, you could propose changes 
to OVS to support what you're suggesting.

--Justin


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


Re: [ovs-discuss] Adding a new action (port statistics)

2017-08-21 Thread Justin Pettit

> On Aug 20, 2017, at 10:10 AM, Rahul Sharma  wrote:
> 
> Hi everyone,
> 
> I am new here, so in case this has already been answered, or it's not the 
> appropriate place to ask, kindly let me know.
> 
> I am trying to add a custom action to openflow by making some code changes in 
> the OVS. The action which would send port statistics to the controller on 
> receipt of a particular matching packet. Would the proper procedure to add 
> such an action be documented somewhere, as it would make things quite easier 
> for me.

The implementation would vary depending on which datapath you're targeting, but 
the general answer is that there is not such documentation.  What you may want 
to do is look for when such a feature was introduced in the past and look at 
the commit to see what changes were made.

Good luck!

--Justin


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


Re: [ovs-discuss] Hashing to megaflow entry

2017-08-21 Thread Justin Pettit

> On Aug 21, 2017, at 8:19 AM, Sara Gittlin  wrote:
> 
> One more - I did not see in the article that if a match is found in
> megaflow cache - then a microflow is generated to be installed in the
> microflow cache to improve performance for subsequnce packets

An exact-match cache (microflow cache) is an implementation of the datapath.  
The userspace and out-of-tree OVS Linux kernel module that ships as part of OVS 
contain an exact-match cache that's managed by the datapath.  The upstream OVS 
kernel module that ships with the Linux kernel was rejected by the Linux 
upstream community, so it does not contain one.

--Justin


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


Re: [ovs-discuss] Problem when installing OVS with DPDK

2017-08-21 Thread Ben Pfaff
On Mon, Aug 21, 2017 at 06:09:57PM +0800, 唐志军 wrote:
> But I also get problems. I am using OVS-2.72 and DPDK-17.05.1

OVS 2.7.2 uses DPDK 16.11.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Regarding CFM/OAM support in Openvswitch

2017-08-21 Thread Ben Pfaff
[moving ovs-dev to BCC]

I don't know of anyone working on them, but we'd accept implementations
if they were well written.

On Mon, Aug 21, 2017 at 09:43:22AM +, ankaiah.nallamek...@wipro.com wrote:
> Thanks a lot Ben for clarification.
> 
> Any future plans for supporting full pledged 802.1ag support, i.e. all 
> 3(CCM,LBM,LTM) protocols, Please let me know.
> 
> 
> Thanks,
> Anki
> 
> -Original Message-
> From: Ben Pfaff [mailto:b...@ovn.org]
> Sent: Tuesday, August 8, 2017 10:26 PM
> To: Ankaiah Nallamekala (MFG & Tech) 
> Cc: ovs-...@openvswitch.org; ovs-discuss@openvswitch.org
> Subject: Re: [ovs-discuss] Regarding CFM/OAM support in Openvswitch
> 
> ** This mail has been sent from an external source. Treat hyperlinks and 
> attachments in this email with caution**
> 
> On Tue, Aug 08, 2017 at 02:07:25PM +, ankaiah.nallamek...@wipro.com wrote:
> > Ethernet CFM/OAM supports Loopback protocol(LBM) and Link Trace
> > protocol(LTM), Is ovs is supporting these two protocols as well, if so
> > could you please describe how to use these two protocols.
> 
> OVS doesn't support those.
> 
> __
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com 
> __
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments. WARNING: Computer viruses can be transmitted via 
> email. The recipient should check this email and any attachments for the 
> presence of viruses. The company accepts no liability for any damage caused 
> by any virus transmitted by this email. www.wipro.com
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] ovn-bridge-mappings configuration issue.

2017-08-21 Thread Russell Bryant
On Mon, Aug 21, 2017 at 7:43 AM, Rana, JaiSingh
 wrote:
> Hi,
>
> For configuring external gateway, ovn-controller man page says:
>
> "
>
> external_ids:ovn-bridge-mappings
>  A list of key-value pairs that map a physical network
> name to a local ovs bridge that  provides  connectivity
>  to  that  network.   An  example  value mapping two
> physical network names to two ovs bridges would be: phys‐
>  net1:br-eth0,physnet2:br-eth1.
> "
>
>
> Created bridge br-ex and attached an interface p1p2 having external
> connectivity.
>
>
> # ovs-vsctl --may-exist add-br br-ex -- set bridge br-ex
> protocols=OpenFlow13
>
> # ovs-vsctl set open . external-ids:ovn-bridge-mappings=provider:br-ex
> # ovs-vsctl --may-exist add-port br-ex p1p2
>
>
> After configuring Openstack with external networks, ovn-controller on
> compute actually looks for bridge named "provider" in
> ovn/controller/patch.c : add_bridge_mappings, which of-course is not created
> but throws error that "br-ex" not found as can be seen in ovn-controller.log
>
> "2017-08-18T11:20:30.477Z|04536|patch|ERR| bridge not found for localnet
> port 'provnet-03bf-ad69-4225-b69c-0cd23d7969af' with network name
> 'br-ex'"
>
> When this external-id is defined as ovn-bridge-mappings=br-ex:br-ex, it
> works fine and no error is thrown.
>
>
> Is this a bug or the field before ":" in this external-id represents bridge
> name.

The error message indicates that a "localnet" was created with a
"network_name" of "br-ex".  The "network_name" should be set to
"provider" in this example.

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


Re: [ovs-discuss] Hashing to megaflow entry

2017-08-21 Thread Sara Gittlin
One more - I did not see in the article that if a match is found in
megaflow cache - then a microflow is generated to be installed in the
microflow cache to improve performance for subsequnce packets

Sara


On Mon, Aug 21, 2017 at 2:21 PM, Sara Gittlin  wrote:
> Thank you Justin,
> Indeed this article is very helpful.
> i understand from the article, that generating megaflows and
> installing in the kernel cache is already implemented in userspace -
> ovs.
> Before reading this article, i thought that megaflows were implemented
> only for L2 normal mode.
> Sara
>
>
>
> On Thu, Aug 17, 2017 at 9:59 AM, Justin Pettit  wrote:
>>
>>> On Aug 16, 2017, at 11:56 PM, Sara Gittlin  wrote:
>>>
>>> Hi,
>>> Suppose we support megaflows, How the hashing is performed in the
>>> kernel module ?
>>> when packet arrives how do we know 'beforehand' to mask key fields in
>>> order to hit the megaflow entry ?
>>
>> If you haven't done so already, I'd highly recommend looking at our NSDI 
>> paper that answers many of your questions:
>>
>> 
>> https://www.usenix.org/system/files/conference/nsdi15/nsdi15-paper-pfaff.pdf
>>
>> I hope you find it helpful.
>>
>> --Justin
>>
>>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] [Super TIME SENSITIVE] Setting QOS for OVS Swtiches

2017-08-21 Thread Fahmy Sherif Alaa Salaheldin
Good Afternoon,


I am trying to use Mininet together with OVS and a RYU controller to emulate a 
simple network.


I was wondering if some could tell me IF it is possible to set queues/qos 
through linux tc and then they would show up in the commands:


sh ovs-vsctl list Qos

sh ovs-vsctl list Queue


What I am doing now is for instance,


tc qdisc add dev s2-eth5 rot handle 1: drr


then add two sub classes (what I want as my queues)


tc class add dev s2-eth5 parent 1: classid 1:1 drr quantum 100

tc class add dev s2-eth5 parent 1: classid 1:2 drr quantum 200


then because I know it is necessary I add a filter that basically let's 
everything pass through it,


tc filter add dev eth0 protocol ip parent 1: prio 1 u32


But nothing shows in my queues/qos tables.. I am a beginner and I apologize if 
this is trivial but any thoughts?

My goal is to create one QOS per port that has 2-3 queues that are served in a 
Deficit Round Robin (DRR) Fashion!!


Best,

Sherif

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


[ovs-discuss] Problem when installing OVS with DPDK

2017-08-21 Thread 唐志军

Hi,

My name is Zhijun, I'm from Beijing Internet Institute, China.

I am trying to install OVS with DPDK. I have got many helpful 
instructions from your official doc, 
http://docs.openvswitch.org/en/latest/intro/install/dpdk/


But I also get problems. I am using OVS-2.72 and DPDK-17.05.1
After I have compiled and installed DPDK, I run make OVS, and I get an 
ERROR says /'lib/netdev-dpdk.c:34:28: fatal error: rte_virtio_net.h: No 
such file or directory'.
/I check the release note of DPDK-17.05.1 and find that 
/rte_virtio_net.h /has been renamed as /rte_vhost.h /and some macros 
have been removed.
Must I use a lower version of DPDK to install OVS? Or otherwise, how can 
I install OVS with DPDK?


I don't know how to do now, hope you can give me some help.

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


[ovs-discuss] ovn-bridge-mappings configuration issue.

2017-08-21 Thread Rana, JaiSingh
Hi,


For configuring external gateway, ovn-controller man page says:

"

external_ids:ovn-bridge-mappings
 A list of key-value pairs that map a physical network name 
to a local ovs bridge that  provides  connectivity
 to  that  network.   An  example  value mapping two 
physical network names to two ovs bridges would be: phys‐
 net1:br-eth0,physnet2:br-eth1.
"

Created bridge br-ex and attached an interface p1p2 having external 
connectivity.


# ovs-vsctl --may-exist add-br br-ex -- set bridge br-ex protocols=OpenFlow13

# ovs-vsctl set open . external-ids:ovn-bridge-mappings=provider:br-ex
# ovs-vsctl --may-exist add-port br-ex p1p2


After configuring Openstack with external networks, ovn-controller on compute 
actually looks for bridge named "provider" in  ovn/controller/patch.c : 
add_bridge_mappings, which of-course is not created but throws error that 
"br-ex" not found as can be seen in ovn-controller.log

"2017-08-18T11:20:30.477Z|04536|patch|ERR| bridge not found for localnet port 
'provnet-03bf-ad69-4225-b69c-0cd23d7969af' with network name 'br-ex'"

When this external-id is defined as ovn-bridge-mappings=br-ex:br-ex, it works 
fine and no error is thrown.


Is this a bug or the field before ":" in this external-id represents bridge 
name.


Thanks,

Jai



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


Re: [ovs-discuss] Hashing to megaflow entry

2017-08-21 Thread Sara Gittlin
Thank you Justin,
Indeed this article is very helpful.
i understand from the article, that generating megaflows and
installing in the kernel cache is already implemented in userspace -
ovs.
Before reading this article, i thought that megaflows were implemented
only for L2 normal mode.
Sara



On Thu, Aug 17, 2017 at 9:59 AM, Justin Pettit  wrote:
>
>> On Aug 16, 2017, at 11:56 PM, Sara Gittlin  wrote:
>>
>> Hi,
>> Suppose we support megaflows, How the hashing is performed in the
>> kernel module ?
>> when packet arrives how do we know 'beforehand' to mask key fields in
>> order to hit the megaflow entry ?
>
> If you haven't done so already, I'd highly recommend looking at our NSDI 
> paper that answers many of your questions:
>
> 
> https://www.usenix.org/system/files/conference/nsdi15/nsdi15-paper-pfaff.pdf
>
> I hope you find it helpful.
>
> --Justin
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Regarding CFM/OAM support in Openvswitch

2017-08-21 Thread ankaiah.nallamek...@wipro.com
Thanks a lot Ben for clarification.

Any future plans for supporting full pledged 802.1ag support, i.e. all 
3(CCM,LBM,LTM) protocols, Please let me know.


Thanks,
Anki

-Original Message-
From: Ben Pfaff [mailto:b...@ovn.org]
Sent: Tuesday, August 8, 2017 10:26 PM
To: Ankaiah Nallamekala (MFG & Tech) 
Cc: ovs-...@openvswitch.org; ovs-discuss@openvswitch.org
Subject: Re: [ovs-discuss] Regarding CFM/OAM support in Openvswitch

** This mail has been sent from an external source. Treat hyperlinks and 
attachments in this email with caution**

On Tue, Aug 08, 2017 at 02:07:25PM +, ankaiah.nallamek...@wipro.com wrote:
> Ethernet CFM/OAM supports Loopback protocol(LBM) and Link Trace
> protocol(LTM), Is ovs is supporting these two protocols as well, if so
> could you please describe how to use these two protocols.

OVS doesn't support those.

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com 
__
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss