diff options
author | Ben Pfaff <blp@nicira.com> | 2010-07-20 11:18:24 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-07-20 11:18:24 -0700 |
commit | c71270b7aefddd967d7dd5446f7701241380b09d (patch) | |
tree | a3b822fdf94a1582824bcbaacbaa17840a27997d /lib/learning-switch.h | |
parent | 81f3cad4d38768c35dce97e63ba9dd3225e5d59f (diff) |
learning-switch: Add support for OpenFlow queues.
Before, an lswitch always sent packets using OFPAT_OUTPUT, which always
uses the default OpenFlow queue. To help me debug the Open vSwitch QoS
implementation, I want to be able to send packets on other queues, so
this commit adds that feature.
Diffstat (limited to 'lib/learning-switch.h')
-rw-r--r-- | lib/learning-switch.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/learning-switch.h b/lib/learning-switch.h index 2de862e6..a2ac53b9 100644 --- a/lib/learning-switch.h +++ b/lib/learning-switch.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Nicira Networks. + * Copyright (c) 2008, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ #define LEARNING_SWITCH_H 1 #include <stdbool.h> +#include <stdint.h> struct ofpbuf; struct rconn; @@ -25,6 +26,7 @@ struct rconn; struct lswitch *lswitch_create(struct rconn *, bool learn_macs, bool exact_flows, int max_idle, bool action_normal); +void lswitch_set_queue(struct lswitch *sw, uint32_t queue); void lswitch_run(struct lswitch *, struct rconn *); void lswitch_wait(struct lswitch *); void lswitch_destroy(struct lswitch *); |