ofproto-dpif-xlate: Make code more readable via 'flow' and 'wc' locals.
authorBen Pfaff <blp@nicira.com>
Wed, 12 Jun 2013 21:37:18 +0000 (14:37 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 12 Jun 2013 21:37:18 +0000 (14:37 -0700)
commit33bf917607fcdba606ac6bd895e746c6f2fb90c8
tree3b814eaeff4e1f0eaaf523a2e6d521ea96a2a83d
parent9cfef3d04d86f8ce465cf89c0eeae543a46c47ab
ofproto-dpif-xlate: Make code more readable via 'flow' and 'wc' locals.

'ctx->xin->flow' and 'ctx->xout->wc' are both pretty long.  Where it gets
in the way of code readability, this patch replaces them by 'xin' and
'xout' using local variables.

Also, replace an explicit comparison against IP and IPv6 Ethertypes by
a call to is_ip_any().

Co-authored-by: Jarno Rajahalme <jarno.rajahalme@nsn.com>.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif-xlate.c