]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/dpaa2/dpaa2_rxtx.c
net/dpaa2: add link status config support
[dpdk.git] / drivers / net / dpaa2 / dpaa2_rxtx.c
index 30125ebde480c3d72ce777784345283f782916b1..e4bf14a0caa639efd01d738efdf13439ad96368e 100644 (file)
@@ -458,3 +458,28 @@ dpaa2_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 skip_tx:
        return num_tx;
 }
+
+/**
+ * Dummy DPDK callback for TX.
+ *
+ * This function is used to temporarily replace the real callback during
+ * unsafe control operations on the queue, or in case of error.
+ *
+ * @param dpdk_txq
+ *   Generic pointer to TX queue structure.
+ * @param[in] pkts
+ *   Packets to transmit.
+ * @param pkts_n
+ *   Number of packets in array.
+ *
+ * @return
+ *   Number of packets successfully transmitted (<= pkts_n).
+ */
+uint16_t
+dummy_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
+{
+       (void)queue;
+       (void)bufs;
+       (void)nb_pkts;
+       return 0;
+}