summaryrefslogtreecommitdiff
path: root/csum.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-03-31 12:29:58 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-03-31 17:28:49 +0200
commit48097ae5585c856ce676baa006dd018f86eda565 (patch)
tree0c3a47d2490a9a51fd09f40da2a99d7172faf7a0 /csum.h
parent2d76b0b011d451eac6dd08645e5958a25c4b8944 (diff)
trafgen: Alloc cpus according to specified number of packets
Trafgen uses all the online CPUs even if the number of packets specified by -n is less than the number of selected CPUs. Such behaviour leads to issues: - trafgen re-calculates number of packets per CPU which leads to rounding it to 0 then no packets will be sent. - trafgen might send more packets than specified by -n because of using all the online cpus. Fixed by taking min(#CPUs, #packets) as the number of CPUs if a number of packets is specified by -n. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> [tklauser: moved code and added explanatory comment] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'csum.h')
0 files changed, 0 insertions, 0 deletions
Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Riku Voipio <riku.voipio@linaro.org> Cc: <stable@vger.kernel.org> Cc: mark.rutland@arm.com Cc: linux-efi@vger.kernel.org Cc: matt@codeblueprint.co.uk Cc: leif.lindholm@linaro.org Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1485971102-23330-2-git-send-email-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/ceph/snapshot.c')