kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* net_device: limit rate ot tx packets
@ 2013-04-13 12:11 christian+kn at wwad.de
  2013-04-14  6:15 ` michi1 at michaelblizek.twilightparadox.com
  0 siblings, 1 reply; 6+ messages in thread
From: christian+kn at wwad.de @ 2013-04-13 12:11 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

can someone please explain me, how the kernel handles different
transfer rates of different net_devices? Or in other words: How does
the systemcall send() know, when to block?

An example:
  cat /dev/zero | pv | nc -u <someip>
will show different throughput speeds depending on the network device,
the packets are sent over (wlan0 will be slower than eth0).

 - Can someone point out the location in the linux kernel source, where
   this is handled?

 - If I register a net_device. How do I signal to the upper
   network layers that my driver can only accept packets at a
   certain rate? I tried stopping the egress queue by calling
   netif_stop_queue(), but this only has the effect that the queue
   overruns.


I have the feeling that I'm missing out a very vital point on how the
kernel's networking subsystem works. Unfortunately, Understanding Linux
Network Internals couldn't help me out here.


Thanks,
Christian

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

end of thread, other threads:[~2013-04-17 14:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13 12:11 net_device: limit rate ot tx packets christian+kn at wwad.de
2013-04-14  6:15 ` michi1 at michaelblizek.twilightparadox.com
2013-04-14  7:45   ` Valdis.Kletnieks at vt.edu
2013-04-14  8:09     ` michi1 at michaelblizek.twilightparadox.com
2013-04-14 14:35       ` Valdis.Kletnieks at vt.edu
2013-04-17 14:30         ` christian+kn at wwad.de

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).