aboutsummaryrefslogtreecommitdiff
path: root/ofproto/ofproto.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-11-16 16:31:05 -0800
committerEthan Jackson <ethan@nicira.com>2011-11-23 12:06:54 -0800
commit8b36f51e0fdeb468058e4552858af03851b4fad3 (patch)
treef87a500e046a3ae537655a6f0066cdf135ab98ff /ofproto/ofproto.h
parent81b1afb19dcb4570efe1899ef99bffd2683321ed (diff)
vswitch: Implement dscp column of the Queue table.
The dscp column of the queue table instructs Open vSwitch to mark all traffic egressing the queue with the given DSCP bits in its tos field. Bug #7046.
Diffstat (limited to 'ofproto/ofproto.h')
-rw-r--r--ofproto/ofproto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h
index 5a99d469..74b3dece 100644
--- a/ofproto/ofproto.h
+++ b/ofproto/ofproto.h
@@ -99,6 +99,11 @@ struct ofproto_port_stp_status {
int error_count; /* Number of bad BPDUs received. */
};
+struct ofproto_port_queue {
+ uint32_t queue; /* Queue ID. */
+ uint8_t dscp; /* DSCP bits (e.g. [0, 63]). */
+};
+
/* How the switch should act if the controller cannot be contacted. */
enum ofproto_fail_mode {
OFPROTO_FAIL_SECURE, /* Preserve flow table. */
@@ -219,6 +224,9 @@ int ofproto_port_set_stp(struct ofproto *, uint16_t ofp_port,
const struct ofproto_port_stp_settings *);
int ofproto_port_get_stp_status(struct ofproto *, uint16_t ofp_port,
struct ofproto_port_stp_status *);
+int ofproto_port_set_queues(struct ofproto *, uint16_t ofp_port,
+ const struct ofproto_port_queue *,
+ size_t n_queues);
/* The behaviour of the port regarding VLAN handling */
enum port_vlan_mode {