[PATCH v2 7/7] eal: configure initial device probing

David Marchand david.marchand at redhat.com
Fri Apr 3 16:25:16 CEST 2026


On Sat, 28 Mar 2026 at 05:01, fengchengwen <fengchengwen at huawei.com> wrote:
> > diff --git a/lib/eal/common/eal_internal_cfg.h b/lib/eal/common/eal_internal_cfg.h
> > index 95d327a613..fac45cbe66 100644
> > --- a/lib/eal/common/eal_internal_cfg.h
> > +++ b/lib/eal/common/eal_internal_cfg.h
> > @@ -104,6 +104,7 @@ struct internal_config {
> >       struct simd_bitwidth max_simd_bitwidth;
> >       /**< max simd bitwidth path to use */
> >       size_t huge_worker_stack_size; /**< worker thread stack size */
> > +     unsigned int no_auto_probing; /**< true to switch from block-listing to allow-listing */
> >  };
> >
> >  void eal_reset_internal_config(struct internal_config *internal_cfg);
> > diff --git a/lib/eal/common/eal_option_list.h b/lib/eal/common/eal_option_list.h
> > index abee16340b..6a5ddfd8d1 100644
> > --- a/lib/eal/common/eal_option_list.h
> > +++ b/lib/eal/common/eal_option_list.h
> > @@ -32,6 +32,7 @@
> >   * Format of each entry: long name, short name, help string, struct member name.
> >   */
> >  /* (Alphabetical) List of common options first */
> > +BOOL_ARG("--auto-probing", NULL, "Let EAL probe all available devices unless some -a/-b option is set.", auto_probing)
>
> This commit only check auto_probing and no_auto_probing conflict,
> I think it no need add this arg because auto-probing is default behavir when -a/-b not exist.

Introducing the --auto-probing was an ask from Thomas, so that
applications can start requesting an explicit behavior, rather than
just rely on the *current* default behavior.


-- 
David Marchand



More information about the dev mailing list