From: Kevin Traynor <ktraynor@redhat.com>
To: Thomas Monjalon <thomas@monjalon.net>, dev@dpdk.org
Cc: bruce.richardson@intel.com, david.marchand@redhat.com
Subject: Re: [PATCH 1/2] build: add backward compatibility for nested drivers
Date: Tue, 23 Sep 2025 14:08:35 +0100 [thread overview]
Message-ID: <4a7059c1-43ad-4df7-a4fb-03ea938e6009@redhat.com> (raw)
In-Reply-To: <2842623.IobQ9Gjlxr@thomas>
On 22/09/2025 16:51, Thomas Monjalon wrote:
> 22/09/2025 13:07, Kevin Traynor:
>> --- a/drivers/meson.build
>> +++ b/drivers/meson.build
>> -# add cmdline disabled drivers and meson disabled drivers together
>> -disable_drivers += ',' + get_option('disable_drivers')
>> +# map legacy driver names
>> +driver_map = {
>> + 'net/e1000': 'net/intel/e1000',
>> + 'net/fm10k': 'net/intel/fm10k',
>> + 'net/i40e': 'net/intel/i40e',
>> + 'net/iavf': 'net/intel/iavf',
>> + 'net/ice': 'net/intel/ice',
>> + 'net/idpf': 'net/intel/idpf',
>> + 'net/ipn3ke': 'net/intel/ipn3ke',
>> + 'net/ixgbe': 'net/intel/ixgbe',
>> + 'net/cpfl': 'net/intel/cpfl',
>> +}
>
> Should we build this list inside a file drivers/net/intel/meson.build ?
> I'm not sure my idea is better...
>
Not sure. It's generic as is, so any other driver moved anywhere could
add to this list here easily. Let's see what others think.
>> +
>> +# add cmdline drivers
>> +foreach driver_type : [['disable', get_option('disable_drivers')],
>> + ['enable', get_option('enable_drivers')]]
>> + driver_list_name = driver_type[0] + '_drivers'
>> + cmdline_drivers = ',' + driver_type[1]
>> +
>> + foreach driver : cmdline_drivers.split(',')
>> + if driver_map.has_key(driver)
>
> I feel we need comments for above parsing.
>
Ack, will add
>> + driver_mapped = driver_map[driver]
>> + warning('Driver name "@0@" is deprecated, please use "@1@" instead.'
>
> Not sure about this warning.
> We can keep compatibility without saying it is deprecated.
>
Yes, that is a good point for discussion. Seen as support for the legacy
names were already dropped and I wasn't aware of any ABI like policy
about it, I thought there may be a preference for deprecation
warning/continuing to move to the new name only.
I would be happy to keep the legacy name without a warning/deprecation
for a longer term and we could adopt this as general guideline by
default too. It should not cost much effort to do this.
Another minor point is, if this needs a Fixes tag? Yes, in the sense it
feels like it added a banana skin for users (the patches are because I
hit this issue with 25.07). I didn't add it for now, as no guarantees
were broken and there isn't an upstream stable for backporting to anyway.
>> + .format(driver, driver_mapped))
>> + driver = driver_mapped
>> + endif
>> + if driver_list_name == 'disable_drivers'
>> + disable_drivers += ',' + driver
>> + else
>> + enable_drivers += ',' + driver
>> + endif
>> + endforeach
>> +endforeach
>> +
>> +# add cmdline drivers and meson drivers together
>
> This comment is not clear.
>
I will remove this, it was previously for the enable/disable blocks of
code, but only relevant to the line that was expanded into the loop
above not the below one.
>> disable_drivers = run_command(list_dir_globs, disable_drivers, check: true).stdout().split()
>> -
>> -# add cmdline enabled drivers and meson enabled drivers together
>> -enable_drivers = ',' + get_option('enable_drivers')
>
>
next prev parent reply other threads:[~2025-09-23 13:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-22 11:07 Kevin Traynor
2025-09-22 11:07 ` [PATCH 2/2] build: add backwards compatibility for wildcarding " Kevin Traynor
2025-09-22 15:52 ` Thomas Monjalon
2025-09-23 13:09 ` Kevin Traynor
2025-09-22 15:51 ` [PATCH 1/2] build: add backward compatibility for " Thomas Monjalon
2025-09-23 13:08 ` Kevin Traynor [this message]
2025-09-23 13:28 ` Bruce Richardson
2025-09-24 8:43 ` Thomas Monjalon
2025-09-24 12:34 ` [PATCH v2 0/2] " Kevin Traynor
2025-09-24 12:34 ` [PATCH v2 1/2] " Kevin Traynor
2025-09-24 12:34 ` [PATCH v2 2/2] build: add backward compatibility for wildcarding " Kevin Traynor
2025-09-24 13:06 ` [PATCH v2 0/2] build: add backward compatibility for " Bruce Richardson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4a7059c1-43ad-4df7-a4fb-03ea938e6009@redhat.com \
--to=ktraynor@redhat.com \
--cc=bruce.richardson@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).