struct ipn3ke_hw *hw;
struct rte_eth_dev *i40e_eth;
struct ifpga_rawdev *ifpga_dev;
- uint16_t port_id;
int i, j, retval;
char *fvl_bdf;
for (; j < 8; j++) {
fvl_bdf = ifpga_dev->fvl_bdf[j];
- retval = rte_eth_dev_get_port_by_name(fvl_bdf,
- &port_id);
- if (retval) {
+ i40e_eth = rte_eth_dev_get_by_name(fvl_bdf);
+ if (!i40e_eth) {
continue;
} else {
- i40e_eth = &rte_eth_devices[port_id];
rpst.i40e_pf_eth = i40e_eth;
- rpst.i40e_pf_eth_port_id = port_id;
+ rpst.i40e_pf_eth_port_id = i40e_eth->data->port_id;
j++;
break;