This matches the size in struct flow and allows for future extensions to OpenFlow 1.1+ (which uses 32-bit port numbers) and to hold kernel port numbers (which also have a 32-bit range).
Signed-off-by: Ben Pfaff <b...@nicira.com> --- lib/flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flow.h b/lib/flow.h index 2271418..6d8615b 100644 --- a/lib/flow.h +++ b/lib/flow.h @@ -120,7 +120,7 @@ struct flow_metadata { struct flow_tnl tunnel; /* Encapsulating tunnel parameters. */ ovs_be64 metadata; /* OpenFlow 1.1+ metadata field. */ uint32_t regs[FLOW_N_REGS]; /* Registers. */ - uint16_t in_port; /* OpenFlow port or zero. */ + uint32_t in_port; /* OpenFlow port or zero. */ }; void flow_extract(struct ofpbuf *, uint32_t priority, uint32_t mark, -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev