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

Function mlx5_mac_addr_remove

dpdk/drivers/net/mlx5/mlx5_mac.c:91–105  ·  view source on GitHub ↗

* DPDK callback to remove a MAC address. * * @param dev * Pointer to Ethernet device structure. * @param index * MAC address index. */

Source from the content-addressed store, hash-verified

89 * MAC address index.
90 */
91void
92mlx5_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.

Callers

nothing calls this directly

Calls 2

mlx5_traffic_restartFunction · 0.85

Tested by

no test coverage detected