net/cxgbe: support flow API for matching QinQ VLAN
[dpdk.git] / drivers / net / dpaa2 / dpaa2_ethdev.h
index b51c35f..95674b2 100644 (file)
@@ -22,6 +22,7 @@
 #define MAX_TCS                        DPNI_MAX_TC
 #define MAX_RX_QUEUES          128
 #define MAX_TX_QUEUES          16
+#define MAX_DPNI               8
 
 /*default tc to be used for ,congestion, distribution etc configuration. */
 #define DPAA2_DEF_TC           0
@@ -131,6 +132,9 @@ struct dpaa2_dev_priv {
                uint64_t fs_extract_param[MAX_TCS];
        } extract;
 
+       uint16_t ss_offset;
+       uint64_t ss_iova;
+       uint64_t ss_param_iova;
 #if defined(RTE_LIBRTE_IEEE1588)
        /*stores timestamp of last received packet on dev*/
        uint64_t rx_timestamp;
@@ -141,6 +145,9 @@ struct dpaa2_dev_priv {
         */
        struct dpaa2_queue *next_tx_conf_queue;
 #endif
+
+       struct rte_eth_dev *eth_dev; /**< Pointer back to holding ethdev */
+
        LIST_HEAD(, rte_flow) flows; /**< Configured flow rule handles. */
 };
 
@@ -157,7 +164,7 @@ int dpaa2_attach_bp_list(struct dpaa2_dev_priv *priv, void *blist);
 
 int dpaa2_eth_eventq_attach(const struct rte_eth_dev *dev,
                int eth_rx_queue_id,
-               uint16_t dpcon_id,
+               struct dpaa2_dpcon_dev *dpcon,
                const struct rte_event_eth_rx_adapter_queue_conf *queue_conf);
 
 int dpaa2_eth_eventq_detach(const struct rte_eth_dev *dev,