git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: prepare Direct Verbs for Direct Rule
[dpdk.git]
/
drivers
/
net
/
bonding
/
rte_eth_bond_alb.c
diff --git
a/drivers/net/bonding/rte_eth_bond_alb.c
b/drivers/net/bonding/rte_eth_bond_alb.c
index
3f9945b
..
d3e16d4
100644
(file)
--- a/
drivers/net/bonding/rte_eth_bond_alb.c
+++ b/
drivers/net/bonding/rte_eth_bond_alb.c
@@
-18,10
+18,10
@@
simple_hash(uint8_t *hash_start, int hash_size)
return hash;
}
return hash;
}
-static uint
8
_t
+static uint
16
_t
calculate_slave(struct bond_dev_private *internals)
{
calculate_slave(struct bond_dev_private *internals)
{
- uint
8
_t idx;
+ uint
16
_t idx;
idx = (internals->mode6.last_slave + 1) % internals->active_slave_count;
internals->mode6.last_slave = idx;
idx = (internals->mode6.last_slave + 1) % internals->active_slave_count;
internals->mode6.last_slave = idx;
@@
-60,8
+60,8
@@
bond_mode_alb_enable(struct rte_eth_dev *bond_dev)
0, data_size, socket_id);
if (internals->mode6.mempool == NULL) {
0, data_size, socket_id);
if (internals->mode6.mempool == NULL) {
- RTE_
LOG(ERR, PMD
, "%s: Failed to initialize ALB mempool.\n",
-
bond_dev->device->name);
+ RTE_
BOND_LOG(ERR
, "%s: Failed to initialize ALB mempool.\n",
+ bond_dev->device->name);
goto mempool_alloc_error;
}
}
goto mempool_alloc_error;
}
}