Commit 0ceb071a authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

i40e: improve debug info

parent 53f33def
...@@ -66,6 +66,11 @@ void queue_admin_tx::admin_desc_ctx::desc_compl_prepare(uint16_t retval, ...@@ -66,6 +66,11 @@ void queue_admin_tx::admin_desc_ctx::desc_compl_prepare(uint16_t retval,
if (retval) if (retval)
d->flags |= I40E_AQ_FLAG_ERR; d->flags |= I40E_AQ_FLAG_ERR;
d->retval = retval; d->retval = retval;
#ifdef DEBUG_ADMINQ
std::cerr << "atq: desc_compl_prepare index=" << index << " retval=" <<
retval << std::endl;
#endif
} }
void queue_admin_tx::admin_desc_ctx::desc_complete(uint16_t retval, void queue_admin_tx::admin_desc_ctx::desc_complete(uint16_t retval,
......
...@@ -458,8 +458,8 @@ void lan_queue_tx::tx_desc_ctx::prepare() ...@@ -458,8 +458,8 @@ void lan_queue_tx::tx_desc_ctx::prepare()
uint64_t d1 = d->cmd_type_offset_bsz; uint64_t d1 = d->cmd_type_offset_bsz;
#ifdef DEBUG_LAN #ifdef DEBUG_LAN
std::cerr << qname << ": desc fetched didx=" << index << " d1=" << d1 << std::cerr << queue.qname << ": desc fetched didx=" << index << " d1=" <<
std::endl; d1 << std::endl;
#endif #endif
uint8_t dtype = (d1 & I40E_TXD_QW1_DTYPE_MASK) >> I40E_TXD_QW1_DTYPE_SHIFT; uint8_t dtype = (d1 & I40E_TXD_QW1_DTYPE_MASK) >> I40E_TXD_QW1_DTYPE_SHIFT;
...@@ -468,8 +468,8 @@ void lan_queue_tx::tx_desc_ctx::prepare() ...@@ -468,8 +468,8 @@ void lan_queue_tx::tx_desc_ctx::prepare()
I40E_TXD_QW1_TX_BUF_SZ_SHIFT; I40E_TXD_QW1_TX_BUF_SZ_SHIFT;
#ifdef DEBUG_LAN #ifdef DEBUG_LAN
std::cerr << qname << ": bufaddr=" << d->buffer_addr << " len=" << std::cerr << queue.qname << ": bufaddr=" << d->buffer_addr <<
len << std::endl; " len=" << len << std::endl;
#endif #endif
data_fetch(d->buffer_addr, len); data_fetch(d->buffer_addr, len);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment