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

Function mlx5_os_mac_addr_remove

dpdk/drivers/net/mlx5/linux/mlx5_os.c:3069–3079  ·  view source on GitHub ↗

* Remove a MAC address from device * * @param dev * Pointer to Ethernet device structure. * @param index * MAC address index. */

Source from the content-addressed store, hash-verified

3067 * MAC address index.
3068 */
3069void
3070mlx5_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

Callers 1

Calls 2

mlx5_nl_mac_addr_removeFunction · 0.85
mlx5_ifindexFunction · 0.85

Tested by

no test coverage detected