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,
if (retval)
d->flags |= I40E_AQ_FLAG_ERR;
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,
......
......@@ -458,8 +458,8 @@ void lan_queue_tx::tx_desc_ctx::prepare()
uint64_t d1 = d->cmd_type_offset_bsz;
#ifdef DEBUG_LAN
std::cerr << qname << ": desc fetched didx=" << index << " d1=" << d1 <<
std::endl;
std::cerr << queue.qname << ": desc fetched didx=" << index << " d1=" <<
d1 << std::endl;
#endif
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()
I40E_TXD_QW1_TX_BUF_SZ_SHIFT;
#ifdef DEBUG_LAN
std::cerr << qname << ": bufaddr=" << d->buffer_addr << " len=" <<
len << std::endl;
std::cerr << queue.qname << ": bufaddr=" << d->buffer_addr <<
" len=" << len << std::endl;
#endif
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