* DPDK callback to remove a MAC address. * * @param dev * Pointer to Ethernet device structure. * @param index * MAC address index. */
| 89 | * MAC address index. |
| 90 | */ |
| 91 | void |
| 92 | mlx5_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index) |
| 93 | { |
| 94 | int ret; |
| 95 | |
| 96 | if (index >= MLX5_MAX_UC_MAC_ADDRESSES) |
| 97 | return; |
| 98 | mlx5_internal_mac_addr_remove(dev, index); |
| 99 | if (!dev->data->promiscuous) { |
| 100 | ret = mlx5_traffic_restart(dev); |
| 101 | if (ret) |
| 102 | DRV_LOG(ERR, "port %u cannot restart traffic: %s", |
| 103 | dev->data->port_id, strerror(rte_errno)); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * DPDK callback to add a MAC address. |
nothing calls this directly
no test coverage detected