Re: [ovs-dev] [PATCH v3 2/3] util: Introduce ovs_scan_len()

2014-11-12 Thread Pravin Shelar
On Tue, Nov 11, 2014 at 8:53 AM, Ben Pfaff wrote: > On Tue, Nov 11, 2014 at 08:47:26AM -0800, Pravin Shelar wrote: >> On Tue, Nov 11, 2014 at 7:51 AM, Ben Pfaff wrote: >> > On Mon, Nov 10, 2014 at 12:46:11PM -0800, Pravin B Shelar wrote: >> >> This is similar to ovs_scan but takes int pointer as

Re: [ovs-dev] [PATCH v3 2/3] util: Introduce ovs_scan_len()

2014-11-11 Thread Ben Pfaff
On Tue, Nov 11, 2014 at 08:47:26AM -0800, Pravin Shelar wrote: > On Tue, Nov 11, 2014 at 7:51 AM, Ben Pfaff wrote: > > On Mon, Nov 10, 2014 at 12:46:11PM -0800, Pravin B Shelar wrote: > >> This is similar to ovs_scan but takes int pointer as extra > >> parameter, this pointer point to starting ind

Re: [ovs-dev] [PATCH v3 2/3] util: Introduce ovs_scan_len()

2014-11-11 Thread Pravin Shelar
On Tue, Nov 11, 2014 at 7:51 AM, Ben Pfaff wrote: > On Mon, Nov 10, 2014 at 12:46:11PM -0800, Pravin B Shelar wrote: >> This is similar to ovs_scan but takes int pointer as extra >> parameter, this pointer point to starting index of the string. >> On successful scan this API stores number of chara

Re: [ovs-dev] [PATCH v3 2/3] util: Introduce ovs_scan_len()

2014-11-11 Thread Ben Pfaff
On Mon, Nov 10, 2014 at 12:46:11PM -0800, Pravin B Shelar wrote: > This is similar to ovs_scan but takes int pointer as extra > parameter, this pointer point to starting index of the string. > On successful scan this API stores number of characters > scanned. This API is useful for parsing complex

Re: [ovs-dev] [PATCH v3 2/3] util: Introduce ovs_scan_len()

2014-11-11 Thread Thomas Graf
On 11/10/14 at 12:46pm, Pravin B Shelar wrote: > This is similar to ovs_scan but takes int pointer as extra > parameter, this pointer point to starting index of the string. > On successful scan this API stores number of characters > scanned. This API is useful for parsing complex odp actions > e.g

[ovs-dev] [PATCH v3 2/3] util: Introduce ovs_scan_len()

2014-11-10 Thread Pravin B Shelar
This is similar to ovs_scan but takes int pointer as extra parameter, this pointer point to starting index of the string. On successful scan this API stores number of characters scanned. This API is useful for parsing complex odp actions e.g. tun_push action. Signed-off-by: Pravin B Shelar ---