* Remove a MAC address from the internal array. * * @param dev * Pointer to Ethernet device structure. * @param index * MAC address index. */
| 27 | * MAC address index. |
| 28 | */ |
| 29 | static void |
| 30 | mlx5_internal_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index) |
| 31 | { |
| 32 | MLX5_ASSERT(index < MLX5_MAX_MAC_ADDRESSES); |
| 33 | if (rte_is_zero_ether_addr(&dev->data->mac_addrs[index])) |
| 34 | return; |
| 35 | mlx5_os_mac_addr_remove(dev, index); |
| 36 | memset(&dev->data->mac_addrs[index], 0, sizeof(struct rte_ether_addr)); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Adds a MAC address to the internal array. |
no test coverage detected