mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
dpdk: Update to use DPDK 19.11.
This commit adds support for DPDK v19.11, it includes the following changes. 1. travis: Enable compilation and linkage with dpdk 19.11. 2. sparse: Remove dpdk network headers copies. https://patchwork.ozlabs.org/patch/1185256/ 3. dpdk: Migrate to new PDUMP API. https://patchwork.ozlabs.org/patch/1192971/ 4. netdev-dpdk: Prefix network structures with rte_. https://patchwork.ozlabs.org/patch/1109733/ 5. netdev-dpdk: Update by new color definitions. https://patchwork.ozlabs.org/patch/1086089/ 6. docs: Update docs to reference 19.11. 7. docs: Add note regarding hotplug and igb_uio requirements. For credit all authors of the original commits to 'dpdk-latest' with the above changes been added as co-authors for this commmit. Signed-off-by: David Marchand <david.marchand@redhat.com> Co-authored-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Co-authored-by: Ilya Maximets <i.maximets@ovn.org> Signed-off-by: Ophir Munk <ophirmu@mellanox.com> Co-authored-by: Ophir Munk <ophirmu@mellanox.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Acked-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Kevin Traynor <ktraynor@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
12
lib/dpdk.c
12
lib/dpdk.c
@@ -27,7 +27,6 @@
|
||||
#include <rte_memzone.h>
|
||||
#include <rte_version.h>
|
||||
#ifdef DPDK_PDUMP
|
||||
#include <rte_mempool.h>
|
||||
#include <rte_pdump.h>
|
||||
#endif
|
||||
|
||||
@@ -433,20 +432,11 @@ dpdk_init__(const struct smap *ovs_other_config)
|
||||
RTE_PER_LCORE(_lcore_id) = NON_PMD_CORE_ID;
|
||||
|
||||
#ifdef DPDK_PDUMP
|
||||
VLOG_INFO("DPDK pdump packet capture enabled");
|
||||
VLOG_WARN("DPDK pdump support is deprecated and "
|
||||
"will be removed in next OVS releases.");
|
||||
err = rte_pdump_init(ovs_rundir());
|
||||
err = rte_pdump_init();
|
||||
if (err) {
|
||||
VLOG_INFO("Error initialising DPDK pdump");
|
||||
rte_pdump_uninit();
|
||||
} else {
|
||||
char *server_socket_path;
|
||||
|
||||
server_socket_path = xasprintf("%s/%s", ovs_rundir(),
|
||||
"pdump_server_socket");
|
||||
fatal_signal_add_file_to_unlink(server_socket_path);
|
||||
free(server_socket_path);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user