[ovs-dev] [flow_metadata 2/5] flow: Extend flow_metadata member 'in_port' from 16 to 32 bits.

Ben Pfaff blp at nicira.com
Fri May 10 23:42:25 UTC 2013


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 <blp at 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




More information about the dev mailing list