Commit c1489c38 authored by Vikram Narayanan's avatar Vikram Narayanan

test_mods/nullnet: Enable support for iperf3

parent a9e68a39
......@@ -80,7 +80,7 @@ struct skbuff_members {
#define CONSUME_SKB_SEND_ONLY
#define CONSUME_SKB_NO_HASHING
//#define SENDER_DISPATCH_LOOP
#define SENDER_DISPATCH_LOOP
//#define NO_AWE
//#define NO_HASHING
......
......@@ -76,7 +76,9 @@ int setup_once(struct trampoline_hidden_args *hidden_args)
} else if(!strncmp(current->comm, "iperf",
strlen("iperf")) ||
!strncmp(current->comm, "netperf",
strlen("netperf"))) {
strlen("netperf")) ||
!strncmp(current->comm, "lt-iperf3",
strlen("lt-iperf3"))) {
prep_channel(hidden_args);
printk("===================================\n");
......@@ -433,6 +435,8 @@ free:
#ifndef SENDER_DISPATCH_LOOP
dev_kfree_skb(skb);
#endif
g_stats.tx_packets += 1;
g_stats.tx_bytes += skb->len;
return NETDEV_TX_OK;
}
......
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