On 7/17/2024 2:33 PM, Serhii Iliushyk wrote: > @@ -373,6 +645,15 @@ nthw_pci_dev_init(struct rte_pci_device *pci_dev) > return -1; > } > > + /* connect structs */ > + internals->p_drv = p_drv; > + eth_dev->data->dev_private = internals; > + eth_dev->data->mac_addrs = rte_malloc(NULL, > + NUM_MAC_ADDRS_PER_PORT * sizeof(struct > rte_ether_addr), 0); > + rte_memcpy(ð_dev->data->mac_addrs[0], > + &internals->eth_addrs[0], > RTE_ETHER_ADDR_LEN); > + > + >
DPDK has 'rte_ether_addr_copy()' API for MAC address copy, this is not a change request for this patch series, but you can use it when this code is updated in the future.