pktgen: fix errata in show results
Subsystems (2)
PATCH 1/1 pktgen: fix errata in show results
The units in show_results in pktgen were not correct. The results are in usec but it was displayed nsec.
Reported-by Jong-won Lee <[email protected]>
Signed-off-by Daniel Turull <[email protected]>
---
net/core/pktgen.c +1 -1
@@ -3271,7 +3271,7 @@ static void show_results(struct pktgen_dev *pkt_dev, int nr_frags) pkt_dev->started_at);ktime_t idle =ns_to_ktime (pkt_dev->idle_acc); - p += sprintf(p, "OK: %llu(c%llu+d%llu) nsec, %llu (%dbyte,%dfrags)\n", + p += sprintf(p, "OK: %llu(c%llu+d%llu) usec, %llu (%dbyte,%dfrags)\n", (unsigned long long)ktime_to_us(elapsed), (unsigned long long)ktime_to_us(ktime_sub(elapsed, idle)), (unsigned long long)ktime_to_us(idle),
David Miller
maintainerFrom: Daniel Turull <[email protected]>
Date: Mon, 07 Mar 2011 10:09:43 +0100
Quoted 6 lines
The units in
show_resultsin pktgen were not correct. The results are in usec but it was displayed nsec.Reported-by Jong-won Lee <[email protected]>Signed-off-by Daniel Turull <[email protected]>---
Your email client corrupted the patch.
The units in show_results in pktgen were not correct. The results are in usec but it was displayed nsec.
Reported-by Jong-won Lee <[email protected]>
Signed-off-by Daniel Turull <[email protected]>
---
Here it is the new version.
Sorry for the previous mail.
Daniel
---
net/core/pktgen.c +1 -1
@@ -3271,7 +3271,7 @@ static void show_results(struct pktgen_dev *pkt_dev, int nr_frags) pkt_dev->started_at);ktime_t idle =ns_to_ktime (pkt_dev->idle_acc); - p += sprintf(p, "OK: %llu(c%llu+d%llu) nsec, %llu (%dbyte,%dfrags)\n", + p += sprintf(p, "OK: %llu(c%llu+d%llu) usec, %llu (%dbyte,%dfrags)\n", (unsigned long long)ktime_to_us(elapsed), (unsigned long long)ktime_to_us(ktime_sub(elapsed, idle)), (unsigned long long)ktime_to_us(idle),
From: Daniel Turull <[email protected]>
Date: Mon, 07 Mar 2011 10:44:40 +0100
Quoted 5 lines
The units in
show_resultsin pktgen were not correct. The results are in usec but it was displayed nsec.Reported-by Jong-won Lee <[email protected]>Signed-off-by Daniel Turull <[email protected]>
Applied, thanks.