* Remove a MAC address from device * * @param dev * Pointer to Ethernet device structure. * @param index * MAC address index. */
| 3067 | * MAC address index. |
| 3068 | */ |
| 3069 | void |
| 3070 | mlx5_os_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index) |
| 3071 | { |
| 3072 | struct mlx5_priv *priv = dev->data->dev_private; |
| 3073 | const int vf = priv->sh->dev_cap.vf; |
| 3074 | |
| 3075 | if (vf) |
| 3076 | mlx5_nl_mac_addr_remove(priv->nl_socket_route, |
| 3077 | mlx5_ifindex(dev), priv->mac_own, |
| 3078 | &dev->data->mac_addrs[index], index); |
| 3079 | } |
| 3080 | |
| 3081 | /** |
| 3082 | * Adds a MAC address to the device |
no test coverage detected