Commit 785624ea authored by Tom Barbette's avatar Tom Barbette

Small fixes

parent 947ccfff
Pipeline #1820 passed with stage
in 10 minutes and 14 seconds
......@@ -60,7 +60,6 @@ int FromDPDKDevice::configure(Vector<String> &conf, ErrorHandler *errh)
.read("MAC", mac).read_status(has_mac)
.read("MTU", mtu).read_status(has_mtu)
.read("MAXQUEUES",maxqueues)
.read("ACTIVE", _active)
.complete() < 0)
return -1;
......@@ -179,6 +178,9 @@ bool FromDPDKDevice::run_task(Task *t)
#else
SET_AGGREGATE_ANNO(p,pkts[i]->pkt.hash.rss);
#endif
if (_set_paint_anno) {
SET_PAINT_ANNO(p, iqueue);
}
#if HAVE_BATCH
if (head == NULL)
head = PacketBatch::start_head(p);
......@@ -286,9 +288,9 @@ String FromDPDKDevice::statistics_handler(Element *e, void *thunk)
return String(stats.imissed);
case h_ierrors:
return String(stats.ierrors);
default:
return "<unknown>";
}
return 0;
}
......@@ -414,8 +416,6 @@ void FromDPDKDevice::add_handlers()
add_read_handler("hw_dropped",statistics_handler, h_imissed);
add_read_handler("hw_errors",statistics_handler, h_ierrors);
add_write_handler("reset_counts", reset_count_handler, 0, Handler::BUTTON);
add_data_handlers("burst", Handler::h_read | Handler::h_write, &_burst);
}
......
......@@ -52,6 +52,7 @@ Args& QueueDevice::parse(Args &args) {
.read("MAXTHREADS", _maxthreads)
.read("BURST", _burst)
.read("VERBOSE", _verbose)
.read("ACTIVE", _active)
.read("ALLOW_NONEXISTENT", allow_nonexistent);
n_elements ++;
......
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