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

Function nfp_write_mac

dpdk/drivers/common/nfp/nfp_common.c:163–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void
164nfp_write_mac(struct nfp_hw *hw,
165 uint8_t *mac)
166{
167 uint32_t mac0;
168 uint16_t mac1;
169
170 mac0 = *(uint32_t *)mac;
171 nn_writel(rte_cpu_to_be_32(mac0), hw->ctrl_bar + NFP_NET_CFG_MACADDR);
172
173 mac += 4;
174 mac1 = *(uint16_t *)mac;
175 nn_writew(rte_cpu_to_be_16(mac1),
176 hw->ctrl_bar + NFP_NET_CFG_MACADDR + 6);
177}
178
179void
180nfp_enable_queues(struct nfp_hw *hw,

Callers 4

nfp_net_set_mac_addrFunction · 0.85
nfp_netvf_initFunction · 0.85
nfp_net_initFunction · 0.85
nfp_vdpa_hw_startFunction · 0.85

Calls 2

nn_writelFunction · 0.85
nn_writewFunction · 0.85

Tested by

no test coverage detected