Re: [PATCH v3 6/7] bus: factorize device selection

Bruce Richardson
2026-04-15T09:54:14Z

On Mon, Apr 13, 2026 at 09:30:36PM +0200, Thomas Monjalon wrote:
> 07/04/2026 13:52, David Marchand:
> > All buses (thankfully) implement the same logic when it comes to
> > selecting the devices to probe based on -a/-b options.
> > As we want to adjust how devices are selected, provide a common helper
> > in EAL and use it in the buses.
>
> [...]
> > +/**
> > + * Indicate if a device should be skipped during probing of a bus.
> > + */
> > +__rte_internal
> > +bool rte_bus_is_ignored_device(const struct rte_bus *bus, const char *dev_name);
>
> Name suggestion:
> rte_bus_device_is_ignored looks easier to read
>
> Actually it is ignored only when probing the bus.
> What about rte_bus_device_is_ignored_on_probing? Too long?
>
"rte_bus_ignore_dev_on_probe"?