net/enic: expand local Tx mbuf flags variable to 64-bits
[dpdk.git] / drivers / net / enic / enic_rxtx.c
index 243efe6..08ab630 100644 (file)
@@ -37,7 +37,6 @@
 #include "enic_compat.h"
 #include "rq_enet_desc.h"
 #include "enic.h"
-#include "enic_vnic_wq.h"
 
 #define RTE_PMD_USE_PREFETCH
 
@@ -344,6 +343,7 @@ static inline void enic_free_wq_bufs(struct vnic_wq *wq, u16 completed_index)
                buf = &wq->bufs[tail_idx];
                m = (struct rte_mbuf *)(buf->mb);
                if (likely(m->pool == pool)) {
+                       ENIC_ASSERT(nb_free < ENIC_MAX_WQ_DESCS);
                        free[nb_free++] = m;
                } else {
                        rte_mempool_put_bulk(pool, (void *)free, nb_free);
@@ -384,7 +384,7 @@ uint16_t enic_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts,
        struct vnic_wq *wq = (struct vnic_wq *)tx_queue;
        struct enic *enic = vnic_dev_priv(wq->vdev);
        unsigned short vlan_id;
-       unsigned short ol_flags;
+       uint64_t ol_flags;
        unsigned int wq_desc_avail;
        int head_idx;
        struct vnic_wq_buf *buf;