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/bonding: fix buffer length when printing strings
[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
c3891c7
..
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;
}
-static uint
8
_t
+static uint
16
_t
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;