Re: [ovs-discuss] SELECT groups - hash

2018-03-24 Thread Ben Pfaff
I don't think we support this in pre-OF1.5.

On Sat, Mar 24, 2018 at 11:57:57PM +0100, Slavica Tomovic wrote:
> I forgot to mention that I use Floodlight controller. Can I achieve what
> you suggested with the controller that does not support OF1.5?
> 
> BR,
> Slavica
> 
> 
> 2018-03-24 23:30 GMT+01:00 Slavica Tomovic :
> 
> > Thank Ben.
> >
> > Can you help me with the syntax? I tried this:
> >
> > ovs-ofctl  mod-group s11 group_id=24, type=select, selection_method=hash
> >
> > However, I am getting an error the mod-group command takes at most two
> > arguments.
> > I am using OVS 2.5.2.
> >
> > Also, how should I specify the fields? In the documentation, I found
> > this:
> >
> > fields(field[=mask]...)
> >
> > Does this mean that I should specify the fields like this: fields(nw_src 
> > nw_dst udp..)?
> >
> >
> > Thanks in advance,
> > Slavica
> >
> > 2018-03-24 19:10 GMT+01:00 Ben Pfaff :
> >
> >> On Sat, Mar 24, 2018 at 06:45:50PM +0100, Slavica Tomovic wrote:
> >> >  Hi,
> >> >
> >> > I am using SELECT Group tables for load balancing purposes in OpenFlow
> >> > network. However, I found that OVS by default performs hashing only on
> >> IP
> >> > addresses, MAC addresses, VLAN IDs, TCP ports and EthType fields. Is it
> >> > possible to change this and use a hash function that depends on UDP
> >> port?
> >> >
> >> > I have read these posts:
> >> > https://mail.openvswitch.org/pipermail/ovs-discuss/2016-July
> >> /041934.html
> >> > https://mail.openvswitch.org/pipermail/ovs-dev/2015-March/214529.html
> >> >
> >> > and according to them I need to do this by implementing a logic for
> >> > creation of group properties structure on SDN controller. Can I avoid
> >> this
> >> > somehow and configure OVS switches with some command to perform hashing
> >> on
> >> > UDP ports?
> >>
> >> It sounds like you just need to use ovs-ofctl to configure the behavior
> >> you want.  Did you read the "Group Syntax" section in the manpage?  You
> >> want to specify the "fields" parameter.
> >>
> >
> >
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] SELECT groups - hash

2018-03-24 Thread Slavica Tomovic
I forgot to mention that I use Floodlight controller. Can I achieve what
you suggested with the controller that does not support OF1.5?

BR,
Slavica


2018-03-24 23:30 GMT+01:00 Slavica Tomovic :

> Thank Ben.
>
> Can you help me with the syntax? I tried this:
>
> ovs-ofctl  mod-group s11 group_id=24, type=select, selection_method=hash
>
> However, I am getting an error the mod-group command takes at most two
> arguments.
> I am using OVS 2.5.2.
>
> Also, how should I specify the fields? In the documentation, I found
> this:
>
> fields(field[=mask]...)
>
> Does this mean that I should specify the fields like this: fields(nw_src 
> nw_dst udp..)?
>
>
> Thanks in advance,
> Slavica
>
> 2018-03-24 19:10 GMT+01:00 Ben Pfaff :
>
>> On Sat, Mar 24, 2018 at 06:45:50PM +0100, Slavica Tomovic wrote:
>> >  Hi,
>> >
>> > I am using SELECT Group tables for load balancing purposes in OpenFlow
>> > network. However, I found that OVS by default performs hashing only on
>> IP
>> > addresses, MAC addresses, VLAN IDs, TCP ports and EthType fields. Is it
>> > possible to change this and use a hash function that depends on UDP
>> port?
>> >
>> > I have read these posts:
>> > https://mail.openvswitch.org/pipermail/ovs-discuss/2016-July
>> /041934.html
>> > https://mail.openvswitch.org/pipermail/ovs-dev/2015-March/214529.html
>> >
>> > and according to them I need to do this by implementing a logic for
>> > creation of group properties structure on SDN controller. Can I avoid
>> this
>> > somehow and configure OVS switches with some command to perform hashing
>> on
>> > UDP ports?
>>
>> It sounds like you just need to use ovs-ofctl to configure the behavior
>> you want.  Did you read the "Group Syntax" section in the manpage?  You
>> want to specify the "fields" parameter.
>>
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] SELECT groups - hash

2018-03-24 Thread Slavica Tomovic
Thank Ben.

Can you help me with the syntax? I tried this:

ovs-ofctl  mod-group s11 group_id=24, type=select, selection_method=hash

However, I am getting an error the mod-group command takes at most two
arguments.
I am using OVS 2.5.2.

Also, how should I specify the fields? In the documentation, I found this:

fields(field[=mask]...)

Does this mean that I should specify the fields like this:
fields(nw_src nw_dst udp..)?


Thanks in advance,
Slavica

2018-03-24 19:10 GMT+01:00 Ben Pfaff :

> On Sat, Mar 24, 2018 at 06:45:50PM +0100, Slavica Tomovic wrote:
> >  Hi,
> >
> > I am using SELECT Group tables for load balancing purposes in OpenFlow
> > network. However, I found that OVS by default performs hashing only on IP
> > addresses, MAC addresses, VLAN IDs, TCP ports and EthType fields. Is it
> > possible to change this and use a hash function that depends on UDP port?
> >
> > I have read these posts:
> > https://mail.openvswitch.org/pipermail/ovs-discuss/2016-July/041934.html
> > https://mail.openvswitch.org/pipermail/ovs-dev/2015-March/214529.html
> >
> > and according to them I need to do this by implementing a logic for
> > creation of group properties structure on SDN controller. Can I avoid
> this
> > somehow and configure OVS switches with some command to perform hashing
> on
> > UDP ports?
>
> It sounds like you just need to use ovs-ofctl to configure the behavior
> you want.  Did you read the "Group Syntax" section in the manpage?  You
> want to specify the "fields" parameter.
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] Help regarding patching OVS

2018-03-24 Thread Taimur Hafeez
Dear All,
I have got the patch for some modifications in TCP header in OVS.
Unfortunately, I am unable to patch it with OVS with patch command. I have
tried on different OVS and Ubuntu versions. The error I always get in
Terminal is mentioned below:

ubuntu@sdnhubvm:~/openvswitch$ patch -t <  tcp_rwnd.diff
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|diff --git a/datapath/linux/compat/include/linux/openvswitch.h
b/datapath/linux/compat/include/linux/openvswitch.h
|index 12260d8..dd84b04 100644
|--- a/datapath/linux/compat/include/linux/openvswitch.h
|+++ b/datapath/linux/compat/include/linux/openvswitch.h
--
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 33
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|diff --git a/include/openvswitch/flow.h b/include/openvswitch/flow.h
|index df80dfe..64da205 100644
|--- a/include/openvswitch/flow.h
|+++ b/include/openvswitch/flow.h
--
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 57
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|diff --git a/include/openvswitch/ofp-actions.h b/include/openvswitch/ofp-
actions.h
|index 74e9dcc..a7512e5 100644
|--- a/include/openvswitch/ofp-actions.h
|+++ b/include/openvswitch/ofp-actions.h
--
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 87
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|diff --git a/lib/odp-execute.c b/lib/odp-execute.c
|index 65a6fcd..b052f1c 100644
|--- a/lib/odp-execute.c
|+++ b/lib/odp-execute.c
--
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 122
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|diff --git a/lib/odp-util.c b/lib/odp-util.c
|index 626a82c..a124d6e 100644
|--- a/lib/odp-util.c
|+++ b/lib/odp-util.c
--
No file to patch.  Skipping patch.
patch:  malformed patch at line 192:  {


I request you all if anybody could help me in patching properly. I have
patch file that needs to be patched with OVS. Thanks!


Best regards,

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