All of lore.kernel.org
 help / color / mirror / Atom feed
* suggestions for good in-kernel examples of simple ethernet/PHY drivers?
@ 2018-08-30 11:51 rpjday at crashcourse.ca
  2018-08-30 13:59 ` Woody Wu
  0 siblings, 1 reply; 4+ messages in thread
From: rpjday at crashcourse.ca @ 2018-08-30 11:51 UTC (permalink / raw)
  To: kernelnewbies

   while i'm actually learning about the intricacies of the kernel networking
stack, i was looking for what would be really good examples of existing
network drivers that could be used as examples for future tutorials, as
nothing is as informational as seeing something that actually works.

   there are, of course, a ton of net drivers already in the kernel, but
many of them are fairly complex, and might define custom methods to handle
individual quirks and so on, so what i'm interested in is pointers to
examples that are nice and simple and straightforward that could be used
for a walkthrough of net driver design. thoughts?

rday

p.s. i'm already aware of the mass of documentation under
Documentation/networking -- any pointers to online net driver
design and tutorials would be appreciated.

and, yes, i'm also digging through LDD3, https://lwn.net/Kernel/LDD3/.

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

* suggestions for good in-kernel examples of simple ethernet/PHY drivers?
  2018-08-30 11:51 suggestions for good in-kernel examples of simple ethernet/PHY drivers? rpjday at crashcourse.ca
@ 2018-08-30 13:59 ` Woody Wu
  2018-08-30 17:27   ` Robert P. J. Day
  0 siblings, 1 reply; 4+ messages in thread
From: Woody Wu @ 2018-08-30 13:59 UTC (permalink / raw)
  To: kernelnewbies

Maybe the dummy NIC driver?

On Thu, Aug 30, 2018 at 7:52 PM <rpjday@crashcourse.ca> wrote:

>    while i'm actually learning about the intricacies of the kernel
> networking
> stack, i was looking for what would be really good examples of existing
> network drivers that could be used as examples for future tutorials, as
> nothing is as informational as seeing something that actually works.
>
>    there are, of course, a ton of net drivers already in the kernel, but
> many of them are fairly complex, and might define custom methods to handle
> individual quirks and so on, so what i'm interested in is pointers to
> examples that are nice and simple and straightforward that could be used
> for a walkthrough of net driver design. thoughts?
>
> rday
>
> p.s. i'm already aware of the mass of documentation under
> Documentation/networking -- any pointers to online net driver
> design and tutorials would be appreciated.
>
> and, yes, i'm also digging through LDD3, https://lwn.net/Kernel/LDD3/.
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>


-- 
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

woody
public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180830/45953da4/attachment.html>

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

* suggestions for good in-kernel examples of simple ethernet/PHY drivers?
  2018-08-30 13:59 ` Woody Wu
@ 2018-08-30 17:27   ` Robert P. J. Day
  2018-08-30 17:41     ` valdis.kletnieks at vt.edu
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2018-08-30 17:27 UTC (permalink / raw)
  To: kernelnewbies

On Thu, 30 Aug 2018, Woody Wu wrote:

> Maybe the dummy NIC driver?
>
> On Thu, Aug 30, 2018 at 7:52 PM <rpjday@crashcourse.ca> wrote:
>       ? ?while i'm actually learning about the intricacies of the kernel networking
>       stack, i was looking for what would be really good examples of existing
>       network drivers that could be used as examples for future tutorials, as
>       nothing is as informational as seeing something that actually works.
>
>       ? ?there are, of course, a ton of net drivers already in the kernel, but
>       many of them are fairly complex, and might define custom methods to handle
>       individual quirks and so on, so what i'm interested in is pointers to
>       examples that are nice and simple and straightforward that could be used
>       for a walkthrough of net driver design. thoughts?
>
>       rday
>
>       p.s. i'm already aware of the mass of documentation under
>       Documentation/networking -- any pointers to online net driver
>       design and tutorials would be appreciated.
>
>       and, yes, i'm also digging through LDD3, https://lwn.net/Kernel/LDD3/.

  i'm already looking at that, but what i wanted was an example of an
existing, physical driver that shows how simple the design can be (if
such a thing exists).

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

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

* suggestions for good in-kernel examples of simple ethernet/PHY drivers?
  2018-08-30 17:27   ` Robert P. J. Day
@ 2018-08-30 17:41     ` valdis.kletnieks at vt.edu
  0 siblings, 0 replies; 4+ messages in thread
From: valdis.kletnieks at vt.edu @ 2018-08-30 17:41 UTC (permalink / raw)
  To: kernelnewbies

On Thu, 30 Aug 2018 13:27:13 -0400, "Robert P. J. Day" said:

>   i'm already looking at that, but what i wanted was an example of an
> existing, physical driver that shows how simple the design can be (if
> such a thing exists).

For some reason, engineers building network devices almost never manage to
create a device that has a clean design with few warts.  It's almost as if they
were following in the steps of Persian rug makers, where hand-woven rugs always
have at least one (intentional) error, because only Allah is perfection....

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180830/1845bb03/attachment.sig>

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

end of thread, other threads:[~2018-08-30 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-30 11:51 suggestions for good in-kernel examples of simple ethernet/PHY drivers? rpjday at crashcourse.ca
2018-08-30 13:59 ` Woody Wu
2018-08-30 17:27   ` Robert P. J. Day
2018-08-30 17:41     ` valdis.kletnieks at vt.edu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.