net/tap: add preliminary support for flow API
[dpdk.git] / drivers / net / tap / rte_eth_tap.h
index aafdef1..bf82267 100644 (file)
@@ -34,6 +34,7 @@
 #ifndef _RTE_ETH_TAP_H_
 #define _RTE_ETH_TAP_H_
 
+#include <sys/queue.h>
 #include <inttypes.h>
 
 #include <rte_ethdev.h>
@@ -68,6 +69,7 @@ struct pmd_internals {
        struct ether_addr eth_addr;       /* Mac address of the device port */
        int if_index;                     /* IF_INDEX for the port */
        int ioctl_sock;                   /* socket for ioctl calls */
+       LIST_HEAD(tap_flows, rte_flow) flows;        /* rte_flow rules */
        struct rx_queue rxq[RTE_PMD_TAP_MAX_QUEUES]; /* List of RX queues */
        struct tx_queue txq[RTE_PMD_TAP_MAX_QUEUES]; /* List of TX queues */
 };