Re: [dpdk-dev] [RFC] bus/auxiliary: introduce auxiliary bus

2021-06-25 Thread Xueming(Steven) Li
> -Original Message- > From: Stephen Hemminger > Sent: Friday, June 25, 2021 12:34 PM > To: Xueming(Steven) Li > Cc: NBU-Contact-Thomas Monjalon ; dev@dpdk.org; Parav > Pandit ; Ray Kinsella > ; Neil Horman > Subject: Re: [dpdk-dev] [RFC] bus/auxiliary:

Re: [dpdk-dev] [RFC] bus/auxiliary: introduce auxiliary bus

2021-06-24 Thread Stephen Hemminger
On Thu, 11 Mar 2021 21:01:13 +0800 Xueming Li wrote: > + AUXILIAR_LOG(DEBUG, "Auxiliary device %s on NUMA socket %i\n", > + dev->name, dev->device.numa_node); Your log messages will be double spaced. The macro is already adding a new line. > + > +#define AUXILIAR_LOG(le

Re: [dpdk-dev] [RFC] bus/auxiliary: introduce auxiliary bus

2021-04-12 Thread Xueming(Steven) Li
> +/* > + * Test whether the auxiliary device exist */ bool > +auxiliary_exists(const char *name) { > + DIR *dir; > + char dirname[PATH_MAX]; > + > + snprintf(dirname, sizeof(dirname), "%s/%s", > + rte_auxiliary_get_sysfs_path(), name); > + dir = opendir(rte_auxilia