Skip to content

Commit

Permalink
dpif: Fix function pointer check for bond_add.
Browse files Browse the repository at this point in the history
There was typo in function pointer check in
dpif_bond_add() before calling bond_add().

Fixes: 9df6506 ("userspace: Avoid dp_hash recirculation for balance-tcp bond mode.")
Signed-off-by: Somnath Chatterjee <somnath.b.chatterjee@ericsson.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
  • Loading branch information
Somnath Chatterjee authored and igsilya committed Nov 3, 2021
1 parent 68543dd commit 42c3481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dpif.c
Expand Up @@ -2012,7 +2012,7 @@ dpif_meter_del(struct dpif *dpif, ofproto_meter_id meter_id,
int
dpif_bond_add(struct dpif *dpif, uint32_t bond_id, odp_port_t *member_map)
{
return dpif->dpif_class->bond_del
return dpif->dpif_class->bond_add
? dpif->dpif_class->bond_add(dpif, bond_id, member_map)
: EOPNOTSUPP;
}
Expand Down

0 comments on commit 42c3481

Please sign in to comment.