* Split OFPRAW_OFPST_PORT_DESC_REPLY into OpenFlow 1.0 and OpenFlow 1.1+ versions. * Allow OFPRAW_OFPST_PORT_DESC_REQUEST to be used for OpenFlow 1.0+ instead of only OpenFlow 1.0.
This appears to be necessary and sufficient to allow encoding of Port Desc Stats reply messages and decoding of Port Desc Stats request messages. Or in other words both the client and server side of ovs-ofctl dump-ports-desc Signed-off-by: Simon Horman <ho...@verge.net.au> --- v14 * No change v13 * No change v12 * No change v11 * Initial post --- lib/ofp-msgs.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/ofp-msgs.h b/lib/ofp-msgs.h index ceb3fc3..6b9a358 100644 --- a/lib/ofp-msgs.h +++ b/lib/ofp-msgs.h @@ -235,11 +235,13 @@ enum ofpraw { /* OFPST 1.1+ (5): struct ofp11_queue_stats[]. */ OFPRAW_OFPST11_QUEUE_REPLY, - /* OFPST 1.0 (13): void. */ + /* OFPST 1.0+ (13): void. */ OFPRAW_OFPST_PORT_DESC_REQUEST, /* OFPST 1.0 (13): struct ofp10_phy_port[]. */ - OFPRAW_OFPST_PORT_DESC_REPLY, + OFPRAW_OFPST10_PORT_DESC_REPLY, + /* OFPST 1.1+ (13): struct ofp11_port[]. */ + OFPRAW_OFPST11_PORT_DESC_REPLY, /* Nicira extension messages. * @@ -399,7 +401,8 @@ enum ofptype { OFPTYPE_QUEUE_STATS_REPLY, /* OFPRAW_OFPST10_QUEUE_REPLY. * OFPRAW_OFPST11_QUEUE_REPLY. */ OFPTYPE_PORT_DESC_STATS_REQUEST, /* OFPRAW_OFPST_PORT_DESC_REQUEST. */ - OFPTYPE_PORT_DESC_STATS_REPLY, /* OFPRAW_OFPST_PORT_DESC_REPLY. */ + OFPTYPE_PORT_DESC_STATS_REPLY, /* OFPRAW_OFPST10_PORT_DESC_REPLY. + * OFPRAW_OFPST11_PORT_DESC_REPLY. */ /* Nicira extensions. */ OFPTYPE_ROLE_REQUEST, /* OFPRAW_NXT_ROLE_REQUEST. */ -- 1.7.10.4 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev