home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / linux / howto / ethernet / part2 < prev    next >
Encoding:
Internet Message Format  |  1993-12-15  |  45.7 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!nic.hookup.net!swrinde!cs.utexas.edu!howland.reston.ans.net!gatech!concert!samba.oit.unc.edu!sunSITE!mdw
  2. From: Paul Gortmaker <gpg109@rsphysse.anu.edu.au>
  3. Newsgroups: comp.os.linux.announce,comp.os.linux.admin,comp.answers,news.answers
  4. Subject: Linux Ethernet HOWTO (Part 2/2)
  5. Followup-To: poster
  6. Date: 15 Dec 1993 22:08:31 GMT
  7. Organization: The University of North Carolina at Chapel Hill
  8. Lines: 1068
  9. Approved: linux-announce@tc.cornell.edu (Matt Welsh)
  10. Message-ID: <2eo1sv$64u@samba.oit.unc.edu>
  11. NNTP-Posting-Host: calypso.oit.unc.edu
  12. Keywords: Linux, Ethernet, TCP/IP, NET-2
  13. Originator: mdw@sunSITE
  14. Xref: senator-bedfellow.mit.edu comp.os.linux.announce:1567 comp.os.linux.admin:2498 comp.answers:3042 news.answers:15864
  15.  
  16. Archive-Name: linux/howto/ethernet/part2
  17. Last-Modified: November 16, 1993
  18.  
  19. This is part 2/2 of the Linux Ethernet HOWTO. It is archived on 
  20. sunsite.unc.edu in pub/Linux/docs/HOWTO.
  21.  
  22. [Begin part 2/2]
  23.  
  24. 5 Technical information.
  25.  
  26.     For those who want to play with the present drivers, or try to make
  27.     up their own driver for a card that is presently unsupported, this
  28.     information should be useful. If you do not fall into this category,
  29.     then perhaps you will want to skip this section.
  30.  
  31. 5.01 Probed addresses
  32.  
  33.     While trying to determine what ethernet card is there, the following
  34.     addresses are autoprobed, assuming the type and specs of the card
  35.     have not been set in the kernel. In /usr/src/linux/net/inet/CONFIG,
  36.     one can set the cards that are compiled in to the kernel. As of
  37.     0.99pl12, doing a "make config" will ask what cards are to be
  38.     supported. The file names below are in /usr/src/linux/net/inet/
  39.     ----------------------------------------------------------------
  40.     wd.c:        0x300, 0x280, 0x380, 0x240
  41.     3c503.c:    0x300, 0x310, 0x330, 0x350, 0x250, 0x280, 0x2a0, 0x2e0
  42.     ne.c:        0x300, 0x280, 0x320, 0x340, 0x360
  43.     hp.c:        0x300, 0x320, 0x340, 0x280, 0x2C0, 0x200, 0x240
  44.     lance.c:    0x300, 0x320, 0x340, 0x360
  45.     smc-ultra.c:    0x300, 0x280
  46.     3c509.c:    <Special "ID Port" probe>
  47.     ----------------------------------------------------------------
  48.     There are some NE2000 clone ethercards out there that are waiting black
  49.     holes for autoprobe drivers.  While many NE2000 clones are
  50.     safe until they are enabled, some can't be reset to a safe mode.
  51.     These dangerous ethercards will hang any I/O access to their
  52.     "dataports".  The typical dangerous locations are:
  53.  
  54.     Ethercard jumpered base     Dangerous locations (base + 0x10 - 0x1f)
  55.         0x300 *                0x310-0x317
  56.         0x320                0x330-0x337
  57.         0x340                0x350-0x357
  58.         0x360                0x370-0x377
  59.  
  60.     * The 0x300 location is the traditional place to put an ethercard, but
  61.     it's also a popular place to put other devices (often SCSI
  62.     controllers).  The 0x320 location is often the next one chosen, but
  63.     that's bad for for the AHA1542 driver probe.  The 0x360 location is
  64.     bad, because it conflicts with the parallel port at 0x378.
  65.  
  66.     To avoid these lurking ethercard, here are the things you can do:
  67.  
  68.         o Probe for the device's BIOS in memory space.  This is easy
  69.       and always safe, but it only works for cards that always have
  70.       BIOSes, like primary SCSI controllers.
  71.  
  72.     o Avoid probing any of the above locations until you think
  73.       you've located your device.  The NE2000 clones have a reset range
  74.       from <base>+0x18 to <base>+0x1f that will read as 0xff, so probe
  75.       there first if possible.  It's also safe to probe in the 8390
  76.       space at <base>+0x00 - <base>+0x0f, but that area will return
  77.       quasi-random values
  78.  
  79.     o If you must probe in the dangerous range, for instance if your
  80.       target device has only a few port locations, first check that
  81.       there isn't an NE2000 there. You can see how to do this by
  82.       looking at the probe code in /usr/src/linux/net/inet/ne.c
  83.  
  84.     In other news, I've written the code for the I/O port registrar.
  85.     Peter MacDonald and I have been intensely discussing this, and I think
  86.     our current scheme has the necessary functionality with minimal kernel
  87.     size impact.  (The implementation involved rewriting the bitmap ops in
  88.     kernel/ioport.c:ioperm() so that most code could be shared.)
  89.  
  90.     Here is the current "blurb".  As usual comments are welcome. Please
  91.     keep them substantial and constructive (we've already talked about
  92.     changing the name from "reserve=" to "noprobe=").
  93.  
  94.     ==================
  95.  
  96.     Boot-Time Parameters: "reserve="
  97.     
  98.     In some machines it may be necessary to prevent device drivers from
  99.     checking for devices (auto-probing) in a specific region.  This may be
  100.     because of poorly designed hardware that causes the boot to "freeze"
  101.     (such as some ethercards), hardware that is mistakenly identified,
  102.     hardware whose state is changed by an earlier probe, or merely
  103.     hardware you don't want the kernel to initialize.
  104.  
  105.     The "reserve" boot-time argument addresses this problem by specifying
  106.     an I/O port region that shouldn't be probed.  That region is reserved
  107.     in the kernel's port registration table as if a device has already
  108.     been found in that region.  Note that this mechanism shouldn't be
  109.     necessary on most machine, only when there is a problem or special
  110.     case.
  111.  
  112.     The boot-line syntax is
  113.  
  114.       lilo-prompt: linux-image reserve=[<port>,<size>,<port>,<size>...]
  115.  
  116.     As usual with boot-time specifiers there is an 11 parameter limit, thus
  117.     you can only specify 5 reserved regions per "reserve" keyword.
  118.     Multiple "reserve" specifiers will work if you have an usually
  119.     complicated request.
  120.  
  121.     If you specify a "reserve" region to protect a specific device, you
  122.     must generally specify an explicit probe for that device.  Most
  123.     drivers ignore the port registration table if they are given an
  124.     explicit address.
  125.  
  126. 5.02 Skeleton / prototype driver
  127.  
  128.     OK. So you have decided that you want to write a driver for the
  129.     Foobar Ethernet card, as you have the programming information,
  130.     and it hasn't been done yet. (...these are the two main require-
  131.     ments ;-) You can use the skeleton network driver that is provided
  132.     with the Linux kernel source tree. It can be found in the file
  133.     /usr/src/linux/net/inet/README.DRIVERS as of 0.99pl12, and later.
  134.  
  135.     It's also very useful to look at the Crynwr (nee Clarkson) driver
  136.     for your target ethercard, if it's available.  Russ Nelson
  137.     <nelson@crynwr.com> has been actively updating and writing these,
  138.     and he has been very helpful with his code reviews of the current 
  139.     Linux drivers.
  140.  
  141. 5.03 Driver interface to the kernel
  142.  
  143.     Here are some notes that may help when trying to figure out what
  144.     the code in the driver segments is doing, or perhaps what it is
  145.     supposed to be doing.
  146.  
  147.     =====================================================
  148.  
  149.     int ethif_init(struct device *dev)
  150.     {
  151.         ...
  152.         dev->send_packet = &ei_send_packet;
  153.         dev->open = &ei_open;
  154.         dev->stop = &ei_close;
  155.         dev->hard_start_xmit = &ei_start_xmit;
  156.         ...
  157.     }
  158.  
  159.     int ethif_init(struct device *dev)
  160.  
  161.     This function is put into the device structure in Space.c.  It is
  162.     called only at boot time, and returns '0' iff the ethercard 'dev'
  163.     exists.
  164.  
  165.     =====================================================
  166.  
  167.     static int ei_open(struct device *dev)
  168.     static int ei_close(struct device *dev)
  169.  
  170.     This routine opens and initializes the board in response to an
  171.     socket ioctl() usually called by 'config' or 'ifconfig'.  It is
  172.     commonly stuffed into the 'struct device' by ethif_init().
  173.  
  174.     The inverse routine is ei_close(), which should shut down the
  175.     ethercard, free the IRQs and DMA channels if the hardware permits,
  176.     and turn off anything that will save power (like the transceiver).
  177.  
  178.     (Note: As of NET-2, the relevant program is '/etc/ifconfig' - and
  179.     the device *can* be turned off or on via passing 'up' or 'down'
  180.     to 'ifconfig' from the command line with the device name.)
  181.  
  182.     =====================================================
  183.  
  184.     static int ei_start_xmit(struct sk_buff *skb, struct device *dev)
  185.         dev->hard_start_xmit = &ei_start_xmit;
  186.  
  187.     This routine puts packets to be transmitted into the hardware.  It
  188.     is usually stuffed into the 'struct device' by ethif_init().
  189.  
  190.     When the hardware can't accept additional packets it should set
  191.     the dev->tbusy flag.  When additional room is available, usually
  192.     during a transmit-complete interrupt, dev->tbusy should be cleared
  193.     and the higher levels informed with mark_bh(INET_BH).
  194.     [[Note: pre0.99.4 kernels didn't use this interface for all packets.]]
  195.     
  196.     =====================================================
  197.  
  198.     ...
  199.         if (dev_rint(buffer, length, is_skb ? IN_SKBUFF : 0, dev))
  200.            stats->rx_dropped++;
  201.     ...
  202.     A received packet is passed to the higher levels using dev_rint().
  203.     If the unadorned packet data in a memory buffer, dev_rint will copy
  204.     it into a 'skbuff' for you.  Otherwise a new skbuff should be
  205.     kmalloc()ed, filled, and passed to dev_rint() with the IN_SKBUFF flag.
  206.  
  207.     =====================================================
  208.  
  209. 5.04 Interrupts and Linux
  210.  
  211.     There are two kinds of interrupt handlers in Linux:
  212.     fast ones and slow ones. You decide what kind you are installing by
  213.     the flags you pass to irqaction().  The fast ones, such as the serial
  214.     interrupt handler, run with _all_ interrupts disabled.  The normal
  215.     interrupt handlers, such as the one for ethercard drivers, runs with
  216.     other interrupts enabled.
  217.  
  218.     There is a two-level interrupt structure.  The "fast" part handles the
  219.     device register, removes the packets, and perhaps sets a flag.   After
  220.     it is done, and interrupts are re-enabled, the slow part is run if the
  221.     flag is set.
  222.  
  223.     The flag between the two parts is set by:
  224.         mark_bh(INET_BH);
  225.  
  226.     Usually this flag is set within dev_rint() during a received-packet
  227.     interrupt, and set directly by the device driver during a
  228.     transmit-complete interrupt.
  229.  
  230.     You might wonder why all interrupt handlers cannot run in
  231.     "normal mode" with other interrupts enabled.  Ross Biro uses this
  232.     scenario to illustrate the problem:
  233.         o You get a serial interrupt, and start processing it.
  234.               The serial interrupt is now masked.
  235.         o You get a network interrupt, and you start transferring
  236.               a maximum-sized 1500 byte packet from the card.
  237.         o Another character comes in, but this time the interrupts
  238.           are masked!
  239.  
  240.     The "fast" interrupt structure solves this problem by allowing
  241.     bounded-time interrupt handlers to run without the risk of leaving
  242.     their interrupt lines masked by another interrupt request.
  243.  
  244.     There is an additional distinction between fast and slow interrupt
  245.     handlers -- the arguments passed to the handler.  A "slow" handler is
  246.     defined as
  247.  
  248.         static void
  249.         handle_interrupt(int reg_ptr)
  250.         {
  251.             int irq = -(((struct pt_regs *)reg_ptr)->orig_eax+2);
  252.             struct device *dev = irq2dev_map[irq];
  253.         ...
  254.  
  255.     While a fast handler gets the interrupt number directly
  256.  
  257.         static void
  258.         handle_fast_interrupt(int irq)
  259.         {
  260.         ...
  261.  
  262.     A final aspect of network performance is latency.  The only board
  263.     that really addresses this is the 3c509, which allows a predictive
  264.     interrupt to be posted.  It provides an interrupt response timer so
  265.     that the driver can fine-tune how early an interrupt is generated.
  266.  
  267.     Alan Cox has some advice for anyone wanting to write drivers
  268.     that are to be used with pl14 kernels and newer. He says:
  269.  
  270.     "Any driver intended for pl14 should use the new alloc_skb() and 
  271.     kfree_skbmem() functions rather than using kmalloc() to obtain an
  272.     sk_buff. The new pl14 skeleton does this correctly. For drivers 
  273.     wishing to remain compatible with both sets the define 
  274.     'HAVE_ALLOC_SKB' indicates these functions must be used.
  275.  
  276.     In essence replace
  277.  
  278.         skb=(struct sk_buff *)kmalloc(size)
  279.     with
  280.  
  281.         skb=alloc_skb(size)
  282.  
  283.     and
  284.  
  285.         kfree_s(skb,size)
  286.  
  287.     with
  288.  
  289.         kfree_skbmem(skb,size)    /* Only sk_buff memory though */
  290.  
  291.     Any questions should I guess be directed to me since I made the change.
  292.     This is a change to allow tracking of sk_buff's and sanity checks on 
  293.     buffers and stack behaviour. If a driver produces the message 
  294.     'File: ??? Line: ??? passed a non skb!' then it is probable the 
  295.     driver is not using the new sk_buff allocators."
  296.  
  297.  
  298.  
  299.  
  300. 5.05 Programmed I/O vs. shared mem. vs. slave/master DMA
  301.  
  302.     Ethernet is 10Mbs.  (Don't be pedantic, 3Mbs and 100Mbs don't count.)
  303.     If you can already send and receive back-to-back packets, you just
  304.     can't put more bits over the wire.  Every modern ethercard can receive
  305.     back-to-back packets.  The Linux DP8390 drivers come pretty close to
  306.     sending back-to-back packets (depending on the current interrupt
  307.     latency) and the 3c509 and AT1500 hardware has no problem at all
  308.     automatically sending back-to-back packets.
  309.  
  310.     The ISA bus can do 5.3MB/sec (42Mb/sec), which sounds like more than
  311.     enough.  You can use that bandwidth in several ways:
  312.  
  313.     Programmed I/O
  314.     ==============
  315.       Pro: Doesn't use any constrained system resources,
  316.            just a few I/O registers, and has no 16M limit.
  317.       Con: Usually the slowest transfer rate, the CPU is waiting
  318.            the whole time, and interleaved packet access is usually
  319.            difficult to impossible.
  320.  
  321.     Shared memory
  322.     =============
  323.       Pro: Simple, faster than programmed I/O, and allows random
  324.            access to packets.
  325.       Con: Uses up memory space (a big one for DOS users, only a minor
  326.            issue under Linux), and it still ties up the CPU.
  327.  
  328.     Slave (normal) DMA
  329.     ==================
  330.       Pro: Frees up the CPU during the actual data transfer.
  331.       Con: Checking boundary conditions, allocating contiguous buffers,
  332.            and programming the DMA registers makes it the slowest
  333.            of all techniques.  It also uses up a scarce DMA
  334.            channel, and requires aligned low memory buffers.
  335.  
  336.     Master (bus-master) DMA
  337.     =======================
  338.       Pro: Frees up the CPU during the data transfer, can string together
  339.            buffers, can require little or no CPU time lost on the
  340.            ISA bus.
  341.       Con: Requires low-memory buffers and a DMA channel. Any
  342.            bus-master will have problems with other bus-masters that 
  343.            are bus-hogs, such as some primitive SCSI adaptors. A few
  344.            badly-designed motherboard chipsets have problems with
  345.            bus-masters. And a reason for not using *any* type of 
  346.            DMA device is using a Cyrix 486 processor designed for
  347.            plug-in replacement of a 386: these processors must
  348.            flush their cache with each DMA cycle.
  349.  
  350. 5.06 Programming the Intel chips (i82586 and i82593)
  351.  
  352.     These chips are used on a number of cards, namely the 3c507 ('86),
  353.     the Intel EtherExpress 16 ('86), Microdyne's exos205t ('86),
  354.     the Z-Note ('93), and the Racal-Interlan ni5210 ('86).
  355.  
  356.     Russ Nelson writes:
  357.     "Most boards based on the 82586 can reuse quite a bit of their code.
  358.     More, in fact, than the 8390-based adapters.  There are only three
  359.     differences between them:
  360.  
  361.       o The code to get the Ethernet address,
  362.       o The code to trigger CA on the 82586, and
  363.       o The code to reset the 82586.
  364.  
  365.     The Intel EtherExpress 16 is an exception, as it I/O maps the 82586.
  366.     Yes, I/O maps it.  Fairly clunky, but it works.
  367.  
  368.     Garrett Wollman did an AT&T driver for BSD that uses the BSD
  369.     copyright.  The latest version I have (Sep '92) only uses a single
  370.     transmit buffer.  You can and should do better than this if you've
  371.     got the memory.  The AT&T and 3c507 adapters do; the ni5210 doesn't.
  372.  
  373.     The people at Intel gave me a very big clue on how you queue up
  374.     multiple transmit packets.  You set up a list of
  375.     NOP->XMIT->NOP->XMIT->NOP->XMIT->(beginning) blocks, then you set the
  376.     "next" pointer of all the NOP blocks to themselves.  Now you start
  377.     the command unit on this chain.  It continually processes the first
  378.     NOP block.  To transmit a packet, you stuff it into the next transmit
  379.     block, then point the NOP to it.  To transmit the next packet, you
  380.     stuff the next transmit block and point the previous NOP to *it*.  In
  381.     this way, you don't have to wait for the previous transmit to finish,
  382.     you can queue up multiple packets without any ambiguity as to whether
  383.     it got accepted, and you can avoid the command unit start-up delay."
  384.  
  385. 5.07    Technical information from 3Com
  386.  
  387.     From: Cameron Spitzer 764-6339 <camerons@nad.3com.com>
  388.     Subject: getting 3Com Adapter manuals
  389.     Date: Mon, 27 Sep 1993 21:17:07 +0200
  390.     
  391.     Since this is becoming a FAQ, I'm going to tread the thin
  392.     ice of No Commercial Use and answer it here.
  393.  
  394.     3Com's Ethernet Adapters are documented for driver writers
  395.     in our "Technical References" (TRs).  These manuals describe
  396.     the programmer interfaces to the boards but they don't talk
  397.     about the diagnostics, installation programs, etc that end
  398.     users can see.
  399.     
  400.     The Network Adapter Division marketing department has the
  401.     TRs to give away.  To keep this program efficient, we
  402.     centralized it in a thing called "CardFacts."  CardFacts is
  403.     an automated phone system.  You call it with a touch-tone
  404.     phone and it faxes you stuff.  To get a TR, call CardFacts
  405.     at 408-727-7021.  Ask it for Developer's Order Form,
  406.     document number 9070.  Have your fax number ready when you
  407.     call.  Fill out the order form and fax it to 408-764-5004.
  408.     Manuals are shipped by Federal Express 2nd Day Service.
  409.     
  410.     If you don't have a fax and nobody you know has a fax,
  411.     really and truly, *then* send mail to
  412.     Terry_Murphy@3Mail.3Com.com and tell her about your problem.
  413.     PLEASE use the fax thing if you possibly can.
  414.     
  415.     After you get a manual, if you still can't figure out how to
  416.     program the board, try our "CardBoard" BBS at
  417.     1-800-876-3266, and if you can't do that, write
  418.     Andy_Chan@3Mail.3com.com and ask him for alternatives.  If
  419.     you have a real stumper that nobody has figured out yet, the
  420.     fellow who needs to know about it is
  421.     Steve_Lebus@3Mail.3com.com.
  422.     
  423.     There are people here who think we are too free with the
  424.     manuals, and they are looking for evidence that the system
  425.     is too expensive, or takes too much time and effort.  That's
  426.     why it's important to try to use CardFacts *before* you
  427.     start calling and mailing the people I named here.
  428.     
  429.     There are even people who think we should be like Diamond
  430.     and Xircom, requiring tight "partnership" with driver
  431.     writers to prevent poorly performing drivers from getting
  432.     written.  So far, 3Com customers have been really good about
  433.     this, and there's no problem with the level of requests
  434.     we've been getting.  We need your continued cooperation and
  435.     restraint to keep it that way.
  436.     
  437.     Cameron Spitzer,  408-764-6339
  438.     3Com NAD
  439.     Santa Clara
  440.     work: camerons@nad.3com.com
  441.     home: cls@truffula.sj.ca.us
  442.  
  443. 5.08 Notes on AMD PCnet-ISA / LANCE Based cards (79C960)
  444.  
  445.     The AMD LANCE (Local Area Network Controller for Ethernet)
  446.     was the original offering, and has since been replaced by
  447.     the "PCnet-ISA" chip, otherwise known as the 79C960.
  448.     A relatively new chip from AMD, the 79C960, is the heart of many
  449.     new cards being released at present. Note that the name "LANCE"
  450.     has stuck, and some people will refer to the new chip by the old
  451.     name. Dave Roberts of the Network Products Division of AMD was kind
  452.     enough to contribute the following information regarding this chip:
  453.  
  454.     "As for the architecture itself, AMD developed it originally
  455.     and reduced it to a single chip -- the PCnet(tm)-ISA -- over a year
  456.     ago.  It's been selling like hotcakes ever since.
  457.  
  458.     Functionally, it is equivalent to a NE1500.  The register set
  459.     is identical to the old LANCE with the 1500/2100 architecture
  460.     additions.  Older 1500/2100 drivers will work on the PCnet-ISA.
  461.     The NE1500 and NE2100 architecture is basically the same.
  462.     Initially Novell called it the 2100, but then tried to distinguish
  463.     between coax and 10BASE-T cards.  Anything that was 10BASE-T only was
  464.     to be numbered in the 1500 range.  That's the only difference.
  465.  
  466.     Many companies offer PCnet-ISA based products, including HP,
  467.     Racal-Datacom, Allied Telesis, Boca Research, Kingston Technology, etc.
  468.     The cards are basically the same except that some manufacturers
  469.     have added "jumperless" features that allow the card to
  470.     be configured in software.  Most have not.  AMD offers a standard
  471.     design package for a card that uses the PCnet-ISA and many
  472.     manufacturers use our design without change.
  473.     What this means is that anybody who wants to write drivers for
  474.     most PCnet-ISA based cards can just get the data-sheet from AMD.  Call
  475.     our literature distribution center at (800)222-9323 and ask for the
  476.     Am79C960, PCnet-ISA data sheet.  It's free.
  477.  
  478.     A quick way to understand whether the card is a "stock" card
  479.     is to just look at it.  If it's stock, it should just have one large
  480.     chip on it, a crystal, a small IEEE address PROM, possibly a socket
  481.     for a boot ROM, and a connector (1, 2, or 3, depending on the media
  482.     options offered).  Note that if it's a coax card, it will have some
  483.     transceiver stuff built onto it as well, but that should be near the
  484.     connector and away from the PCnet-ISA.
  485.  
  486.     The PCnet-ISA is faster than the original LANCE design and
  487.     makes better use of the available bus bandwidth.  Additionally, some
  488.     LANCE bugs were corrected and many enhancements were made."
  489.  
  490. 5.09 Multicast and Promiscuous mode
  491.  
  492.     One of the things I've been working on recently is the
  493.     major remaining item on the ethercard feature list:
  494.     implementing multicast and promiscuous mode hooks.
  495.     
  496.     At first I was planning to do it while implementing either
  497.     the /dev/* or DDI interface, but that's not really the
  498.     correct way to do it.  We should only enable multicast or
  499.     promiscuous modes when something wants to look at the
  500.     packets, and shut it down when that application is
  501.     finished, neither of which is strongly related to when the
  502.     hardware is opened or released.
  503.     
  504.     I'll start by discussing promiscuous mode, which is
  505.     conceptually easy to implement.  For most hardware you
  506.     only have to set a register bit, and from then on you get
  507.     every packet on the wire.  Well, it's almost that easy;
  508.     for some hardware you have to shut the board (potentially
  509.     dropping a few packet), reconfigure it, and then re-enable
  510.     the ethercard.  This is grungy and risky, but the
  511.     alternative seems to be to have every application register
  512.     before you open the ethercard at boot-time.
  513.     
  514.     OK, so that's easy, so I'll move on something that's not
  515.     quite so obvious: Multicast.  It can be done two ways:
  516.     
  517.     1) Use promiscuous mode, and a packet filter like the
  518.        Berkeley packet filter (BPF).  The BPF is a pattern matching
  519.        stack language, where you write a program that picks out the
  520.        addresses you are interested in.  Its advantage is that it's
  521.        very general and programmable.  Its disadvantage is that there
  522.        is no general way for the kernel to avoid turning on promiscuous
  523.        mode and running every packet on the wire through every registered
  524.        packet filter. See the next section for more information on BPF.
  525.     
  526.     2) Using the built-in multicast filter that most etherchips have.
  527.     
  528.     I guess I should list what a few ethercards/chips provide:
  529.     
  530.     Chip/card  Promiscuous    Multicast filter
  531.     ========================================
  532.     Seeq8001/3c501    Yes    Binary filter (1)
  533.     3Com/3c509    Yes    Binary filter (1)
  534.     8390        Yes    Autodin II six bit hash (2) (3)
  535.     LANCE        Yes    Autodin II six bit hash (2) (3)
  536.     i82586        Yes    Hidden Autodin II six bit hash (2) (4)
  537.     
  538.     
  539.     (1) These cards claim to have a filter, but it's a simple
  540.     yes/no 'accept all multicast packets', or 'accept no
  541.     multicast packets'.
  542.     
  543.     (2) AUTODIN II is the standard ethernet CRC (checksum)
  544.     polynomial.  In this scheme multicast addresses are hashed
  545.     and looked up in a hash table.  If the cooresponding bit
  546.     is enabled, this packet is accepted.  Ethernet packets are
  547.     laid out so that the hardware to do this is trivial -- you
  548.     just latch six (usually) bits from the CRC circuit (needed
  549.     anyway for error checking) after the first six octets (the
  550.     destination address), and use them as an index into the
  551.     hash table (six bits == a 64-bit table).
  552.     
  553.     (3) These chips use the six bit hash, and must have the
  554.     table computed and loaded by the host.  This means the
  555.     kernel must include the CRC code.
  556.     
  557.     (4) The 82586 uses the six bit hash internally, but it
  558.     computes the hash table itself from a list of multicast
  559.     addresses to accept.
  560.  
  561.     Note that none of these chips do perfect filtering, and we
  562.     still need a middle-level module to do the final
  563.     filtering.  Also note that in every case we must keep a
  564.     complete list of accepted multicast addresses to recompute
  565.     the hash table when it changes.
  566.     
  567.     My first pass at device-level support is detailed in the
  568.     new outline driver:
  569.     ftp.super.org:/pub/linux/pl14/skeleton.c
  570.     
  571.     Also in that directory you'll find all of my drivers
  572.     updated to use the proposed promiscuous/multicast mode
  573.     hook.
  574.     
  575.     #ifdef HAVE_MULTICAST
  576.     static void set_multicast_list(struct device *dev, int num_addrs,
  577.                      void *addrs);
  578.     #endif
  579.     .
  580.     .
  581.     
  582.     ethercard_open() {
  583.     ...
  584.     #ifdef HAVE_MULTICAST
  585.         dev->set_multicast_list = &set_multicast_list;
  586.     #endif
  587.     ...
  588.     
  589.     #ifdef HAVE_MULTICAST
  590.     /* Set or clear the multicast filter for this adaptor.
  591.        num_addrs == -1    Promiscuous mode, receive all packets
  592.        num_addrs == 0    Normal mode, clear multicast list
  593.        num_addrs > 0    Multicast mode, receive normal and
  594.                 MC packets, and do best-effort filtering.
  595.      */
  596.     static void
  597.     set_multicast_list(struct device *dev, int num_addrs, void *addrs)
  598.     {
  599.     ...
  600.  
  601.     Any comments, criticism, etc. are welcome.
  602.  
  603.     Alan Cox adds that "...in pl14, user programs can access promiscuous 
  604.     mode but not multicast mode, even though the drivers support both. 
  605.     The ifconfig program allows you to mark an interface 'promisc'."
  606.     
  607. 5.10 The Berkely Packet Filter (BPF)
  608.  
  609.     I'm not bitterly opposed to it, but I'm coming to the
  610.     conclusion that the 'bpf' functionality should not be provided
  611.     by the kernel, but should be in a (hopefully little-used)
  612.     compatibility library.
  613.     
  614.     For those not in the know: 'bpf' (the Berkeley Packet Filter)
  615.     is an mechanism for specifying to the kernel networking layers
  616.     what packets you are interested in.  It's implemented as a
  617.     specialized stack language interpreter built into a low level
  618.     of the networking code.  An application passes a program
  619.     written in this language to the kernel, and the kernel runs the
  620.     program on each incoming packet.  If the kernel has multiple
  621.     'bpf' applications, each program is run on each packet.
  622.     
  623.     The problem is that it's difficult to deduce what kind of
  624.     packets the application is really interested in from the packet
  625.     filter program, so the general solution is to always run the
  626.     filter.  Imagine a program that registers a 'bpf' program to
  627.     pick up a low data-rate stream sent to a multicast address.
  628.     Most ethernet cards have a hardware multicast address filter
  629.     implemented as a 64 entry hash table that ignores most unwanted
  630.     multicast packets, so the capability exists to make this a very
  631.     inexpensive operation.  But with the BFP the kernel must switch
  632.     the interface to promiscuous mode, receive _all_ packets, and
  633.     run them through this filter.  This is work, BTW, that's very
  634.     difficult to account back to the process requesting the packets.
  635.  
  636. 5.11 Unresolved questions / concerns
  637.  
  638.     There may be some benefit from processing packet data as it is
  639.     transferred to and from the ethercard, especially with very fast
  640.     processors transferring data to a slow ethercard.  As I see it this
  641.     question has multiple parts:
  642.         1) Is there any useful processing power available, perhaps
  643.            during the ISA bus recovery period, or while the 8390
  644.            remote DMA is preparing for another transfer??
  645.         2) Is there any useful but simple work that can be done
  646.            between/during each word of the copy, such as calculating
  647.            a CRC, or discarding obviously unwanted packets??
  648.         3) would the complexity of an interface to do this make future
  649.            ethercard drivers impossible??
  650.  
  651.     There should be a better structure than Space.c  Drivers should be
  652.     able to autoprobe for all installed ethercards rather than just
  653.     quitting after finding the first.  I've written code to do this,
  654.     but the constant promise (threat?) of DDI has prevented me from
  655.     making it standard.
  656.  
  657.     A related topic is the problem of driver probes corrupting
  658.     unrelated hardware. Even worse is a probe into a dataport that
  659.     isn't set up to transfer data, which will freeze the machine.  The
  660.     common suggestion is a boot-time device registry that records
  661.     already-used I/O ports and shared memory. This has been implemented
  662.     as of pl13, see section 5.01.
  663.  
  664. 6 Possible problems, and troubleshooting.
  665.  
  666.     This section tries to answer any unresolved questions, and not so
  667.     common solutions to common problems. They are sorted on a "per
  668.     manufacturer basis". You should have also read the relevant info.
  669.     from section 1 about your specific card. Section 8 contains more
  670.     general FAQ's.
  671.  
  672. 6.01 Problems with NE2000 (and clones)
  673.  
  674.     "DMA address mismatch"
  675.     ======================
  676.  
  677.     Is the chip a real NatSemi 8390? (DP8390, DP83901, DP83902 or DP83905)?
  678.     If not, some clone chips don't correctly implement the transfer
  679.     verification register.  MS-DOS drivers never do error checking,
  680.     so it doesn't matter to them.
  681.  
  682.     Are most of the messages off by a factor of 2?
  683.     If so:    Are you using the NE2000 in a 16 bit slot?
  684.         Is it jumpered to use only 8 bit transfers?
  685.  
  686.     The Linux driver expects a NE2000 to be a 16 bit slot.  A NE1000 can
  687.     be in either size slot.  This problem can also occur with some clones,
  688.     notably D-Link 16 bit cards, that don't have the correct ID bytes
  689.     in the station address PROM. [[ This should be fixed in pl12.]]
  690.  
  691.     Are you running the bus faster than 8Mhz?
  692.     If you can change the speed (faster or slower), see if that
  693.     makes a difference.  Most NE2000 clones will run at 16Mhz, but
  694.     some may not.  Changing speed can also mask a noisy bus.
  695.  
  696.     What other devices are on the bus?
  697.     If moving the devices around changes the reliability, then you
  698.     have a bus noise problem -- just what that error message was
  699.     designed to detect.  Congratulations, you've probably found the
  700.     source of other problems as well.
  701.  
  702.     Machine Hangs during Boot.
  703.     ==========================
  704.  
  705.     Problem:  The machine hangs during boot right after the "8390..."  or
  706.           "WD...." message.  Removing the NE2000 fixes the problem.
  707.  
  708.     Solution: Change your NE2000 base address to 0x360 (or 0x340 for
  709.           pl12 or later kernels.) Alternatively, you can use the new
  710.           device registrar implemented in pl13 (see section 5.1)
  711.  
  712.     Reason:   Your NE2000 clone isn't a good enough clone.  An active
  713.           NE2000 is a bottomless pit that will trap any driver
  714.           autoprobing in its space.  The other ethercard drivers take
  715.           great pain to reset the NE2000 so that it's safe, but some
  716.           clones cannot be reset.  Clone chips to watch out for:
  717.           Winbond 83C901.  Changing the NE2000 to a less-popular
  718.           address will move it out of the way of other autoprobes,
  719.           allowing your machine to boot.
  720.  
  721.     Problem:  The machine hangs during the SCSI probe at boot.
  722.  
  723.     Solution: It's the same problem as above, change the
  724.           ethercard's address, or use the device registrar.
  725.  
  726.     Problem:  The machine hangs during the soundcard probe at boot.
  727.  
  728.     Solution: No, that's really during the silent SCSI probe, and it's
  729.           the same problem as above.
  730.  
  731.     "eth0: DMAing conflict in ne_block_input"
  732.     =========================================
  733.  
  734.     This bug came from timer-based packet retransmissions.  If you got a
  735.     timer tick _during_ a ethercard RX interrupt, and timer tick tried to
  736.     retransmit a timed-out packet, you could get a conflict.  Because of
  737.     the design of the NE2000 you would have the machine hang (exactly the
  738.     same the NE2000-clone boot hangs).
  739.  
  740.     Early versions of the driver disabled interrupts for a long time,
  741.     and didn't have this problem.  Later versions are fixed. (ie. kernels
  742.     after 0.99p9 should be OK.)
  743.  
  744.     NE2000 not detected at boot.
  745.     ============================
  746.  
  747.     A few people have reported a problem with detecting the Accton NE2000.
  748.     This problem occurs only at boot-time, and the card is later detected
  749.     at run-time by the identical code my (alpha-test) ne2k diagnostic
  750.     program. Accton has been very responsive, but I still haven't tracked
  751.     down what is going on.  I've been unable to reproduce this problem
  752.     with the Accton cards we purchased.  If you are having this problem,
  753.     please send me an immediate bug report.  For that matter, if you have
  754.     an Accton card send me a success report, including the type of the
  755.     motherboard.  I'm especially interested in finding out if this problem
  756.     moves with the particular ethercard, or stays with the motherboard.
  757.  
  758. 6.02 Problems with WD80*3 cards
  759.  
  760.     Detected Non-existent Ethercard
  761.     ===============================
  762.  
  763.     Problem:  A WD80*3 is falsely detected.  Removing the sound or
  764.           MIDI card eliminates the "detected" message.
  765.  
  766.     Solution: Update your ethercard driver: new versions include an
  767.           additional sanity check.
  768.  
  769.     Reason:   Some MIDI ports happen to produce the same checksum as a
  770.           WD ethercard.
  771.  
  772.     Error messages from the 80*3
  773.     ============================
  774.  
  775.     Problem:  You get messages such as the following with your 80*3:
  776.             eth0: bogus packet size, status = ........
  777.             kmalloc called with impossibly large argument (65400)
  778.             eth0: Couldn't allocate sk_buff of size 65400
  779.             eth0: receiver overrun
  780.  
  781.     Reason:   There is a shared memory problem.
  782.  
  783.     Solution: If the problem is sparodic, you have hardware problems.
  784.           Typical problems that are easy to fix are board conflicts,
  785.           having cache or "shadow ROM" enabled for that region, or
  786.           running your bus faster than 8Mhz.  There are also a
  787.           surprising number of memory failures on ethernet cards,
  788.           so run a diagnostic program if you have one for your
  789.           ethercard.
  790.  
  791.           If the problem is continual, and you have have to reboot
  792.           to fix the problem, record the boot-time probe message
  793.           and mail it to becker@super.org  Take particular note of
  794.           the shared memory location.
  795.  
  796. 6.03 Problems with 3Com cards
  797.  
  798.     Choosing the Interrupt of the 3c503
  799.     ===================================
  800.  
  801.     Problem:  The 3c503 picks IRQ n at boot, but this is needed for some
  802.           other device which needs IRQ n. (eg. CD ROM driver, etc.)
  803.           Can this be fixed without compiling this into the kernel?
  804.  
  805.     Solution: The 3c503 driver probes for a free IRQ line in the order
  806.           {5, 9/2, 3, 4}, and it should pick a line which isn't being
  807.           used.  The pre-pl12 (SLS 1.02) driver picked the IRQ line
  808.           at boot-time, and the current driver (pl12) chooses when
  809.           the card is open()/'ifconfig'ed. Note the "bug" noted in
  810.           the 3c503 section in 1.01
  811.  
  812.           Alternately, you can fix the IRQ at boot by passing
  813.           parameters via LILO.  The following selects IRQ9, base
  814.           location 0x300, <ignored value>, and if_port #1 (the
  815.           external transceiver).
  816.             lilo: linux ether=9,0x300,0,1,eth0
  817.  
  818.           The following selects IRQ3, probes for the base location,
  819.           <ignored value>, and the default if_port #0 (the internal
  820.           transceiver)
  821.             lilo: linux ether=3,0,0,0,eth0
  822.  
  823.     "3c503: Configured interrupt number XX is out of range."
  824.     ========================================================
  825.  
  826.     Problem:  Whoever built your kernel fixed the ethercard IRQ at XX.
  827.  
  828.     Reason:   The above is truly evil, and worse than that, it is
  829.           not necessary. The 3c503 will autoIRQ when it gets
  830.           "ifconfig"ed, and pick one of IRQ{5, 2/9, 3, 4}.
  831.  
  832.     Solution: Use lilo to set the IRQ, or rebuild the kernel, enabling
  833.           autoIRQ by not specifying the IRQ line.
  834.  
  835.     Choosing the output of the 3c503
  836.     ================================
  837.  
  838.     Problem:  The supplied 3c503 drivers don't use the AUI (thicknet) port.
  839.           How does one choose it over the default thinnet port?
  840.  
  841.     Solution: The 3c503 AUI port can be selected at boot-time with 0.99pl12
  842.           and later.  The selection is overloaded onto the low bit of
  843.           the currently-unused dev->rmem_start variable, so a boot-time
  844.           parameter of:
  845.             lilo: linux ether=0,0,0,1,eth0
  846.           should work.  A boot line to force IRQ 5, port base 0x300,
  847.           and use an external transceiver is:
  848.             lilo: linux ether=5,0x300,0,1,eth0
  849.  
  850. 7 Networking with a laptop computer
  851.  
  852.     There are currently only a few ways to put your laptop on a network.
  853.     You can use the NET-2 SLIP code (and run at serial line speeds);
  854.     you can buy one of the few laptops that come with a NE2000-compatible
  855.     ethercard or PCMCIA slot built-in; you can get a laptop with a
  856.     docking station and plug in an ISA ethercard; or you can use a
  857.     parallel port Ethernet adapter such as the D-Link DE-600.
  858.  
  859. 7.01 Option 1 -- using SLIP
  860.  
  861.     This is the cheapest solution, but by far the most difficult. Also,
  862.     you will not get very high transmission rates. Since SLIP is not
  863.     really related to ethernet cards, it will not be discussed further
  864.     here. See the NET-2 HOWTO.
  865.  
  866. 7.02 Option 2 -- Built in NE2000 compatible or PCMCIA Ethercard.
  867.  
  868.     The second solution severely limits your laptop choices and is fairly
  869.     expensive.  Be sure to read the specifications carefully, you may find
  870.     that you will have to buy an additional non-standard transceiver to
  871.     actually put the machine on a network. Anyone who has used a PCMCIA
  872.     Ethernet card is requested to contact us so that we can add it to
  873.     this document. Barry Jaspan <bjaspan@security.ov.com> has started
  874.     some work on controlling the PCMCIA slot.
  875.  
  876. 7.03 Option 3 -- ISA Ethercard in the Docking Station.
  877.  
  878.     I recommend the third solution.  Docking stations for laptops typically
  879.     cost about $250 and provide two full-size ISA slots, two serial and one
  880.     parallel port.  Most (all?) docking stations are powered off of the
  881.     laptop's batteries, and a few allow adding extra batteries in the
  882.     docking station if you use short ISA cards.  You can add an inexpensive
  883.     ethercard and enjoy full-speed ethernet performance.
  884.  
  885. 7.04 Option 4 -- Pocket / parallel port adaptors.
  886.  
  887.     The "pocket" ethernet adaptors may also fit your need.
  888.     Until recently they actually costed more than a docking station and
  889.     cheap ethercard, and most tie you down with a wall-brick power supply.
  890.     The only pocket adaptor driver right now is for the D-Link.
  891.     I'm also working on a driver for the AT-LAN-TEC/RealTek pocket adaptor.
  892.     Most other companies, especially Xircom, treat the programming
  893.     information as a trade secret, so support will likely be slow in
  894.     coming.
  895.  
  896.     You can sometimes avoid the wall-brick with the adaptors by buying
  897.     or making a cable that draws power from the laptop's keyboard
  898.     port.
  899.  
  900. 8 Frequently asked questions
  901.  
  902.     Here are some of the more frequently asked questions about using
  903.     Linux with an Ethernet connection. Some of the more specific
  904.     questions are sorted on a "per manufacturer basis" and are listed
  905.     in the "Troubleshooting" section. (section 6). However, since this
  906.     document is basically "old" by the time you get it, any "new" problems
  907.     will not appear here instantly. For these, I suggest that you make
  908.     efficient use of your newsreader. For example, nn users would type
  909.         nn -xX -s'3c'
  910.     to get all the news articles in your subscribed list that have
  911.     "3c" in the subject. (ie. 3com, 3c509, 3c503, etc.)
  912.     The moral: Read the man page for your newsreader.
  913.     
  914. 8.01 Just the FAQ's ma'am -- just the FAQ's.
  915.  
  916.     Q: I heard that there is an alpha driver available for my card.
  917.        Where can I get it?
  918.  
  919.     A: Assuming that it is a djb driver, it will be on ftp.super.org
  920.        in the /pub/linux/ area. Things change here quite frequently,
  921.        so just look around for it. There is usually only about 3
  922.        subdirs, so you should be able to find it. Now, if it really
  923.        is an alpha, or pre-alpha driver, then please treat it as
  924.        such. In other words, don't complain because you can't figure
  925.        out what to do with it. If you can't figure out how to install
  926.        it, then you probably shouldn't be testing it. Also, if it brings
  927.        your machine down, don't complain. Instead, send us a well
  928.        documented bug report, or even better, a patch!
  929.  
  930.     Q: Is there token ring support for Linux?
  931.  
  932.     A: No, there is no token ring support in Linux. To support token ring
  933.        requires more than only a writing a device driver, it also requires
  934.        writing the source routing routines for token ring.  Given that
  935.        token ring is expensive, not fast, and will probably be swept away
  936.        by 100baseVG in a few months, it doesn't seem worth it to write
  937.        a driver. In case anyone wants to, I looked at writing a token ring
  938.        device driver, and concluded that the hardware interface
  939.        wasn't too difficult to do, but writing the support for source
  940.        routing would take significantly longer than I was willing to spend
  941.        on an expensive and dying technology.
  942.  
  943.        Alan Cox adds: "It will require [...] changes to the bottom socket
  944.        layer to support 802.2 and 802.2 based TCP/IP. Don't expect
  945.        anything soon."
  946.  
  947.     Q: Is there IPX or Novell support available for Linux?
  948.  
  949.     A: Alan Cox writes: "The novell protocols are available from novell
  950.        for various amounts. IPX is freely documented. SPX is about $1000
  951.        but I'm told Xerox SPP is identical. _PLEASE_ has anyone got any
  952.        freely distributable Xerox SPP code/documentation?  The novell
  953.        server spec costs you $15000 + royalties providing you only
  954.        want to write a client, or $30000 + royalties otherwise. Needless
  955.        to say the final output has to be binary only and subject to a
  956.        novell license. Reading their license rules by my interpretation
  957.        its also impossible for us to do because you would seem to have
  958.        to bar disassembly of your final result, which is not allowed
  959.        in the EEC.
  960.  
  961.        Bits of NCP are known, and I hope eventually enough will be known
  962.        to write limited NCP support into Linux, for the moment I'm poking
  963.        around at IPX, tho this will have to wait until the new network
  964.        code is finished.
  965.  
  966.        An Alpha test IPX protocol layer is available from me (Alan)
  967.        for pl14 or higher. People are also exploring the issue of NCP and 
  968.        the new Dr Dobbs journal article on the innards of netware has 
  969.        provided a core of good information."
  970.  
  971.        As an alternative, Miquel van Smoorenburg suggests the following:
  972.        "It _is_ possible to set up a dedicated PC running both novell and
  973.        the PD SOSS server and let it gateway from NFS to novell. This way
  974.        it is possible to mount the Novell drives on the Unix client.
  975.  
  976.        SOSS is a PD (perhaps with some restrictions, but freely available)
  977.        NFS server for DOS. It includes the PC/IP TCP/IP implementation
  978.        and runs on a packet driver. I have run both a Novell client
  979.        (with PDIPX, a Packet Driver IPX) and this SOSS server together
  980.        successfully."
  981.  
  982.     Q: What needs to be done so that Linux can run two ethernet cards?
  983.  
  984.     A: The easiest solution is to get 0.99pl13, which already includes
  985.        the changes described below.  You can enable additional ethercards
  986.        with LILO parameters such as
  987.         lilo: linux ether=5,0x300,0,1,eth0 ether=15,0x280,eth1
  988.  
  989.        For pre-pl13 you can enable additional ethercards by
  990.        adding another entry to Space.c, naming it "eth1" instead
  991.        of "eth0".  If you want routing to work well you should
  992.        use a recent kernel, say 0.99pl11 or later.  You may also
  993.        want to verify that your driver writer kept all of the
  994.        per-card variables in 'dev->priv'.  Most do, but the pl12
  995.        AT1500/LANCE driver has a single static low-memory buffer.
  996.  
  997.     Q: I have /dev/eth0 as a link to /dev/xxx. Is this right?
  998.  
  999.     A: Contrary to the Net-2 HowTo, the files in /dev/* are not used.
  1000.        I originally thought that they might be an OK idea. I've since 
  1001.        concluded that they won't work, at least in the documented form.
  1002.  
  1003. 9 Miscellaneous.
  1004.  
  1005.     Any other associated stuff that didn't fit in anywhere else gets
  1006.     dumped here. It may not be relevant, and it may not be of general
  1007.     interest but it is here anyway.
  1008.  
  1009. 9.01 The Cabletron story. (...as related by Donald J. Becker)
  1010.  
  1011.         I contacted Cabletron in early December 1992 for
  1012.     programming information (I had called and sent several
  1013.     earlier messages).  I was referred through several
  1014.     different people, and each one took several days to
  1015.     respond before they forwarded me to the next.  Eventually
  1016.     I was told I should deal with their (outside?) developer
  1017.     Mr. Dev.Null.  I persisted, and around March it seemed
  1018.     that I had finally succeed: Cabletron offered to send me
  1019.     an evaluation board (unrequested) and everything I needed
  1020.     to use it (what I wanted).  The hardware showed up right
  1021.     away, and I waited, expecting the the programming
  1022.     information information as well.  About a month later I
  1023.     contacted them, and they told me that "all I needed to use
  1024.     it" was the standard MS-DOS NDIS drivers, a binary on
  1025.     standard driver disk.  The disk envelope was covered in
  1026.     legalese, including no-disassembly, no-reverse-engineering
  1027.     clauses.  It was May (and a few email exchanges later)
  1028.     before I figured out that I had been "slow rolled", and
  1029.     had wasted about 20 hours on this particular windmill.
  1030.  
  1031.     The story isn't over yet.  People have written to me say
  1032.     they have vetoed several medium-sized purchases from
  1033.     Cabletron based on the lack of Linux drivers.  Cabletron
  1034.     must have noticed this because yesterday I got a call
  1035.     _from_ Cabletron (the first!) stating that they will be
  1036.     independently writing a Linux driver.  Of course, their
  1037.     lawyers probably haven't read the GPL yet...
  1038.     
  1039. 9.02 The Xircom story. (...as related by Russ Nelson)
  1040.  
  1041.     From: "Russell Nelson" <nelson@crynwr.com>
  1042.     Subject:   Xircom support (horses mouth)
  1043.     Date: Mon, 30 Aug 1993 17:01:04 +0300
  1044.  
  1045.     Okay, here's the word on Xircom support.  I spoke to Dirk
  1046.     Gates, President of Xircom, about the packet driver
  1047.     situation.  Yes, the packet driver uses the Crynwr packet
  1048.     driver skeleton, and yes, it's in violation of the GPL.
  1049.     However, it was not Xircom's intention to violate the GPL.
  1050.     They paid Persoft to write a proprietary driver for them,
  1051.     and Persoft used the Clarkson skeleton, alleging that the
  1052.     code was in the public domain.  Xircom is unsuable because
  1053.     they were an innocent infringer.  I will shortly be sending
  1054.     them a demand letter.  If they continue to distribute the
  1055.     driver after they get the letter, they will be in
  1056.     infringement and I can *then* sue them.  Xircom has
  1057.     basically the same philosophy as Diamond.  The actual
  1058.     hardware interface is reverse-engineerable in the space of a
  1059.     day or so.  However, Xircom prefers to write all their own
  1060.     drivers, because badly-written drivers reflect badly on
  1061.     their product.  They also perceive a monetary interest in
  1062.     keeping their product proprietary.  Xircom would *probably*
  1063.     release the specs at this point if they were approached by
  1064.     an ad-hoc consortium of potential purchasers who required
  1065.     the specs as a condition of purchase.  However, I don't
  1066.     think this is the right thing to do.  At this point they
  1067.     have already gotten all the proprietary advantage they are
  1068.     going to.  Purchasing their product now will only reward
  1069.     their "bad attitude" toward open systems.  Much better to
  1070.     purchase from a vendor who appreciates and encourages open
  1071.     systems, such as D-Link.
  1072.  
  1073. 9.03    Closing
  1074.  
  1075.     If you have found any glaring typos, or outdated info in this
  1076.     document, please let one of us know.
  1077.  
  1078.     Paul Gortmaker        <gpg109@rsphysse.anu.edu.au>
  1079.     Donald J. Becker    <becker@super.org>
  1080.  
  1081.         =========== end of Ethernet HOWTO ============
  1082.  
  1083.  
  1084.