summaryrefslogtreecommitdiff
path: root/ofproto/bond.c
diff options
context:
space:
mode:
authorSimon Horman <simon.horman@netronome.com>2016-03-08 14:50:04 +0900
committerSimon Horman <simon.horman@netronome.com>2016-03-23 10:26:14 +0900
commit0a914b0637cab71e2e5fdc0865f9e582e8cfc024 (patch)
tree3b83870030dd9a9b57d6d754022720ea6db11564 /ofproto/bond.c
parentc88b940ec14225178deb47129b2cd1f398c363e5 (diff)
downloadopenvswitch-0a914b0637cab71e2e5fdc0865f9e582e8cfc024.tar.gz
bond: don't re-zero recirc_id when creating bond
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>
Diffstat (limited to 'ofproto/bond.c')
-rw-r--r--ofproto/bond.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ofproto/bond.c b/ofproto/bond.c
index d82cf756f..ab77f503c 100644
--- 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);