net/mlx5: prepare Direct Verbs for Direct Rule
[dpdk.git] / drivers / net / bonding / rte_eth_bond_alb.c
index 3f9945b..d3e16d4 100644 (file)
@@ -18,10 +18,10 @@ simple_hash(uint8_t *hash_start, int hash_size)
        return hash;
 }
 
-static uint8_t
+static uint16_t
 calculate_slave(struct bond_dev_private *internals)
 {
-       uint8_t idx;
+       uint16_t 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) {
-                       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;
                }
        }