diff options
author | imarom <imarom@cisco.com> | 2016-12-20 14:58:30 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-12-20 14:58:52 +0200 |
commit | abc0cb8755084ad00e0dc3421f307b0405f54176 (patch) | |
tree | b3d0a060c694b29124496c3b26df6ee414d474de /src/stateful_rx_core.h | |
parent | 211caa7b0018047c0ff5d94ac762b0799e995b7e (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.h | 24 |
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; }; |