kni: flag deprecated status at build time
To ensure all users are aware of KNI's deprecated status at build time, this library is marked as a deprecated library: the library is disabled by default. It can be re-enabled by setting disabled_libs to the empty string (or other string not including 'kni'). The dependent NIC driver, drivers/net/kni, is disabled accordingly as it depends on the library. NOTE: This is part of the deprecation process for KNI agreed by the DPDK technical board.[1] [1] https://mails.dpdk.org/archives/dev/2022-June/243596.html Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
dfd5b25b57
commit
bbaf917565
@ -14,6 +14,10 @@ Kernel NIC Interface
|
||||
For an alternative to KNI, that does not require any out-of-tree Linux kernel modules,
|
||||
or a custom library, see :ref:`virtio_user_as_exception_path`.
|
||||
|
||||
.. note::
|
||||
|
||||
KNI is disabled by default in the DPDK build.
|
||||
To re-enable the library, remove 'kni' from the "disable_libs" meson option when configuring a build.
|
||||
|
||||
The DPDK Kernel NIC Interface (KNI) allows userspace applications access to the Linux* control plane.
|
||||
|
||||
|
@ -85,6 +85,8 @@ optional_libs = [
|
||||
'vhost',
|
||||
]
|
||||
|
||||
dpdk_libs_deprecated += ['kni']
|
||||
|
||||
disabled_libs = []
|
||||
opt_disabled_libs = run_command(list_dir_globs, get_option('disable_libs'),
|
||||
check: true).stdout().split()
|
||||
|
@ -8,7 +8,7 @@ option('developer_mode', type: 'feature', description:
|
||||
'turn on additional build checks relevant for DPDK developers')
|
||||
option('disable_drivers', type: 'string', value: '', description:
|
||||
'Comma-separated list of drivers to explicitly disable.')
|
||||
option('disable_libs', type: 'string', value: '', description:
|
||||
option('disable_libs', type: 'string', value: 'kni', description:
|
||||
'Comma-separated list of libraries to explicitly disable. [NOTE: not all libs can be disabled]')
|
||||
option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-<VERSION>', description:
|
||||
'Subdirectory of libdir where to install PMDs. Defaults to using a versioned subdirectory.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user