| 299 | } |
| 300 | |
| 301 | void |
| 302 | ionic_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 = ð_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 | |
| 325 | int |
| 326 | ionic_dev_set_mac(struct rte_eth_dev *eth_dev, struct rte_ether_addr *mac_addr) |
nothing calls this directly
no test coverage detected