Skip to content

Commit

Permalink
net/bonding: check flow setting
Browse files Browse the repository at this point in the history
[ upstream commit d844400 ]

Return value from bond_ethdev_8023ad_flow_set() is now checked
and appropriate message is logged on error.

Fixes: 112891c ("net/bonding: add dedicated HW queues for LACP control")

Signed-off-by: Martin Havlik <xhavli56@stud.fit.vutbr.cz>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
  • Loading branch information
Martin Havlik authored and cpaelzer committed Aug 9, 2021
1 parent 0d201ef commit e8b31f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/net/bonding/rte_eth_bond_pmd.c
Expand Up @@ -1805,8 +1805,14 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev,
internals->mode4.dedicated_queues.flow[slave_eth_dev->data->port_id],
&flow_error);

bond_ethdev_8023ad_flow_set(bonded_eth_dev,
errval = bond_ethdev_8023ad_flow_set(bonded_eth_dev,
slave_eth_dev->data->port_id);
if (errval != 0) {
RTE_BOND_LOG(ERR,
"bond_ethdev_8023ad_flow_set: port=%d, err (%d)",
slave_eth_dev->data->port_id, errval);
return errval;
}
}

/* Start device */
Expand Down

0 comments on commit e8b31f7

Please sign in to comment.