Skip to content

Commit

Permalink
net/bonding: fix error message on flow verify
Browse files Browse the repository at this point in the history
[ upstream commit cb8dc97 ]

Return value is now saved to errval and log message on error reports
correct function name, doesn't use q_id which was out of context,
and uses up-to-date errval.

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 bluca committed Jul 26, 2021
1 parent e77955f commit 2b916ad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions drivers/net/bonding/rte_eth_bond_pmd.c
Expand Up @@ -1794,12 +1794,13 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev,
!= 0)
return errval;

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

if (internals->mode4.dedicated_queues.flow[slave_eth_dev->data->port_id] != NULL)
Expand Down

0 comments on commit 2b916ad

Please sign in to comment.