numam-dpdk/app/test
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
..
autotest_data.py app/test: fixes to python control script 2014-02-26 10:22:33 +01:00
autotest_runner.py update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
autotest_test_funcs.py update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
autotest.py update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
commands.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
Makefile devargs: introduce API and test 2014-04-10 14:58:34 +02:00
process.h xen: core library changes 2014-02-25 21:29:19 +01:00
test_acl.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_acl.h app/test: minor cleanup in test_acl 2014-02-26 10:22:33 +01:00
test_alarm.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_atomic.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_byteorder.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_cmdline_cirbuf.c update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
test_cmdline_etheraddr.c update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
test_cmdline_ipaddr.c add FreeBSD support 2014-02-25 21:29:18 +01:00
test_cmdline_lib.c update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
test_cmdline_num.c eal: don't inline string functions 2014-05-16 16:02:55 +02:00
test_cmdline_portlist.c update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
test_cmdline_string.c update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
test_cmdline.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_cmdline.h update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
test_common.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_cpuflags.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_cycles.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_debug.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_devargs.c devargs: use a comma instead of semicolon to separate key/values 2014-04-10 15:50:11 +02:00
test_eal_flags.c devargs: replace --use-device option by --pci-whitelist and --vdev 2014-04-10 15:50:34 +02:00
test_eal_fs.c eal: don't inline string functions 2014-05-16 16:02:55 +02:00
test_errno.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_func_reentrancy.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_hash_perf.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_hash.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_interrupts.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_ivshmem.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_kni.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_kvargs.c devargs: use a comma instead of semicolon to separate key/values 2014-04-10 15:50:11 +02:00
test_logs.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_lpm6_routes.h get rid of DOS format end of lines 2014-03-20 16:17:57 +01:00
test_lpm6.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_lpm_routes.h update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
test_lpm.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_malloc.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_mbuf.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_memcpy_perf.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_memcpy.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_memory.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_mempool_perf.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_mempool.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_memzone.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_meter.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_mp_secondary.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_pci.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_per_lcore.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_pmd_ring.c ring: convert to use of PMD_REGISTER_DRIVER and fix linking 2014-05-20 14:28:16 +02:00
test_power.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_prefetch.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_red.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_ring_perf.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_ring.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_rwlock.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_sched.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_spinlock.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_string_fns.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_tailq.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test_timer_perf.c app/test: conditionalize on timer enabled 2014-02-26 10:22:33 +01:00
test_timer.c add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
test_version.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test.c app/test: fix build without librte_cmdline 2014-02-26 11:07:29 +01:00
test.h devargs: introduce API and test 2014-04-10 14:58:34 +02:00