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

Function mlx5_internal_mac_addr_remove

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

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

Source from the content-addressed store, hash-verified

27 * MAC address index.
28 */
29static void
30mlx5_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.

Callers 2

mlx5_mac_addr_removeFunction · 0.85
mlx5_set_mc_addr_listFunction · 0.85

Calls 3

rte_is_zero_ether_addrFunction · 0.85
memsetFunction · 0.85
mlx5_os_mac_addr_removeFunction · 0.50

Tested by

no test coverage detected