summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2016-12-15 14:46:39 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-12-20 18:26:00 +0100
commit0880c40113ef2d69b6433d7dfa0b4032cc378b0d (patch)
tree3a0ebae1f266890558d5522d06884bee8cc7bbed /buildtools
parentbcb5b1af485bc2c3c327a5550cb3ca0f3d5c768b (diff)
downloaddpdk-next-eventdev-0880c40113ef2d69b6433d7dfa0b4032cc378b0d.zip
dpdk-next-eventdev-0880c40113ef2d69b6433d7dfa0b4032cc378b0d.tar.gz
dpdk-next-eventdev-0880c40113ef2d69b6433d7dfa0b4032cc378b0d.tar.xz
drivers: advertise kmod dependencies in pmdinfo
Add a new macro RTE_PMD_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@6wind.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/pmdinfogen/pmdinfogen.c1
-rw-r--r--buildtools/pmdinfogen/pmdinfogen.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/pmdinfogen/pmdinfogen.c b/buildtools/pmdinfogen/pmdinfogen.c
index 59ab956..5129c57 100644
--- a/buildtools/pmdinfogen/pmdinfogen.c
+++ b/buildtools/pmdinfogen/pmdinfogen.c
@@ -269,6 +269,7 @@ struct opt_tag {
static const struct opt_tag opt_tags[] = {
{"_param_string_export", "params"},
+ {"_kmod_dep_export", "kmod"},
};
static int complete_pmd_entry(struct elf_info *info, struct pmd_driver *drv)
diff --git a/buildtools/pmdinfogen/pmdinfogen.h b/buildtools/pmdinfogen/pmdinfogen.h
index e9eabff..27bab30 100644
--- a/buildtools/pmdinfogen/pmdinfogen.h
+++ b/buildtools/pmdinfogen/pmdinfogen.h
@@ -89,6 +89,7 @@ else \
enum opt_params {
PMD_PARAM_STRING = 0,
+ PMD_KMOD_DEP,
PMD_OPT_MAX
};