[RFC v3 4/7] drivers: cleanup devargs lookup in bus scan

Bruce Richardson bruce.richardson at intel.com
Thu Mar 5 17:56:27 CET 2026


On Thu, Mar 05, 2026 at 05:45:46PM +0100, David Marchand wrote:
> Don't hardcode the bus names in the RTE_EAL_DEVARGS_FOREACH() calls.
> The bus name is set by code in EAL.
> Even if there is nothing broken, let's reuse the name from the bus object.
> 
> And remove the now useless macros.
> 
> Note: in the ifpga bus case, the call was using an incorrect macro
> (IFPGA_ARG_NAME instead of IFPGA_BUS_NAME), yet it was working fine
> as this macro is aligned with the ifpga bus name.
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list