Add rte_node ethdev_tx process function and register it to graph infra. This node has a specific (port, tx-queue) as context and it enqueue's all the packets received to that specific queue pair. When rte_eth_tx_burst() i.e enqueue to queue pair fails, packets are forwarded to pkt_drop node to be free'd. Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
25 lines
639 B
Makefile
25 lines
639 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(C) 2020 Marvell International Ltd.
|
|
#
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
# library name
|
|
LIB = librte_node.a
|
|
|
|
CFLAGS += -O3
|
|
CFLAGS += $(WERROR_FLAGS)
|
|
# Strict-aliasing rules are violated by uint8_t[] to context size casts.
|
|
CFLAGS += -fno-strict-aliasing
|
|
LDLIBS += -lrte_eal -lrte_graph -lrte_mbuf -lrte_ethdev
|
|
|
|
EXPORT_MAP := rte_node_version.map
|
|
|
|
# all source are stored in SRCS-y
|
|
SRCS-$(CONFIG_RTE_LIBRTE_NODE) += null.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_NODE) += log.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_NODE) += ethdev_rx.c
|
|
SRCS-$(CONFIG_RTE_LIBRTE_NODE) += ethdev_tx.c
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|