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

Function mlx5_os_set_allmulti

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

* Set device promiscuous mode * * @param dev * Pointer to Ethernet device structure. * @param enable * 0 - all multicase is disabled, otherwise - enabled * * @return * 0 on success, a negative error value otherwise */

Source from the content-addressed store, hash-verified

3163 * 0 on success, a negative error value otherwise
3164 */
3165int
3166mlx5_os_set_allmulti(struct rte_eth_dev *dev, int enable)
3167{
3168 struct mlx5_priv *priv = dev->data->dev_private;
3169
3170 return mlx5_nl_allmulti(priv->nl_socket_route,
3171 mlx5_ifindex(dev), !!enable);
3172}
3173
3174/**
3175 * Flush device MAC addresses

Callers 2

mlx5_allmulticast_enableFunction · 0.50

Calls 2

mlx5_nl_allmultiFunction · 0.85
mlx5_ifindexFunction · 0.85

Tested by

no test coverage detected