samples/pktgen: Show the results rather than just commenting where they are
[cascardo/linux.git] / samples / pktgen / pktgen.conf-2-1
index ccd3278..e108e97 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 #modprobe pktgen
 
@@ -26,8 +26,6 @@ PGDEV=/proc/net/pktgen/kpktgend_0
  pgset "rem_device_all"
   echo "Adding eth1"
  pgset "add_device eth1"
-  echo "Setting max_before_softirq 10000"
- pgset "max_before_softirq 10000"
 
 # We need to remove old config since we dont use this thread. We can only
 # one NIC on one CPU due to affinity reasons.
@@ -62,7 +60,7 @@ PGDEV=/proc/net/pktgen/eth1
 PGDEV=/proc/net/pktgen/pgctrl
 
  echo "Running... ctrl^C to stop"
+ trap true INT
  pgset "start"
  echo "Done"
-
-# Result can be vieved in /proc/net/pktgen/eth1
+ cat /proc/net/pktgen/eth1