summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-04-30 13:08:12 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-04-30 13:11:03 +0200
commit190dc7879a1a8813f2332ee7b39b743a49ac2771 (patch)
tree57f6bb3fde75588a35bb2c0c0fb5b282ec35fd7c /trafgen.c
parent0ce9ef48153cf719c56894593bfb634cd4046647 (diff)
trafgen: Don't expose -k/--kernel-pull anymore and warn if it still used
The -k/--kernel-pull option got useless with commit c139e80 ("trafgen: remove timer-based trigger model"). Instead of entirely removing it and thus possibly breaking people's scripts, still accept it as an option, but warn the user about it. We might want to remove the option in a future release. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.c')
-rw-r--r--trafgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trafgen.c b/trafgen.c
index a3a5bb9..489ff53 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -56,7 +56,7 @@
struct ctx {
bool rand, rfraw, jumbo_support, verbose, smoke_test, enforce, qdisc_path;
- unsigned long kpull, num, reserve_size;
+ unsigned long num, reserve_size;
unsigned int cpus;
uid_t uid; gid_t gid;
char *device, *device_trans, *rhost;
@@ -156,7 +156,6 @@ static void __noreturn help(void)
" -P|--cpus <uint> Specify number of forks(<= CPUs) (def: #CPUs)\n"
" -t|--gap <time> Set approx. interpacket gap (s/ms/us/ns, def: us)\n"
" -S|--ring-size <size> Manually set mmap size (KiB/MiB/GiB)\n"
- " -k|--kernel-pull <uint> Kernel batch interval in us (def: 10us)\n"
" -E|--seed <uint> Manually set srand(3) seed\n"
" -u|--user <userid> Drop privileges and change to userid\n"
" -g|--group <groupid> Drop privileges and change to groupid\n"
@@ -946,7 +945,8 @@ int main(int argc, char **argv)
ctx.enforce = true;
break;
case 'k':
- ctx.kpull = strtoul(optarg, NULL, 0);
+ printf("Option -k/--kernel-pull is no longer used and "
+ "will be removed in a future release!\n");
break;
case 'E':
seed = strtoul(optarg, NULL, 0);