summaryrefslogtreecommitdiff
path: root/samples/pktgen/pktgen_sample03_burst_single_flow.sh
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2019-10-05 11:25:07 +0300
committerDavid S. Miller <davem@davemloft.net>2019-10-07 16:26:32 +0300
commit3cad8f911575191fb3b81d8ed0e061e30f922223 (patch)
tree68dbe085139830a1a8fb3e7eebc2d115334707ea /samples/pktgen/pktgen_sample03_burst_single_flow.sh
parent723d2904a2a47339cae7cb1c2a6a7582c130ee66 (diff)
downloadlinux-3cad8f911575191fb3b81d8ed0e061e30f922223.tar.xz
samples: pktgen: fix proc_cmd command result check logic
Currently, proc_cmd is used to dispatch command to 'pg_ctrl', 'pg_thread', 'pg_set'. proc_cmd is designed to check command result with grep the "Result:", but this might fail since this string is only shown in 'pg_thread' and 'pg_set'. This commit fixes this logic by grep-ing the "Result:" string only when the command is not for 'pg_ctrl'. For clarity of an execution flow, 'errexit' flag has been set. To cleanup pktgen on exit, trap has been added for EXIT signal. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/pktgen/pktgen_sample03_burst_single_flow.sh')
0 files changed, 0 insertions, 0 deletions