X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fopenflow%2Fopenflow-common.h;h=93cc2c48eaf0247d1e31994c3ed41a2c8b7fd7cb;hb=00467f7367deade04c4405e1eb2841581700d519;hp=5b0ccc5f913e9211bc45072054edd1dde9c50db3;hpb=ca843648e3b4181a52a398b902e5e69221976476;p=sliver-openvswitch.git diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 5b0ccc5f9..93cc2c48e 100644 --- a/include/openflow/openflow-common.h +++ b/include/openflow/openflow-common.h @@ -104,7 +104,8 @@ enum ofp_version { #define OFP_MAX_TABLE_NAME_LEN 32 #define OFP_MAX_PORT_NAME_LEN 16 -#define OFP_TCP_PORT 6633 +#define OFP_OLD_PORT 6633 +#define OFP_PORT 6653 #define OFP_ETH_ALEN 6 /* Bytes in an Ethernet address. */ @@ -203,19 +204,10 @@ enum ofp_port_features { OFPPF_10GB_FD = 1 << 6, /* 10 Gb full-duplex rate support. */ }; -struct ofp_packet_queue { - ovs_be32 queue_id; /* id for the specific queue. */ - ovs_be16 len; /* Length in bytes of this queue desc. */ - uint8_t pad[2]; /* 64-bit alignment. */ - /* struct ofp_queue_prop_header properties[0]; List of properties. */ -}; -OFP_ASSERT(sizeof(struct ofp_packet_queue) == 8); - enum ofp_queue_properties { - OFPQT_NONE = 0, /* No property defined for queue (default). */ - OFPQT_MIN_RATE, /* Minimum datarate guaranteed. */ - /* Other types should be added here - * (i.e. max rate, precedence, etc). */ + OFPQT_MIN_RATE = 1, /* Minimum datarate guaranteed. */ + OFPQT_MAX_RATE = 2, /* Maximum guaranteed rate. */ + OFPQT_EXPERIMENTER = 0xffff, /* Experimenter defined property. */ }; /* Common description for a queue. */ @@ -226,13 +218,14 @@ struct ofp_queue_prop_header { }; OFP_ASSERT(sizeof(struct ofp_queue_prop_header) == 8); -/* Min-Rate queue property description. */ -struct ofp_queue_prop_min_rate { - struct ofp_queue_prop_header prop_header; /* prop: OFPQT_MIN, len: 16. */ +/* Min-Rate and Max-Rate queue property description (OFPQT_MIN and + * OFPQT_MAX). */ +struct ofp_queue_prop_rate { + struct ofp_queue_prop_header prop_header; ovs_be16 rate; /* In 1/10 of a percent; >1000 -> disabled. */ uint8_t pad[6]; /* 64-bit alignment */ }; -OFP_ASSERT(sizeof(struct ofp_queue_prop_min_rate) == 16); +OFP_ASSERT(sizeof(struct ofp_queue_prop_rate) == 16); /* Switch features. */ struct ofp_switch_features {