MCPcopy Index your code
hub / github.com/F-Stack/f-stack / rte_eth_macaddr_get

Function rte_eth_macaddr_get

dpdk/lib/ethdev/rte_ethdev.c:4026–4046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4024}
4025
4026int
4027rte_eth_macaddr_get(uint16_t port_id, struct rte_ether_addr *mac_addr)
4028{
4029 struct rte_eth_dev *dev;
4030
4031 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
4032 dev = &rte_eth_devices[port_id];
4033
4034 if (mac_addr == NULL) {
4035 RTE_ETHDEV_LOG(ERR,
4036 "Cannot get ethdev port %u MAC address to NULL\n",
4037 port_id);
4038 return -EINVAL;
4039 }
4040
4041 rte_ether_addr_copy(&dev->data->mac_addrs[0], mac_addr);
4042
4043 rte_eth_trace_macaddr_get(port_id, mac_addr);
4044
4045 return 0;
4046}
4047
4048int
4049rte_eth_dev_get_mtu(uint16_t port_id, uint16_t *mtu)

Callers 15

init_port_startFunction · 0.85
ff_kni_allocFunction · 0.85
rte_pcapng_add_interfaceFunction · 0.85
bond_mode_alb_arp_recvFunction · 0.85
bond_mode_alb_arp_xmitFunction · 0.85
bond_ethdev_tx_burst_tlbFunction · 0.85
bond_ethdev_tx_burst_albFunction · 0.85
tx_machineFunction · 0.85
bond_mode_8023ad_startFunction · 0.85

Calls 1

rte_ether_addr_copyFunction · 0.85