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

Function ionic_dev_remove_mac

dpdk/drivers/net/ionic/ionic_lif.c:301–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void
302ionic_dev_remove_mac(struct rte_eth_dev *eth_dev, uint32_t index)
303{
304 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev);
305 struct ionic_adapter *adapter = lif->adapter;
306 struct rte_ether_addr *mac_addr;
307
308 IONIC_PRINT_CALL();
309
310 if (index >= adapter->max_mac_addrs) {
311 IONIC_PRINT(WARNING,
312 "Index %u is above MAC filter limit %u",
313 index, adapter->max_mac_addrs);
314 return;
315 }
316
317 mac_addr = &eth_dev->data->mac_addrs[index];
318
319 if (!rte_is_valid_assigned_ether_addr(mac_addr))
320 return;
321
322 ionic_lif_addr_del(lif, (const uint8_t *)mac_addr);
323}
324
325int
326ionic_dev_set_mac(struct rte_eth_dev *eth_dev, struct rte_ether_addr *mac_addr)

Callers

nothing calls this directly

Calls 2

ionic_lif_addr_delFunction · 0.85

Tested by

no test coverage detected