MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ixgbe_vf_perm_addr_gen

Function ixgbe_vf_perm_addr_gen

dpdk/drivers/net/ixgbe/ixgbe_pf.c:40–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static inline
41int 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
58static inline int
59ixgbe_mb_intr_setup(struct rte_eth_dev *dev)

Callers 1

ixgbe_pf_host_initFunction · 0.85

Calls 2

rte_eth_random_addrFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected