net/i40e: add Tx preparation for simple Tx datapath
[dpdk.git] / drivers / net / i40e / i40e_rxtx.h
index 8f11f01..5ccf577 100644 (file)
@@ -24,6 +24,9 @@
 #define        I40E_MIN_RING_DESC      64
 #define        I40E_MAX_RING_DESC      4096
 
+#define I40E_FDIR_NUM_TX_DESC   (I40E_FDIR_PRG_PKT_CNT << 1)
+#define I40E_FDIR_NUM_RX_DESC   (I40E_FDIR_PRG_PKT_CNT << 1)
+
 #define I40E_MIN_TSO_MSS          256
 #define I40E_MAX_TSO_MSS          9674
 
@@ -126,6 +129,10 @@ struct i40e_tx_entry {
        uint16_t last_id;
 };
 
+struct i40e_vec_tx_entry {
+       struct rte_mbuf *mbuf;
+};
+
 /*
  * Structure associated with each TX queue.
  */
@@ -201,6 +208,8 @@ uint16_t i40e_recv_scattered_pkts(void *rx_queue,
 uint16_t i40e_xmit_pkts(void *tx_queue,
                        struct rte_mbuf **tx_pkts,
                        uint16_t nb_pkts);
+uint16_t i40e_simple_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
+                              uint16_t nb_pkts);
 uint16_t i40e_prep_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
                uint16_t nb_pkts);
 int i40e_tx_queue_init(struct i40e_tx_queue *txq);
@@ -245,6 +254,16 @@ uint16_t i40e_recv_scattered_pkts_vec_avx2(void *rx_queue,
        struct rte_mbuf **rx_pkts, uint16_t nb_pkts);
 uint16_t i40e_xmit_pkts_vec_avx2(void *tx_queue, struct rte_mbuf **tx_pkts,
        uint16_t nb_pkts);
+int i40e_get_monitor_addr(void *rx_queue, struct rte_power_monitor_cond *pmc);
+uint16_t i40e_recv_pkts_vec_avx512(void *rx_queue,
+                                  struct rte_mbuf **rx_pkts,
+                                  uint16_t nb_pkts);
+uint16_t i40e_recv_scattered_pkts_vec_avx512(void *rx_queue,
+                                            struct rte_mbuf **rx_pkts,
+                                            uint16_t nb_pkts);
+uint16_t i40e_xmit_pkts_vec_avx512(void *tx_queue,
+                                  struct rte_mbuf **tx_pkts,
+                                  uint16_t nb_pkts);
 
 /* For each value it means, datasheet of hardware can tell more details
  *