| 38 | } |
| 39 | |
| 40 | static inline |
| 41 | int ixgbe_vf_perm_addr_gen(struct rte_eth_dev *dev, uint16_t vf_num) |
| 42 | { |
| 43 | unsigned char vf_mac_addr[RTE_ETHER_ADDR_LEN]; |
| 44 | struct ixgbe_vf_info *vfinfo = |
| 45 | *IXGBE_DEV_PRIVATE_TO_P_VFDATA(dev->data->dev_private); |
| 46 | uint16_t vfn; |
| 47 | |
| 48 | for (vfn = 0; vfn < vf_num; vfn++) { |
| 49 | rte_eth_random_addr(vf_mac_addr); |
| 50 | /* keep the random address as default */ |
| 51 | memcpy(vfinfo[vfn].vf_mac_addresses, vf_mac_addr, |
| 52 | RTE_ETHER_ADDR_LEN); |
| 53 | } |
| 54 | |
| 55 | return 0; |
| 56 | } |
| 57 | |
| 58 | static inline int |
| 59 | ixgbe_mb_intr_setup(struct rte_eth_dev *dev) |
no test coverage detected