diff options
author | Andy Zhou <azhou@ovn.org> | 2017-06-16 23:39:31 -0700 |
---|---|---|
committer | Andy Zhou <azhou@ovn.org> | 2017-08-03 12:38:32 -0700 |
commit | 88186383f36ca4e3708c9737f43c5e8908cd58d8 (patch) | |
tree | 84bd9e86ade99ebab622d1520629ec86b8bb5644 /ofproto/bond.c | |
parent | 18e5d1a81961786b42a986960059e319dd6a1c9a (diff) | |
download | openvswitch-88186383f36ca4e3708c9737f43c5e8908cd58d8.tar.gz |
ofproto-dpif: Add boottime support field.
When changing support fields, it may be unsafe to set support level
beyond what datapath can support.
This patch introduce the notion of boot time support and
runtime support fields. Boot time support are set only
once during ofproto start up phase, and not changed during
runtime. The runtime support fields are the same as boot time
support fields at the startup time, but can be changed via
the 'ovs-appctl' command. However, each change will
be checked against the corresponding boot time support field. Only
feature reduction from the boot time support is allowed.
Signed-off-by: Andy Zhou <azhou@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto/bond.c')
-rw-r--r-- | ofproto/bond.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/bond.c b/ofproto/bond.c index d11d7ccca..365a3ca7f 100644 --- a/ofproto/bond.c +++ b/ofproto/bond.c @@ -1159,7 +1159,7 @@ bond_rebalance(struct bond *bond) } bond->next_rebalance = time_msec() + bond->rebalance_interval; - use_recirc = bond->ofproto->backer->support.odp.recirc && + use_recirc = bond->ofproto->backer->rt_support.odp.recirc && bond_may_recirc(bond); if (use_recirc) { |