]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/net/ethernet/pensando/ionic/ionic_dev.h
ionic: Rework Tx start/stop flow
[thirdparty/kernel/stable.git] / drivers / net / ethernet / pensando / ionic / ionic_dev.h
index bfcfc2d7bcbd0cfbc79d7ddecd55ddfde6d04482..abe64086e8ca106666c271bd71759c4806feda7b 100644 (file)
@@ -19,6 +19,7 @@
 #define IONIC_DEF_TXRX_DESC            4096
 #define IONIC_RX_FILL_THRESHOLD                16
 #define IONIC_RX_FILL_DIV              8
+#define IONIC_TSO_DESCS_NEEDED         44 /* 64K TSO @1500B */
 #define IONIC_LIFS_MAX                 1024
 #define IONIC_WATCHDOG_SECS            5
 #define IONIC_ITR_COAL_USEC_DEFAULT    64
@@ -379,6 +380,7 @@ typedef void (*ionic_cq_done_cb)(void *done_arg);
 unsigned int ionic_cq_service(struct ionic_cq *cq, unsigned int work_to_do,
                              ionic_cq_cb cb, ionic_cq_done_cb done_cb,
                              void *done_arg);
+unsigned int ionic_tx_cq_service(struct ionic_cq *cq, unsigned int work_to_do);
 
 int ionic_q_init(struct ionic_lif *lif, struct ionic_dev *idev,
                 struct ionic_queue *q, unsigned int index, const char *name,