octeontx2-pf: Use hardware register for CQE count
[linux-2.6-microblaze.git] / drivers / net / ethernet / marvell / octeontx2 / nic / otx2_txrx.h
index 3ff1ad7..6a97631 100644 (file)
@@ -56,6 +56,9 @@
  */
 #define CQ_QCOUNT_DEFAULT      1
 
+#define CQ_OP_STAT_OP_ERR       63
+#define CQ_OP_STAT_CQ_ERR       46
+
 struct queue_stats {
        u64     bytes;
        u64     pkts;
@@ -122,6 +125,8 @@ struct otx2_cq_queue {
        u16                     pool_ptrs;
        u32                     cqe_cnt;
        u32                     cq_head;
+       u32                     cq_tail;
+       u32                     pend_cqe;
        void                    *cqe_base;
        struct qmem             *cqe;
        struct otx2_pool        *rbpool;