net/octeontx2: add Tx multi segment version
[dpdk.git] / drivers / net / octeontx2 / otx2_ethdev.h
index 22cf869..f39fdfa 100644 (file)
 #define NIX_TX_NB_SEG_MAX              9
 #endif
 
+#define NIX_TX_MSEG_SG_DWORDS                          \
+       ((RTE_ALIGN_MUL_CEIL(NIX_TX_NB_SEG_MAX, 3) / 3) \
+        + NIX_TX_NB_SEG_MAX)
+
 /* Apply BP when CQ is 75% full */
 #define NIX_CQ_BP_LEVEL (25 * 256 / 100)
 
@@ -484,6 +488,7 @@ int otx2_ethdev_parse_devargs(struct rte_devargs *devargs,
 
 /* Rx and Tx routines */
 void otx2_eth_set_rx_function(struct rte_eth_dev *eth_dev);
+void otx2_eth_set_tx_function(struct rte_eth_dev *eth_dev);
 void otx2_nix_form_default_desc(struct otx2_eth_txq *txq);
 
 /* Timesync - PTP routines */