Skip to content

Commit

Permalink
Fix bug introduced by "From*Device: Add SCALE parameter"
Browse files Browse the repository at this point in the history
Fixes bug introduced by 4bed2b3
  • Loading branch information
piotrjurkiewicz authored and tbarbette committed Nov 26, 2018
1 parent 6b10967 commit 550c2d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion elements/userlevel/tonetmapdevice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ ToNetmapDevice::configure(Vector<String> &conf, ErrorHandler *errh)

if (Args(this, errh).bind(conf)
.read_mp("DEVNAME", ifname)
.complete() < 0)
.consume() < 0)
return -1;

if (parse(conf, errh) != 0)
return -1;

if (_internal_tx_queue_size < _burst * 2) {
return errh->error("IQUEUE (%d) must be at least twice the size of BURST (%d)!",_internal_tx_queue_size, _burst);
}
Expand Down

0 comments on commit 550c2d6

Please sign in to comment.