numam-dpdk/mk
Neil Horman 61934c0956 ring: convert to use of PMD_REGISTER_DRIVER and fix linking
Convert the ring driver to use the PMD_REGISTER_DRIVER macro and fix up the
Makefile so that its linkage is only done if we are building static libraries.
This means that the test applications now have no reference to the ring library
when building DSO's and must specify its use on the command line with the -d
option.  Static linking will still initalize the driver automatically.

Note that the ring driver was also written in such a way that it violated some
general layering principles, several functions were contained in the pmd which
were being called by example from the test application in the app/test
directory.  Specifically it was calling eth_ring_pair_attach,
eth_ring_pair_create and rte_eth_ring_devinit, which should only be called
internally to the dpdk core library.  To correct this I've removed those
functions, and instead allowed them to be called indirectly at initalization
time using the vdev command line argument key nodeaction=<name>:<node>:<action>
where action is one of ATTACH or CREATE.  I've tested out the functionality of
the command line with the testpmd utility, with success, and have removed the
called functions from the test utility.  This will affect how the test utility
is invoked (the -d and --vdev option will need to be specified on the command
line now), but honestly, given the way it was coded, I think the testing of the
ring pmd was not the best example of how to code with dpdk to begin with.  I
have also left the two layer violating functions in place, so as not to break
existing applications, but added deprecation warnings to them so that apps can
migrate off them.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-05-20 14:28:16 +02:00
..
arch add FreeBSD support 2014-02-25 21:29:18 +01:00
exec-env eal: add support for shared object drivers 2014-02-26 11:01:13 +01:00
internal mk: fix build ignoring other installed versions 2014-05-01 22:57:47 +02:00
machine mk: add haswell target 2014-02-25 21:29:18 +01:00
target/generic pcap: revert build patches 2014-03-19 14:33:52 +01:00
toolchain mk: add haswell target 2014-02-25 21:29:18 +01:00
rte.app.mk ring: convert to use of PMD_REGISTER_DRIVER and fix linking 2014-05-20 14:28:16 +02:00
rte.bsdmodule.mk mk: use the Q variable instead of @ for bsd module 2014-04-30 01:28:18 +02:00
rte.cpuflags.mk mk: rework cpu flags detection 2014-02-25 21:29:18 +01:00
rte.extapp.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.extlib.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.extobj.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.extshared.mk mk: allow to build shared libraries 2014-02-26 11:01:13 +01:00
rte.extsubdir.mk mk: introduce rte.extsubdir.mk for projects with subdirectories 2014-05-16 13:28:21 +02:00
rte.extvars.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.gnuconfigure.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.hostapp.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.hostlib.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.install.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.lib.mk mk: fix -share option error 2014-04-30 01:28:18 +02:00
rte.module.mk mk: pass CROSS_COMPILE when compiling kernel modules 2014-04-17 14:00:21 +02:00
rte.obj.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.sdkbuild.mk mk: add missing scripts directory in install directory 2014-05-16 13:25:48 +02:00
rte.sdkconfig.mk version: 1.7.0-rc0 2014-05-13 10:11:17 +02:00
rte.sdkdepdirs.mk mk: fix dependencies when modifying config 2014-03-26 23:10:41 +01:00
rte.sdkdoc.mk mk: rule help 2014-02-26 11:01:13 +01:00
rte.sdkexamples.mk mk: add "make examples" target in root makefile 2014-05-16 16:02:55 +02:00
rte.sdkgcov.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.sdkinstall.mk mk: in install rule, don't overwrite .config if it already exists 2014-02-26 11:01:13 +01:00
rte.sdkroot.mk mk: add "make examples" target in root makefile 2014-05-16 16:02:55 +02:00
rte.sdktest.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.sdktestall.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.shared.mk mk: fix build ignoring other installed versions 2014-05-01 22:57:47 +02:00
rte.sharelib.mk mk: fix -share option error 2014-04-30 01:28:18 +02:00
rte.subdir.mk update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
rte.vars.mk config: fix combined/shared lib 2014-02-25 21:29:18 +01:00