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

Function mrvl_promiscuous_enable

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

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

Source from the content-addressed store, hash-verified

1245 * 0 on success, negative error value otherwise.
1246 */
1247static int
1248mrvl_promiscuous_enable(struct rte_eth_dev *dev)
1249{
1250 struct mrvl_priv *priv = dev->data->dev_private;
1251 int ret;
1252
1253 if (priv->isolated)
1254 return -ENOTSUP;
1255
1256 if (!priv->ppio)
1257 return 0;
1258
1259 ret = pp2_ppio_set_promisc(priv->ppio, 1);
1260 if (ret) {
1261 MRVL_LOG(ERR, "Failed to enable promiscuous mode");
1262 return -EAGAIN;
1263 }
1264
1265 return 0;
1266}
1267
1268/**
1269 * DPDK callback to enable allmulti mode.

Callers 1

mrvl_dev_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected