diff options
author | Yi-Hung Wei <yihung.wei@gmail.com> | 2017-05-15 10:04:56 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-05-31 14:54:10 -0700 |
commit | 577bfa9f687936d53970d0ff41928c3a727720e8 (patch) | |
tree | 56f42bacdd419fa488a39f46ec9e67b44a862d47 /include/openflow | |
parent | 35eb6326d5d0f04fe7916b018eeb110a6018843f (diff) | |
download | openvswitch-577bfa9f687936d53970d0ff41928c3a727720e8.tar.gz |
ofp-util: Add OpenFlow 1.5 packet-out support
This patch implements the encoding and decoding of the new packet-out
format defined in OpenFlow 1.5. Test cases are provided to verify the
encoding and decoding.
This patch is based on [1] and [2].
[1] https://github.com/jean2/openvswitch/commits/jean/ext-427
[2] https://mail.openvswitch.org/pipermail/ovs-dev/2017-April/331032.html
Signed-off-by: Jean Tourrilhes <jt@labs.hpe.com>
Signed-off-by: Zoltan Balogh <zoltan.balogh@ericsson.com>
Co-authored-by: Jan Scheurich <jan.scheurich@ericsson.com>
Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/openflow')
-rw-r--r-- | include/openflow/openflow-1.5.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/openflow/openflow-1.5.h b/include/openflow/openflow-1.5.h index 3649e6c29..73b76d883 100644 --- a/include/openflow/openflow-1.5.h +++ b/include/openflow/openflow-1.5.h @@ -150,4 +150,17 @@ struct ofp15_group_desc_stats { }; OFP_ASSERT(sizeof(struct ofp15_group_desc_stats) == 16); +/* Send packet (controller -> datapath). */ +struct ofp15_packet_out { + ovs_be32 buffer_id; /* ID assigned by datapath (-1 if none). */ + ovs_be16 actions_len; /* Size of action array in bytes. */ + uint8_t pad[2]; + /* Followed by: + * - Match + * - List of actions + * - Packet data + */ +}; +OFP_ASSERT(sizeof(struct ofp15_packet_out) == 8); + #endif /* openflow/openflow-1.5.h */ |