lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <19473.2154.53423.374255@gargle.gargle.HOWL> Date: Thu, 10 Jun 2010 17:44:42 +0200 From: <robert@...julf.net> To: Daniel Turull <daniel.turull@...il.com> Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org, robert@...julf.net, jens.laas@....uu.se Subject: Re: [PATCH 1/2] pktgen: increasing transmission granularity Thanks, So the scheduling of the next transmission is based on the previous transmission rather rather than now() + delay. Cheers --ro Signed-off-by: Robert Olsson <robert.olsson@....uu.se> >Daniel Turull wrote: This patch correct a bug in the delay of pktgen. >It makes sure the inter-packet interval is accurate. > >Signed-off-by: Daniel Turull <daniel.turull@...il.com> > >--- >diff --git a/net/core/pktgen.c b/net/core/pktgen.c index >2ad68da..1dacd7b 100644 --- a/net/core/pktgen.c +++ >b/net/core/pktgen.c @@ -2170,7 +2170,7 @@ static void spin(struct >pktgen_dev *pkt_dev, ktime_t spin_until) > end_time = ktime_now(); > > pkt_dev->idle_acc += ktime_to_ns(ktime_sub(end_time, > start_time)); >- pkt_dev->next_tx = ktime_add_ns(end_time, pkt_dev->delay); >+ pkt_dev->next_tx = ktime_add_ns(spin_until, pkt_dev->delay); > } > > static inline void set_pkt_overhead(struct pktgen_dev *pkt_dev) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists