diff options
author | Ben Pfaff <blp@nicira.com> | 2012-01-26 14:50:41 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-02-09 14:07:08 -0800 |
commit | 9886b6620ea710a4a8afd0a88271e563a64e7ea2 (patch) | |
tree | 6883a7c8714f165a49c7a73b8e35a61c2f30b42f /ofproto/ofproto.h | |
parent | 80d5aefd65b9dd953d873f9995b949bc8b8d19d5 (diff) |
vswitchd: Add "enable-async-messages" setting for controllers.
An OpenFlow connection can start receiving asynchronous messages such as
"packet-ins" immediately at connect time. If there is a lot of traffic on
the network then this can swamp the controller before it gets a chance to
set up an initial flow table. This setting overrides this OpenFlow
behavior, changing it so that the connection initially enables no
asynchronous messages at all. The controller can enable any messages that
it actually wants when it is ready for them.
Feature #7086.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/ofproto.h')
-rw-r--r-- | ofproto/ofproto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index 6aec062c..860c5142 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -121,7 +121,8 @@ struct ofproto_controller { char *target; /* e.g. "tcp:127.0.0.1" */ int max_backoff; /* Maximum reconnection backoff, in seconds. */ int probe_interval; /* Max idle time before probing, in seconds. */ - enum ofproto_band band; /* In-band or out-of-band? */ + enum ofproto_band band; /* In-band or out-of-band? */ + bool enable_async_msgs; /* Initially enable asynchronous messages? */ /* OpenFlow packet-in rate-limiting. */ int rate_limit; /* Max packet-in rate in packets per second. */ |