Re: [ovs-dev] [PATCH 4/4] ovs: optimize 'ip_parse_port' function.

2016-11-21 Thread nickcooper-zhangtonghao
Hi Guru Shetty I folded in the following minor incremental just because ovs_scan_len() is only really meant for situations where the 'n' offset is being incremented over several calls. Thanks. Nick > On Nov 19, 2016, at 2:35 AM, Guru Shetty wrote: > > Can you tell why one is

Re: [ovs-dev] [PATCH 4/4] ovs: optimize 'ip_parse_port' function.

2016-11-18 Thread Guru Shetty
On 31 October 2016 at 19:00, nickcooper-zhangtonghao < nickcooper-zhangtong...@opencloud.tech> wrote: > Signed-off-by: nickcooper-zhangtonghao opencloud.tech> > Can you tell why one is better than the other? > --- > lib/packets.c | 11 --- > 1 file changed,

[ovs-dev] [PATCH 4/4] ovs: optimize 'ip_parse_port' function.

2016-10-31 Thread nickcooper-zhangtonghao
Signed-off-by: nickcooper-zhangtonghao --- lib/packets.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/packets.c b/lib/packets.c index 990c407..1d2d452 100644 --- a/lib/packets.c +++ b/lib/packets.c @@ -436,15 +436,12