Re: [ovs-dev] [PATCH v2] Introduce odp_flow_key_to_mask() API

2013-08-19 Thread Andy Zhou
It looks correct to me. Ben, would you please consider committing it? Acked-by: Andy Zhou git am reported a white space error: patch:28: trailing whitespace. if (is_mask && ntohs(src_flow->dl_type) < 1536 && warning: 1 line adds whitespace errors. I'd like to further improving the patc

[ovs-dev] [PATCH v2] Introduce odp_flow_key_to_mask() API

2013-08-15 Thread gyang
From: gyang With megaflow support, there is API to convert mask to nlattr key based format. This change introduces API to do the reverse conversion. We leverage the existing odp_flow_key_to_flow() API to resue the code. Signed-off-by: Guolin Yang --- lib/odp-util.c | 295 +