summaryrefslogtreecommitdiffstats
path: root/samples/pktgen/pktgen.conf-1-1-flows
Commit message (Collapse)AuthorAgeFilesLines
* pktgen: add sample script pktgen_sample04_many_flows.shJesper Dangaard Brouer2016-07-151-67/+0Star
| | | | | | | | | | | | | | Adding a pktgen sample script that demonstrates how to use pktgen for simulating flows. Script will generate a certain number of concurrent flows ($FLOWS) and each flow will contain $FLOWLEN packets, which will be send back-to-back, before switching to a new flow, due to flag FLOW_SEQ. This script obsoletes the old sample script 'pktgen.conf-1-1-flows', which is removed. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* samples/pktgen: Show the results rather than just commenting where they areBen Hutchings2015-02-241-2/+1Star
| | | | | Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
* samples/pktgen: Trap SIGINTBen Hutchings2015-02-241-0/+1
| | | | | | | Otherwise ^C stops the script, not just pktgen. Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
* samples/pktgen: Use bash as interpreterBen Hutchings2015-02-241-1/+1
| | | | | | | | | These scripts use the non-POSIX 'function' and 'local' keywords so they won't work with every /bin/sh. We could drop 'function' as it is a no-op, but 'local' makes for cleaner scripts. Require use of bash. Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
* samples/pktgen: Remove setting of obsolete max_before_softirq parameterBen Hutchings2015-02-241-2/+0Star
| | | | | Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
* samples/pktgen: Correct comments about the thread configBen Hutchings2015-02-241-1/+1
| | | | | | | | | | | | They all claimed to be two CPU examples using eth1, eth2 but that is only true in one case! Rob Jones pointed out spelling and grammar errors here, which I've also corrected. Cc: Rob Jones <rob.jones@codethink.co.uk> Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
* samples/pktgen: Delete unused function pg()Ben Hutchings2015-02-241-5/+0Star
| | | | | | | | This function is not used and wouldn't do anything useful as pktgen does not have an 'inject' command. Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
* samples/pktgen: Add sample scripts for pktgen facilityBen Hutchings2015-02-241-0/+74
These are Robert Olsson's samples which used to be available from <ftp://robur.slu.se/pub/Linux/net-development/pktgen-testing/examples/> but currently are not. Change the documentation to refer to these consistently as 'sample scripts', matching the directory name used here. Cc: Robert Olsson <robert@herjulf.se> Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>