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

Function sfc_parse_rte_devargs

dpdk/drivers/net/sfc/sfc_ethdev.c:3301–3320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3299};
3300
3301static int
3302sfc_parse_rte_devargs(const char *args, struct rte_eth_devargs *devargs)
3303{
3304 struct rte_eth_devargs eth_da = { .nb_representor_ports = 0 };
3305 int rc;
3306
3307 if (args != NULL) {
3308 rc = rte_eth_devargs_parse(args, &eth_da);
3309 if (rc != 0) {
3310 SFC_GENERIC_LOG(ERR,
3311 "Failed to parse generic devargs '%s'",
3312 args);
3313 return rc;
3314 }
3315 }
3316
3317 *devargs = eth_da;
3318
3319 return 0;
3320}
3321
3322static int
3323sfc_eth_dev_find_or_create(struct rte_pci_device *pci_dev,

Callers 1

sfc_eth_dev_pci_probeFunction · 0.85

Calls 1

rte_eth_devargs_parseFunction · 0.85

Tested by

no test coverage detected