Re: [ovs-discuss] Setting TCP rwnd value in Open vSwitch

2018-04-02 Thread Taimur Hafeez
Dear Volkan,
Could you please tell *version* of OVS on which you applied
*"tcp_rwnd.diff"* patch? Thanks in advance!

On Fri, Mar 23, 2018 at 5:11 PM, Taimur Hafeez <taimurhafee...@gmail.com>
wrote:

> I applied the patch but it I am unable to do it properly. For this reason,
> i am sharing environment on which i tried along with the terminal output.
> Also i tried various other commands of patching but unfortunately all in
> vain. Could you please what version of OVS and ubuntu you used for this
> patch? Please guide through this. Thankyou!
>
> Environment 1:
>
> OVS version 2.3.90
> Linux sdnhubvm  4.4.0-97-generic #120-14.04.1-Ubuntu SMP
>
> Environment 2:
> OVS version 2.8.1
> Linux ubuntu ibm  4.13.0-36-generic #40- Ubuntu SMP
>
>
> **My comment==Environment 1 Ubuntu terminal
> log*
> 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:  {
>
>
> -
>
>
> On Fri, Mar 23, 2018 at 5:07 PM, Taimur Hafeez <taimurhafee...@gmail.com>
> wrote:
>
>> I applied the patch but it I am unable to do it properly. For this
>> reason, i am sharing environment on which i tried along with the terminal
>> output. Also i tried various other commands of patching but unfortunately
>> all in vain. Could you please what version of OVS and ubuntu you used for
>> this patch? Please guide through this. Thankyou!
>>
>> Environment 1:
>>
>> OVS version 2.3.90
>> Linux sdnhubvm  4.4.0-97-generic #120-14.04.1-Ubuntu SMP
>>
>> Environment 2:
>> OVS version 2.8.1
>> Linux ubuntu ibm  4.13.0-36-generic #40- Ubuntu SMP
>>
>>
>> **My comment==Environment 1 Ubuntu terminal
>> log*
>> 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

[ovs-discuss] Error in "Make" after patching OVS

2018-04-02 Thread Taimur Hafeez
Dear all,
I patched OVS successfully but when I issue "make" command it gives
following error:


taimur@ubuntuibm:~/openvswitch-2.6.0$ make
make  all-recursive
make[1]: Entering directory `/home/taimur/openvswitch-2.6.0'
Making all in datapath
make[2]: Entering directory `/home/taimur/openvswitch-2.6.0/datapath'
Making all in linux
make[3]: Entering directory `/home/taimur/openvswitch-2.6.0/datapath/linux'
make -C /lib/modules/4.4.0-31-generic/build
M=/home/taimur/openvswitch-2.6.0/datapath/linux modules
make[4]: Entering directory `/usr/src/linux-headers-4.4.0-31-generic'
  CC [M]  /home/taimur/openvswitch-2.6.0/datapath/linux/actions.o
In file included from
/home/taimur/openvswitch-2.6.0/datapath/linux/actions.c:24:0:
/home/taimur/openvswitch-2.6.0/datapath/linux/compat/include/linux/openvswitch.h:443:2:
error: unknown type name ‘ovs_be16’
  ovs_be16 rwnd;
  ^
make[5]: *** [/home/taimur/openvswitch-2.6.0/datapath/linux/actions.o]
Error 1
make[4]: *** [_module_/home/taimur/openvswitch-2.6.0/datapath/linux] Error 2
make[4]: Leaving directory `/usr/src/linux-headers-4.4.0-31-generic'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/home/taimur/openvswitch-2.6.0/datapath/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/taimur/openvswitch-2.6.0/datapath'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/taimur/openvswitch-2.6.0'
make: *** [all] Error 2

Could any body help on this? Thanks!


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


Re: [ovs-discuss] Help regarding patching OVS

2018-03-29 Thread Taimur Hafeez
thanks dear. Though i had a small issue with patch file too, however, after
mitigating that issue, Yes it worked by issuing following command in the
top-level source directory of ovs:
~/openvswitch-2.6.0$ patch -p1  wrote:

> If you are at the top-level source directory of ovs, then you should add
> '-p1' to the patch command.
>
>
> On 03/24/2018 07:45 AM, Taimur Hafeez wrote:
>
>> 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
>>
>>
>


-- 


Best regards,

Taimur Hafeez
*NUST* *S*chool of *E*lectrical *E*ngineering and *C*omputer *S*cience
*(SEECS)*, Islamabad, Pakistan.
Linkedin <https://www.linkedin.com/in/taimurhafeez>
Mobile:
*+923367991993*
___
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


Re: [ovs-discuss] Setting TCP rwnd value in Open vSwitch

2018-03-23 Thread Taimur Hafeez
 I applied the patch but it I am unable to do it properly. For this reason,
i am sharing environment on which i tried along with the terminal output.
Also i tried various other commands of patching but unfortunately all in
vain. Could you please what version of OVS and ubuntu you used for this
patch? Please guide through this. Thankyou!

Environment 1:

OVS version 2.3.90
Linux sdnhubvm  4.4.0-97-generic #120-14.04.1-Ubuntu SMP

Environment 2:
OVS version 2.8.1
Linux ubuntu ibm  4.13.0-36-generic #40- Ubuntu SMP


**My comment==Environment 1 Ubuntu terminal
log*
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:  {


-


On Fri, Mar 23, 2018 at 5:07 PM, Taimur Hafeez <taimurhafee...@gmail.com>
wrote:

> I applied the patch but it I am unable to do it properly. For this reason,
> i am sharing environment on which i tried along with the terminal output.
> Also i tried various other commands of patching but unfortunately all in
> vain. Could you please what version of OVS and ubuntu you used for this
> patch? Please guide through this. Thankyou!
>
> Environment 1:
>
> OVS version 2.3.90
> Linux sdnhubvm  4.4.0-97-generic #120-14.04.1-Ubuntu SMP
>
> Environment 2:
> OVS version 2.8.1
> Linux ubuntu ibm  4.13.0-36-generic #40- Ubuntu SMP
>
>
> **My comment==Environment 1 Ubuntu terminal
> log*
> 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 100

[ovs-discuss] Setting TCP rwnd value in Open vSwitch

2018-03-21 Thread Taimur Hafeez
Dear All,

I want to modify value of receiver window field(used for flow control) in
the TCP header using OpenFlow rule at Open vSwitch. To make it clear what I
am trying to do, lets illustrate this in the following way,

In_port=1, match src_ip=10.0.0.1, action:set_tcp_rwnd=10, out_port=2

Specifications:

Controller ryu
OpenFlow 1.3
OVS 2.5.2

Help/Clue would be highly appreciated, If anyone has done similar work.
Thanks in advance!


Best regards,

Taimur Hafeez
*NUST* *S*chool of *E*lectrical *E*ngineering and *C*omputer *S*cience
*(SEECS)*, Islamabad, Pakistan.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss