[dpdk-dev] [PATCH v5 2/2] bus/auxiliary: introduce auxiliary bus

Thomas Monjalon thomas at monjalon.net
Fri Jun 25 14:03:36 CEST 2021


25/06/2021 05:26, Xueming(Steven) Li:
> From: Thomas Monjalon <thomas at monjalon.net>
> > 23/06/2021 02:03, Xueming Li:
> > > +static int
> > > +auxiliary_parse(const char *name, void *addr) {
> > > +	struct rte_auxiliary_driver *drv = NULL;
> > > +	const char **out = addr;
> > > +
> > > +	/* Allow dummy name to prevent bus scan. */
> > > +	if (strlen(name) == 0)
> > > +		return 0;
> > 
> > Which syntax is it?
> 
> Allow empty device name "auxiliary:" to bypass entire auxiliary bus scan.

Ah OK
A suggestion of comment:
/* Skip auxiliary bus scan if name is empty. */





More information about the dev mailing list