packets: packet metadata from flow function instead of macro.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 21 Mar 2014 17:36:52 +0000 (10:36 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Mon, 24 Mar 2014 17:56:31 +0000 (10:56 -0700)
commitfc3431c6a09e625343dd39b57b86839af90a08fd
tree64b397c3c0718fa8572691917a2b34b46cd717d7
parent708fb4c50aa5547f9836a4d9e2112550c0d1094d
packets: packet metadata from flow function instead of macro.

Commit 03fbdf8d9c80a (lib/flow: Retain ODPP_NONE on flow_extract())
replaced packet metadata initialization function by a macro.
Visual studio does not like nested structure initialization that
is done in that macro.

This commit replaces the macro by a function.

CC: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/packets.h
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif.c