port: Eventdev port support added in the rte_port library
PATCH v2 1/1 port: Eventdev port support added in the rte_port library
Adding a new port type called eventdev to therte_port library.
Signed-off-by Rahul Shah <[email protected]>
--- lib/librte_port/Makefile | 4 +- lib/librte_port/meson.build | 8 +- lib/librte_port/rte_port_eventdev.c | 585 +++++++++++++++++++++++++++ lib/librte_port/rte_port_eventdev.h | 96 +++++ lib/librte_port/rte_port_version.map | 9 + 5 files changed, 698 insertions(+), 4 deletions(-) create mode 100644 lib/librte_port/rte_port_eventdev.c create mode 100644 lib/librte_port/rte_port_eventdev.h
lib/librte_port/Makefile +3 -1
@@ -11,7 +11,7 @@ ifeq ($(CONFIG_RTE_PORT_PCAP),y) LDLIBS += -lpcap endif LDLIBS += -lrte_eal -lrte_mempool -lrte_mbuf -lrte_ethdev -LDLIBS += -lrte_ip_frag -lrte_sched -lrte_cryptodev +LDLIBS += -lrte_ip_frag -lrte_sched -lrte_cryptodev -lrte_eventdev ifeq ($(CONFIG_RTE_LIBRTE_KNI),y) LDLIBS += -lrte_kni endif
@@ -39,6 +39,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_kni.c endif SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_source_sink.c SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_sym_crypto.c +SRCS-$(CONFIG_RTE_LIBRTE_PORT) += rte_port_eventdev.c # install includes SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port.h
@@ -55,5 +56,6 @@ SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_kni.h endif SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_source_sink.h SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_sym_crypto.h +SYMLINK-$(CONFIG_RTE_LIBRTE_PORT)-include += rte_port_eventdev.h include $(RTE_SDK)/mk/rte.lib.mk
lib/librte_port/meson.build +5 -3
@@ -10,7 +10,8 @@ sources = files( 'rte_port_ring.c', 'rte_port_sched.c', 'rte_port_source_sink.c', - 'rte_port_sym_crypto.c') + 'rte_port_sym_crypto.c', + 'rte_port_eventdev.c') headers = files( 'rte_port_ethdev.h', 'rte_port_fd.h',
@@ -20,8 +21,9 @@ headers = files( 'rte_port_ring.h', 'rte_port_sched.h', 'rte_port_source_sink.h', - 'rte_port_sym_crypto.h') -deps += ['ethdev', 'sched', 'ip_frag', 'cryptodev'] + 'rte_port_sym_crypto.h', + 'rte_port_eventdev.h') +deps += ['ethdev', 'sched', 'ip_frag', 'cryptodev', 'eventdev'] if dpdk_conf.has('RTE_LIBRTE_KNI') sources += files('rte_port_kni.c')
lib/librte_port/rte_port_eventdev.c new file +585 -0
585 lines not on this page · raw message
lib/librte_port/rte_port_eventdev.h new file +96 -0
96 lines not on this page · raw message
lib/librte_port/rte_port_version.map +9 -0
@@ -60,3 +60,12 @@ DPDK_18.11 { rte_port_sym_crypto_writer_nodrop_ops; } DPDK_16.11; + +EXPERIMENTAL { + global: + + rte_port_eventdev_reader_ops; + rte_port_eventdev_writer_ops; + rte_port_eventdev_writer_nodrop_ops; + +};
Signature · 1 line
2.20.1