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

Function eth_ionic_dev_remove

dpdk/drivers/net/ionic/ionic_ethdev.c:1225–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223}
1224
1225int
1226eth_ionic_dev_remove(struct rte_device *rte_dev)
1227{
1228 char name[RTE_ETH_NAME_MAX_LEN];
1229 struct rte_eth_dev *eth_dev;
1230 int ret = 0;
1231
1232 /* Adapter lookup is using the eth_dev name */
1233 snprintf(name, sizeof(name), "%s_lif", rte_dev->name);
1234
1235 eth_dev = rte_eth_dev_allocated(name);
1236 if (eth_dev)
1237 ret = rte_eth_dev_destroy(eth_dev, eth_ionic_dev_uninit);
1238 else
1239 IONIC_PRINT(DEBUG, "Cannot find device %s", rte_dev->name);
1240
1241 return ret;
1242}
1243
1244RTE_LOG_REGISTER_DEFAULT(ionic_logtype, NOTICE);

Callers 1

eth_ionic_pci_removeFunction · 0.85

Calls 3

snprintfFunction · 0.85
rte_eth_dev_allocatedFunction · 0.85
rte_eth_dev_destroyFunction · 0.85

Tested by

no test coverage detected