eventdev: add eth Tx adapter implementation
This patch implements the Tx adapter APIs by invoking the corresponding eventdev PMD callbacks and also provides the common rte_service function based implementation when the eventdev PMD support is absent. Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
This commit is contained in:
parent
c662a950f4
commit
a3bbf2e097
@ -602,6 +602,7 @@ CONFIG_RTE_EVENT_MAX_QUEUES_PER_DEV=64
|
|||||||
CONFIG_RTE_EVENT_TIMER_ADAPTER_NUM_MAX=32
|
CONFIG_RTE_EVENT_TIMER_ADAPTER_NUM_MAX=32
|
||||||
CONFIG_RTE_EVENT_ETH_INTR_RING_SIZE=1024
|
CONFIG_RTE_EVENT_ETH_INTR_RING_SIZE=1024
|
||||||
CONFIG_RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE=32
|
CONFIG_RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE=32
|
||||||
|
CONFIG_RTE_EVENT_ETH_TX_ADAPTER_MAX_INSTANCE=32
|
||||||
|
|
||||||
#
|
#
|
||||||
# Compile PMD for skeleton event device
|
# Compile PMD for skeleton event device
|
||||||
|
@ -69,6 +69,7 @@
|
|||||||
#define RTE_EVENT_TIMER_ADAPTER_NUM_MAX 32
|
#define RTE_EVENT_TIMER_ADAPTER_NUM_MAX 32
|
||||||
#define RTE_EVENT_ETH_INTR_RING_SIZE 1024
|
#define RTE_EVENT_ETH_INTR_RING_SIZE 1024
|
||||||
#define RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE 32
|
#define RTE_EVENT_CRYPTO_ADAPTER_MAX_INSTANCE 32
|
||||||
|
#define RTE_EVENT_ETH_TX_ADAPTER_MAX_INSTANCE 32
|
||||||
|
|
||||||
/* rawdev defines */
|
/* rawdev defines */
|
||||||
#define RTE_RAWDEV_MAX_DEVS 10
|
#define RTE_RAWDEV_MAX_DEVS 10
|
||||||
|
@ -28,6 +28,7 @@ SRCS-y += rte_event_ring.c
|
|||||||
SRCS-y += rte_event_eth_rx_adapter.c
|
SRCS-y += rte_event_eth_rx_adapter.c
|
||||||
SRCS-y += rte_event_timer_adapter.c
|
SRCS-y += rte_event_timer_adapter.c
|
||||||
SRCS-y += rte_event_crypto_adapter.c
|
SRCS-y += rte_event_crypto_adapter.c
|
||||||
|
SRCS-y += rte_event_eth_tx_adapter.c
|
||||||
|
|
||||||
# export include files
|
# export include files
|
||||||
SYMLINK-y-include += rte_eventdev.h
|
SYMLINK-y-include += rte_eventdev.h
|
||||||
@ -39,6 +40,7 @@ SYMLINK-y-include += rte_event_eth_rx_adapter.h
|
|||||||
SYMLINK-y-include += rte_event_timer_adapter.h
|
SYMLINK-y-include += rte_event_timer_adapter.h
|
||||||
SYMLINK-y-include += rte_event_timer_adapter_pmd.h
|
SYMLINK-y-include += rte_event_timer_adapter_pmd.h
|
||||||
SYMLINK-y-include += rte_event_crypto_adapter.h
|
SYMLINK-y-include += rte_event_crypto_adapter.h
|
||||||
|
SYMLINK-y-include += rte_event_eth_tx_adapter.h
|
||||||
|
|
||||||
# versioning export map
|
# versioning export map
|
||||||
EXPORT_MAP := rte_eventdev_version.map
|
EXPORT_MAP := rte_eventdev_version.map
|
||||||
|
@ -14,7 +14,8 @@ sources = files('rte_eventdev.c',
|
|||||||
'rte_event_ring.c',
|
'rte_event_ring.c',
|
||||||
'rte_event_eth_rx_adapter.c',
|
'rte_event_eth_rx_adapter.c',
|
||||||
'rte_event_timer_adapter.c',
|
'rte_event_timer_adapter.c',
|
||||||
'rte_event_crypto_adapter.c')
|
'rte_event_crypto_adapter.c',
|
||||||
|
'rte_event_eth_tx_adapter.c')
|
||||||
headers = files('rte_eventdev.h',
|
headers = files('rte_eventdev.h',
|
||||||
'rte_eventdev_pmd.h',
|
'rte_eventdev_pmd.h',
|
||||||
'rte_eventdev_pmd_pci.h',
|
'rte_eventdev_pmd_pci.h',
|
||||||
@ -23,5 +24,6 @@ headers = files('rte_eventdev.h',
|
|||||||
'rte_event_eth_rx_adapter.h',
|
'rte_event_eth_rx_adapter.h',
|
||||||
'rte_event_timer_adapter.h',
|
'rte_event_timer_adapter.h',
|
||||||
'rte_event_timer_adapter_pmd.h',
|
'rte_event_timer_adapter_pmd.h',
|
||||||
'rte_event_crypto_adapter.h')
|
'rte_event_crypto_adapter.h',
|
||||||
|
'rte_event_eth_tx_adapter.h')
|
||||||
deps += ['ring', 'ethdev', 'hash', 'mempool', 'mbuf', 'timer', 'cryptodev']
|
deps += ['ring', 'ethdev', 'hash', 'mempool', 'mbuf', 'timer', 'cryptodev']
|
||||||
|
1138
lib/librte_eventdev/rte_event_eth_tx_adapter.c
Normal file
1138
lib/librte_eventdev/rte_event_eth_tx_adapter.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -97,6 +97,18 @@ EXPERIMENTAL {
|
|||||||
rte_event_crypto_adapter_stop;
|
rte_event_crypto_adapter_stop;
|
||||||
rte_event_eth_rx_adapter_cb_register;
|
rte_event_eth_rx_adapter_cb_register;
|
||||||
rte_event_port_unlinks_in_progress;
|
rte_event_port_unlinks_in_progress;
|
||||||
|
rte_event_eth_tx_adapter_caps_get;
|
||||||
|
rte_event_eth_tx_adapter_create;
|
||||||
|
rte_event_eth_tx_adapter_create_ext;
|
||||||
|
rte_event_eth_tx_adapter_event_port_get;
|
||||||
|
rte_event_eth_tx_adapter_free;
|
||||||
|
rte_event_eth_tx_adapter_queue_add;
|
||||||
|
rte_event_eth_tx_adapter_queue_del;
|
||||||
|
rte_event_eth_tx_adapter_service_id_get;
|
||||||
|
rte_event_eth_tx_adapter_start;
|
||||||
|
rte_event_eth_tx_adapter_stats_get;
|
||||||
|
rte_event_eth_tx_adapter_stats_reset;
|
||||||
|
rte_event_eth_tx_adapter_stop;
|
||||||
rte_event_timer_adapter_caps_get;
|
rte_event_timer_adapter_caps_get;
|
||||||
rte_event_timer_adapter_create;
|
rte_event_timer_adapter_create;
|
||||||
rte_event_timer_adapter_create_ext;
|
rte_event_timer_adapter_create_ext;
|
||||||
|
Loading…
Reference in New Issue
Block a user