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

Function cdx_ignore_device

dpdk/drivers/bus/cdx/cdx.c:164–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static bool
165cdx_ignore_device(const char *dev_name)
166{
167 struct rte_devargs *devargs = cdx_devargs_lookup(dev_name);
168
169 switch (rte_cdx_bus.bus.conf.scan_mode) {
170 case RTE_BUS_SCAN_ALLOWLIST:
171 if (devargs && devargs->policy == RTE_DEV_ALLOWED)
172 return false;
173 break;
174 case RTE_BUS_SCAN_UNDEFINED:
175 case RTE_BUS_SCAN_BLOCKLIST:
176 if (devargs == NULL || devargs->policy != RTE_DEV_BLOCKED)
177 return false;
178 break;
179 }
180 return true;
181}
182
183/*
184 * Scan one cdx sysfs entry, and fill the devices list from it.

Callers 1

cdx_scanFunction · 0.85

Calls 1

cdx_devargs_lookupFunction · 0.85

Tested by

no test coverage detected