summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2015-02-23 18:30:09 +0000
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-02-24 00:38:27 +0100
commit4dc294158cac46b6b69b60ff4216503777c5eb57 (patch)
treeb6fb0dfc13d8ff2af590aa7132d1a0d4b54a4891 /config
parent1a9a0b9b020ab5d93f4c3ceb617d7f5008aa94a2 (diff)
downloaddpdk-4dc294158cac.zip
dpdk-4dc294158cac.tar.gz
dpdk-4dc294158cac.tar.xz
ethdev: support optional Rx and Tx callbacks
Add optional support for inline processing of packets inside the RX or TX call. For an RX callback, what happens is that we get a set of packets from the NIC and then pass them to a callback function, if configured, to allow additional processing to be done on them, e.g. filling in more mbuf fields, before passing back to the application. On TX, the packets are similarly post-processed before being handed to the NIC for transmission. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: John McNamara <john.mcnamara@intel.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'config')
-rw-r--r--config/common_bsdapp1
-rw-r--r--config/common_linuxapp1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/common_bsdapp b/config/common_bsdapp
index 427ee7b..56c5372 100644
--- a/config/common_bsdapp
+++ b/config/common_bsdapp
@@ -133,6 +133,7 @@ CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=n
CONFIG_RTE_MAX_ETHPORTS=32
CONFIG_RTE_LIBRTE_IEEE1588=n
CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=16
+CONFIG_RTE_ETHDEV_RXTX_CALLBACKS=y
#
# Support NIC bypass logic
diff --git a/config/common_linuxapp b/config/common_linuxapp
index 0d66c34..fc29425 100644
--- a/config/common_linuxapp
+++ b/config/common_linuxapp
@@ -131,6 +131,7 @@ CONFIG_RTE_LIBRTE_ETHDEV_DEBUG=n
CONFIG_RTE_MAX_ETHPORTS=32
CONFIG_RTE_LIBRTE_IEEE1588=n
CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=16
+CONFIG_RTE_ETHDEV_RXTX_CALLBACKS=y
#
# Support NIC bypass logic