Commit eaf605fd authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

i40e_bm: richer debugging prints for queues

parent b72a84ff
...@@ -40,10 +40,11 @@ void lan::reset() ...@@ -40,10 +40,11 @@ void lan::reset()
void lan::qena_updated(uint16_t idx, bool rx) void lan::qena_updated(uint16_t idx, bool rx)
{ {
uint32_t &reg = (rx ? dev.regs.qrx_ena[idx] : dev.regs.qtx_ena[idx]);
#ifdef DEBUG_LAN #ifdef DEBUG_LAN
log << " qena updated idx=" << idx << " rx=" << rx << logger::endl; log << " qena updated idx=" << idx << " rx=" << rx << " reg=" << reg <<
logger::endl;
#endif #endif
uint32_t &reg = (rx ? dev.regs.qrx_ena[idx] : dev.regs.qtx_ena[idx]);
lan_queue_base &q = (rx ? static_cast<lan_queue_base &>(*rxqs[idx]) : lan_queue_base &q = (rx ? static_cast<lan_queue_base &>(*rxqs[idx]) :
static_cast<lan_queue_base &>(*txqs[idx])); static_cast<lan_queue_base &>(*txqs[idx]));
...@@ -102,6 +103,9 @@ bool lan::rss_steering(const void *data, size_t len, uint16_t &queue, ...@@ -102,6 +103,9 @@ bool lan::rss_steering(const void *data, size_t len, uint16_t &queue,
128 : 512); 128 : 512);
uint16_t idx = hash % luts; uint16_t idx = hash % luts;
queue = (dev.regs.pfqf_hlut[idx / 4] >> (8 * (idx % 4))) & 0x3f; queue = (dev.regs.pfqf_hlut[idx / 4] >> (8 * (idx % 4))) & 0x3f;
#ifdef DEBUG_LAN
log << " q=" << queue << " h=" << hash << " i=" << idx << logger::endl;
#endif
return true; return true;
} }
......
...@@ -164,6 +164,10 @@ void queue_base::reset() ...@@ -164,6 +164,10 @@ void queue_base::reset()
void queue_base::reg_updated() void queue_base::reg_updated()
{ {
#ifdef DEBUG_QUEUES
log << "reg_updated: tail=" << reg_tail << " enabled=" << (int) enabled <<
logger::endl;
#endif
if (!enabled) if (!enabled)
return; return;
......
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