diff options
| -rw-r--r-- | service/src/devmgr.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/service/src/devmgr.c b/service/src/devmgr.c index 73cdcc2..058569b 100644 --- a/service/src/devmgr.c +++ b/service/src/devmgr.c @@ -1920,6 +1920,13 @@ static int bond_dev_init_one_device(struct devmgr_main * devmgr_main, const char goto errout; } + int ret = rte_eth_bond_xmit_policy_set(bond_port_id, bond_dev_cfg->xmit_policy); + if(unlikely(ret < 0)) + { + MR_ERROR("Failed at setting xmit policy for bond %s: ret = %d", str_bond, ret); + goto errout; + } + /* get the dev's desc and port_id */ for (unsigned int slave_iter = 0; slave_iter < bond_dev_cfg->nr_dev_slaves; slave_iter++) { @@ -1940,7 +1947,7 @@ static int bond_dev_init_one_device(struct devmgr_main * devmgr_main, const char } port_id_t slave_port_id = slave_dev_desc->port_id; - int ret = rte_eth_bond_slave_add(bond_port_id, slave_port_id); + ret = rte_eth_bond_slave_add(bond_port_id, slave_port_id); if (unlikely(ret < 0)) { MR_ERROR("Failed at join %s to bond %s: ret = %d", str_dev_slave, str_bond, ret); @@ -1954,7 +1961,7 @@ static int bond_dev_init_one_device(struct devmgr_main * devmgr_main, const char /* set the mac address */ if (bond_dev_cfg->is_bond_ether_addr_set) { - int ret = rte_eth_bond_mac_address_set(bond_port_id, &bond_dev_cfg->bond_ether_addr); + ret = rte_eth_bond_mac_address_set(bond_port_id, &bond_dev_cfg->bond_ether_addr); if (unlikely(ret < 0)) { MR_ERROR("Failed at set mac address for bond %s: ret = %d", str_bond, ret); @@ -1963,7 +1970,7 @@ static int bond_dev_init_one_device(struct devmgr_main * devmgr_main, const char } /* register an dpdk_dev candidate, the kernel name and dpdk vdev name are same */ - int ret = dpdk_dev_candidate_vdev_register(devmgr_main, str_bond, str_bond_vdev); + ret = dpdk_dev_candidate_vdev_register(devmgr_main, str_bond, str_bond_vdev); if (unlikely(ret < 0)) { MR_ERROR("Failed at register dpdk candidate for bond %s.", str_bond); |
