<div dir="ltr"><div><div><div>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:<br></div>~/openvswitch-2.6.0$ patch -p1 &lt;tcp_rwnd.diff<br><br></div>Regards,<br></div>Taimur<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 26, 2018 at 7:22 PM, Mark Michelson <span dir="ltr">&lt;<a href="mailto:mmichels@redhat.com" target="_blank">mmichels@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you are at the top-level source directory of ovs, then you should add &#39;-p1&#39; to the patch command.<div><div class="h5"><br>
<br>
On 03/24/2018 07:45 AM, Taimur Hafeez wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Dear All,<br>
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:<br>
<br>
ubuntu@sdnhubvm:~/openvswitch$ patch -t &lt;  tcp_rwnd.diff<br>
can&#39;t find file to patch at input line 5<br>
Perhaps you should have used the -p or --strip option?<br>
The text leading up to this was:<br>
--------------------------<br>
|diff --git a/datapath/linux/compat/includ<wbr>e/linux/openvswitch.h b/datapath/linux/compat/includ<wbr>e/linux/openvswitch.h<br>
|index 12260d8..dd84b04 100644<br>
|--- a/datapath/linux/compat/includ<wbr>e/linux/openvswitch.h<br>
|+++ b/datapath/linux/compat/includ<wbr>e/linux/openvswitch.h<br>
--------------------------<br>
No file to patch.  Skipping patch.<br>
2 out of 2 hunks ignored<br>
can&#39;t find file to patch at input line 33<br>
Perhaps you should have used the -p or --strip option?<br>
The text leading up to this was:<br>
--------------------------<br>
|diff --git a/include/openvswitch/flow.h b/include/openvswitch/flow.h<br>
|index df80dfe..64da205 100644<br>
|--- a/include/openvswitch/flow.h<br>
|+++ b/include/openvswitch/flow.h<br>
--------------------------<br>
No file to patch.  Skipping patch.<br>
2 out of 2 hunks ignored<br>
can&#39;t find file to patch at input line 57<br>
Perhaps you should have used the -p or --strip option?<br>
The text leading up to this was:<br>
--------------------------<br>
|diff --git a/include/openvswitch/ofp-acti<wbr>ons.h b/include/openvswitch/ofp-acti<wbr>ons.h<br>
|index 74e9dcc..a7512e5 100644<br>
|--- a/include/openvswitch/ofp-acti<wbr>ons.h<br>
|+++ b/include/openvswitch/ofp-acti<wbr>ons.h<br>
--------------------------<br>
No file to patch.  Skipping patch.<br>
2 out of 2 hunks ignored<br>
can&#39;t find file to patch at input line 87<br>
Perhaps you should have used the -p or --strip option?<br>
The text leading up to this was:<br>
--------------------------<br>
|diff --git a/lib/odp-execute.c b/lib/odp-execute.c<br>
|index 65a6fcd..b052f1c 100644<br>
|--- a/lib/odp-execute.c<br>
|+++ b/lib/odp-execute.c<br>
--------------------------<br>
No file to patch.  Skipping patch.<br>
2 out of 2 hunks ignored<br>
can&#39;t find file to patch at input line 122<br>
Perhaps you should have used the -p or --strip option?<br>
The text leading up to this was:<br>
--------------------------<br>
|diff --git a/lib/odp-util.c b/lib/odp-util.c<br>
|index 626a82c..a124d6e 100644<br>
|--- a/lib/odp-util.c<br>
|+++ b/lib/odp-util.c<br>
--------------------------<br>
No file to patch.  Skipping patch.<br>
patch: **** malformed patch at line 192:  {<br>
<br>
<br>
I request you all if anybody could help me in patching properly. I have patch file that needs to be patched with OVS. Thanks!<br>
<br>
<br>
Best regards,<br>
--------------------<br>
Taimur Hafeez<br>
<br>
<br>
<br></div></div>
______________________________<wbr>_________________<br>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org" target="_blank">discuss@openvswitch.org</a><br>
<a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank">https://mail.openvswitch.org/m<wbr>ailman/listinfo/ovs-discuss</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><br>Best regards,</div><div dir="ltr">--------------------<br>Taimur Hafeez<br><div style="font-size:12.8px"><b>NUST</b> <b style="font-size:12.8px">S</b><span style="font-size:12.8px">chool of </span><b style="font-size:12.8px">E</b><span style="font-size:12.8px">lectrical </span><b style="font-size:12.8px">E</b><span style="font-size:12.8px">ngineering and </span><b style="font-size:12.8px">C</b><span style="font-size:12.8px">omputer </span><b style="font-size:12.8px">S</b><span style="font-size:12.8px">cience </span><b style="font-size:12.8px">(SEECS)</b><span style="font-size:12.8px">,</span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">Islamabad, Pakistan.</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><a href="https://www.linkedin.com/in/taimurhafeez" target="_blank">Linkedin</a><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">Mobile<font color="#0000ff">:<u>+923367991993<br></u></font></span></div></div></div></div></div></div></div></div></div></div>
</div>