struct ether_addr slave_addr;
void *pkt = NULL;
- uint16_t i, slave_id;
+ uint8_t i, slave_id;
/* Update link status on each port */
bond_mode_8023ad_enable(struct rte_eth_dev *bond_dev)
{
struct bond_dev_private *internals = bond_dev->data->dev_private;
- uint16_t i;
+ uint8_t i;
for (i = 0; i < internals->active_slave_count; i++)
bond_mode_8023ad_activate_slave(bond_dev, i);
}
static void
-bandwidth_left(int port_id, uint64_t load, uint8_t update_idx,
+bandwidth_left(uint8_t port_id, uint64_t load, uint8_t update_idx,
struct bwg_slave *bwg_slave)
{
struct rte_eth_link link_status;
struct bond_rx_queue *bd_rx_q;
struct bond_tx_queue *bd_tx_q;
- int errval, q_id;
+ int errval;
+ uint16_t q_id;
/* Stop slave */
rte_eth_dev_stop(slave_eth_dev->data->port_id);
char *name = dev->data->name;
struct bond_dev_private *internals = dev->data->dev_private;
struct rte_kvargs *kvlist = internals->kvlist;
- int arg_count, port_id = dev - rte_eth_devices;
+ int arg_count;
+ uint8_t port_id = dev - rte_eth_devices;
/*
* if no kvlist, it means that this bonded device has been created
/** Port Queue Mapping Structure */
struct bond_rx_queue {
- int queue_id;
+ uint16_t queue_id;
/**< Queue Id */
struct bond_dev_private *dev_private;
/**< Reference to eth_dev private structure */
};
struct bond_tx_queue {
- int queue_id;
+ uint16_t queue_id;
/**< Queue Id */
struct bond_dev_private *dev_private;
/**< Reference to dev private structure */