summaryrefslogtreecommitdiffstats
path: root/src/stateful_rx_core.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-12-20 14:58:30 +0200
committerimarom <imarom@cisco.com>2016-12-20 14:58:52 +0200
commitabc0cb8755084ad00e0dc3421f307b0405f54176 (patch)
treeb3d0a060c694b29124496c3b26df6ee414d474de /src/stateful_rx_core.h
parent211caa7b0018047c0ff5d94ac762b0799e995b7e (diff)
trex-312 ARP resolution does not work from console at virtual NICs
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/stateful_rx_core.h')
-rw-r--r--src/stateful_rx_core.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/stateful_rx_core.h b/src/stateful_rx_core.h
index 8744a58a..dac3f382 100644
--- a/src/stateful_rx_core.h
+++ b/src/stateful_rx_core.h
@@ -199,13 +199,23 @@ public:
class CPortLatencyHWBase {
- public:
- virtual int tx(rte_mbuf_t * m)=0;
- virtual rte_mbuf_t * rx()=0;
- virtual uint16_t rx_burst(struct rte_mbuf **rx_pkts,
- uint16_t nb_pkts){
- return(0);
- }
+public:
+
+ /**
+ * sends a packet
+ *
+ */
+ virtual int tx(rte_mbuf_t *m) = 0;
+
+ /**
+ * sends a latency packet
+ * if needed, timestamp will be updated
+ *
+ */
+ virtual int tx_latency(rte_mbuf_t *m) = 0;
+
+ virtual rte_mbuf_t * rx() = 0;
+ virtual uint16_t rx_burst(struct rte_mbuf **rx_pkts, uint16_t nb_pkts) = 0;
};