From 190dc7879a1a8813f2332ee7b39b743a49ac2771 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 30 Apr 2014 13:08:12 +0200 Subject: 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 --- trafgen.8 | 5 ----- trafgen.c | 6 +++--- trafgen.zsh | 1 - 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/trafgen.8 b/trafgen.8 index 6011126..6f4b806 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -136,11 +136,6 @@ gaps. Manually define the TX_RING resp. TX_RING size in ''KiB/MiB/GiB''. On default the size is being determined based on the network connectivity rate. .PP -.SS -k , --kernel-pull -Manually define the interval in micro-seconds where the kernel should be triggered -to batch process the ring buffer frames. By default, it is every 10us, but it can -manually be prolonged, for instance.. -.PP .SS -E , --seed Manually set the seed for pseudo random number generator (PRNG) in trafgen. By default, a random seed from /dev/urandom is used to feed glibc's PRNG. If that 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 Specify number of forks(<= CPUs) (def: #CPUs)\n" " -t|--gap