X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fopenflow%2Fopenflow-1.2.h;h=54b9804edec360a8618aebfc711868eeb8fe00ba;hb=79f108b14e7944ddc4669e9c03fc34b40a3a2288;hp=249e861f0c2948c148f052be8fbd44b590fa07d2;hpb=54fec1f7176b605e90b1066c1357fa34f25301a7;p=sliver-openvswitch.git diff --git a/include/openflow/openflow-1.2.h b/include/openflow/openflow-1.2.h index 249e861f0..54b9804ed 100644 --- a/include/openflow/openflow-1.2.h +++ b/include/openflow/openflow-1.2.h @@ -179,8 +179,8 @@ enum oxm12_ofb_match_fields { #define OXM_OF_MPLS_LABEL OXM_HEADER (OFPXMT12_OFB_MPLS_LABEL, 4) #define OXM_OF_MPLS_TC OXM_HEADER (OFPXMT12_OFB_MPLS_TC, 1) #define OXM_OF_MPLS_BOS OXM_HEADER (OFPXMT13_OFB_MPLS_BOS, 1) -#define OXM_OF_PBB_ISID OXM_HEADER (OFPXMT12_OFB_PBB_ISID, 4) -#define OXM_OF_PBB_ISID_W OXM_HEADER_W (OFPXMT12_OFB_PBB_ISID, 4) +#define OXM_OF_PBB_ISID OXM_HEADER (OFPXMT12_OFB_PBB_ISID, 3) +#define OXM_OF_PBB_ISID_W OXM_HEADER_W (OFPXMT12_OFB_PBB_ISID, 3) #define OXM_OF_TUNNEL_ID OXM_HEADER (OFPXMT13_OFB_TUNNEL_ID, 8) #define OXM_OF_TUNNEL_ID_W OXM_HEADER_W (OFPXMT13_OFB_TUNNEL_ID, 8) #define OXM_OF_IPV6_EXTHDR OXM_HEADER (OFPXMT13_OFB_IPV6_EXTHDR, 2) @@ -251,13 +251,16 @@ enum ofp12_capabilities { OFPC12_PORT_BLOCKED = 1 << 8 /* Switch will block looping ports. */ }; -/* OpenFlow 1.2 specific properties - * (struct ofp_queue_prop_header member property). */ -enum ofp12_queue_properties { - OFPQT12_MIN_RATE = 1, /* Minimum datarate guaranteed. */ - OFPQT12_MAX_RATE = 2, /* Maximum datarate. */ - OFPQT12_EXPERIMENTER = 0xffff /* Experimenter defined property. */ +/* Full description for a queue. */ +struct ofp12_packet_queue { + ovs_be32 queue_id; /* id for the specific queue. */ + ovs_be32 port; /* Port this queue is attached to. */ + ovs_be16 len; /* Length in bytes of this queue desc. */ + uint8_t pad[6]; /* 64-bit alignment. */ + /* Followed by any number of queue properties expressed using + * ofp_queue_prop_header, to fill out a total of 'len' bytes. */ }; +OFP_ASSERT(sizeof(struct ofp12_packet_queue) == 16); /* Body of reply to OFPST_TABLE request. */ struct ofp12_table_stats {