Skip to content
Extraits de code Groupes Projets
Valider 6a64b153 rédigé par Tom Barbette's avatar Tom Barbette
Parcourir les fichiers

FastUDPFlows: Add burst parameter

parent b20822f4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -69,6 +69,7 @@ FastUDPFlows::configure(Vector<String> &conf, ErrorHandler *errh) ...@@ -69,6 +69,7 @@ FastUDPFlows::configure(Vector<String> &conf, ErrorHandler *errh)
.read_mp("DSTIP", _dipaddr) .read_mp("DSTIP", _dipaddr)
.read_mp("FLOWS", _nflows) .read_mp("FLOWS", _nflows)
.read_mp("FLOWSIZE", _flowsize) .read_mp("FLOWSIZE", _flowsize)
.read_or_set("BURST", _burst, 32)
.read_or_set("FLOWBURST", _flowburst, 1) .read_or_set("FLOWBURST", _flowburst, 1)
.read_or_set("CHECKSUM", _cksum, true) .read_or_set("CHECKSUM", _cksum, true)
.read_or_set("SEQUENTIAL", _sequential, false) .read_or_set("SEQUENTIAL", _sequential, false)
...@@ -203,7 +204,7 @@ FastUDPFlows::run_task(Task* t) { ...@@ -203,7 +204,7 @@ FastUDPFlows::run_task(Task* t) {
} }
#if HAVE_BATCH #if HAVE_BATCH
if (in_batch_mode) { if (in_batch_mode) {
const unsigned int max = 32; const unsigned int max = _burst;
PacketBatch *batch; PacketBatch *batch;
MAKE_BATCH(get_p(), batch, max); MAKE_BATCH(get_p(), batch, max);
if (likely(batch)) { if (likely(batch)) {
......
...@@ -105,6 +105,7 @@ class FastUDPFlows : public BatchElement { ...@@ -105,6 +105,7 @@ class FastUDPFlows : public BatchElement {
unsigned int _nflows; unsigned int _nflows;
unsigned int _flowsize; unsigned int _flowsize;
unsigned int _flowburst; unsigned int _flowburst;
unsigned int _burst;
bool _cksum; bool _cksum;
bool _sequential; bool _sequential;
bool _duplicate; bool _duplicate;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter