Re: [Ryu-devel] [PATCH] packet lib: add get_protocol API

2013-09-26 Thread FUJITA Tomonori
On Thu, 26 Sep 2013 10:20:29 +0900 Satoshi Kobayashi wrote: > Looks good to me. It is a nice addition to users. Thanks, applied. -- October Webinars: Code for Performance Free Intel webinars can help you accelerate appl

Re: [Ryu-devel] [PATCH] packet lib: add get_protocol API

2013-09-25 Thread Satoshi Kobayashi
Looks good to me. It is a nice addition to users. 2013/9/26 FUJITA Tomonori > get_protocols returns the list of protocols. This is useful for a > packet including the same protocol multiple times (e.g. tunneling such > GRE). However, it's a rare use case. Instead of > 'get_protocols(hoge)[0]', l

[Ryu-devel] [PATCH] packet lib: add get_protocol API

2013-09-25 Thread FUJITA Tomonori
get_protocols returns the list of protocols. This is useful for a packet including the same protocol multiple times (e.g. tunneling such GRE). However, it's a rare use case. Instead of 'get_protocols(hoge)[0]', let's do 'get_protocol(hoge)' simply. Signed-off-by: FUJITA Tomonori --- ryu/lib/pack