netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pktgen patch available for perusal.
@ 2006-10-30 23:47 Ben Greear
  2006-11-01 17:14 ` Robert Olsson
  0 siblings, 1 reply; 13+ messages in thread
From: Ben Greear @ 2006-10-30 23:47 UTC (permalink / raw)
  To: NetDev; +Cc: Robert Olsson

I've completed the first pass of my changes to pktgen in 2.6.18.
Many of these features are probably DOA based on previous conversations,
but perhaps this will help someone....

Changes:
* use a nano-second timer based on the scheduler timer (TSC) for relative times, instead of get_time_of_day.
* Don't busy-spin:
    * add hook to netdevice wake tx queue to re-start when queue was stopped.
    * add logic to pktgen to register/unregister this hook.
    * accumulate delay and sleep interruptible on a queue when 1ms of sleep has accumulated
      or when the associated netdev tx-queues for pktgen devices needing to transmit are asleep.
    (This all assumes that HZ is 1000, could probably work with other HZ with minor work.)
* Add receive logic to dev.c so that pktgen can receive packets and report on various stats
   including latency, packet loss, jitter, etc.
* Remove the if-lock, primarily by making the 'add-interface' logic deferred to the
   thread's main loop.  It's likely I missed a corner case or two here, hopefully I'll
   find them all in testing...
* Add ioctl to grab all of the pktgen stats in one call.

The pktgen.[ch] patch is here:  http://www.candelatech.com/oss/pktgen.patch

The full patch, including the callback hooks (and several other features)
is located here:  http://www.candelatech.com/oss/candela_2.6.18.patch

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-11-06 14:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-30 23:47 pktgen patch available for perusal Ben Greear
2006-11-01 17:14 ` Robert Olsson
2006-11-01 19:11   ` Ben Greear
2006-11-03 11:13     ` Robert Olsson
2006-11-03 16:34       ` Ben Greear
2006-11-03 20:24         ` Robert Olsson
2006-11-03 20:41           ` Ben Greear
2006-11-04 12:32     ` jamal
2006-11-04 17:29       ` Ben Greear
2006-11-04 18:10         ` jamal
2006-11-04 19:12           ` Ben Greear
2006-11-06 14:06           ` Robert Olsson
2006-11-06 14:14     ` Robert Olsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).