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

Function mrvl_allmulticast_enable

dpdk/drivers/net/mvpp2/mrvl_ethdev.c:1277–1296  ·  view source on GitHub ↗

* DPDK callback to enable allmulti mode. * * @param dev * Pointer to Ethernet device structure. * * @return * 0 on success, negative error value otherwise. */

Source from the content-addressed store, hash-verified

1275 * 0 on success, negative error value otherwise.
1276 */
1277static int
1278mrvl_allmulticast_enable(struct rte_eth_dev *dev)
1279{
1280 struct mrvl_priv *priv = dev->data->dev_private;
1281 int ret;
1282
1283 if (priv->isolated)
1284 return -ENOTSUP;
1285
1286 if (!priv->ppio)
1287 return 0;
1288
1289 ret = pp2_ppio_set_mc_promisc(priv->ppio, 1);
1290 if (ret) {
1291 MRVL_LOG(ERR, "Failed enable all-multicast mode");
1292 return -EAGAIN;
1293 }
1294
1295 return 0;
1296}
1297
1298/**
1299 * DPDK callback to disable promiscuous mode.

Callers 1

mrvl_dev_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected