[dpdk-dev] [PATCH] drivers: advertise kmod dependencies in pmdinfo
Trahe, Fiona
fiona.trahe at intel.com
Fri Sep 16 11:49:22 CEST 2016
Hi Oliver,
> -----Original Message-----
> From: Olivier Matz [mailto:olivier.matz at 6wind.com]
> Sent: Thursday, September 15, 2016 3:23 PM
> To: dev at dpdk.org; nhorman at tuxdriver.com
> Cc: thomas.monjalon at 6wind.com; vido at cesnet.cz; Trahe, Fiona
> <fiona.trahe at intel.com>; stephen at networkplumber.org
> Subject: [PATCH] drivers: advertise kmod dependencies in pmdinfo
>
> Add a new macro DRIVER_REGISTER_KMOD_DEP() that allows a driver to
> declare the list of kernel modules required to run properly.
>
> Today, most PCI drivers require uio/vfio.
>
> Signed-off-by: Olivier Matz <olivier.matz at 6wind.com>
> ---
>
> rfc -> v1:
> - the kmod information can be per-device using a modalias-like
> pattern
> - change syntax to use '&' and '|' instead of ',' and ':'
> - remove useless prerequisites in kmod lis: no need to
> specify both uio and uio_pci_generic, only the latter is
> required
> - update kmod list in szedata2 driver
> - remove kmod list in qat driver: it requires more than just loading
> a kmod, which is described in documentation
>
The per-device info is a nice addition to this feature.
Though for the reasons already described the qat driver dependencies are better
handled through documentation and scripts.
Acked-by: Fiona Trahe <fiona.trahe at intel.com>
More information about the dev
mailing list