projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c88b940
)
bond: don't re-zero recirc_id when creating bond
author
Simon Horman
<simon.horman@netronome.com>
Tue, 8 Mar 2016 05:50:04 +0000
(14:50 +0900)
committer
Simon Horman
<simon.horman@netronome.com>
Wed, 23 Mar 2016 01:26:14 +0000
(10:26 +0900)
The bond structure is already zeroed as it is allocated
using xzalloc so there is no need to re-zero the recirc_id field.
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Ben Pfaff <blp@ovn.org>
ofproto/bond.c
patch
|
blob
|
history
diff --git
a/ofproto/bond.c
b/ofproto/bond.c
index
d82cf75
..
ab77f50
100644
(file)
--- a/
ofproto/bond.c
+++ b/
ofproto/bond.c
@@
-237,8
+237,6
@@
bond_create(const struct bond_settings *s, struct ofproto_dpif *ofproto)
list_init(&bond->enabled_slaves);
ovs_mutex_init(&bond->mutex);
ovs_refcount_init(&bond->ref_cnt);
-
- bond->recirc_id = 0;
hmap_init(&bond->pr_rule_ops);
bond_reconfigure(bond, s);