Re: RFI: Ethernet driver ported from Linux



On Thu, Apr 19, 2007 at 12:14:50PM +1000, Alan Garfield wrote:
On Wed, 2007-04-18 at 11:44 +0400, Yar Tikhiy wrote:

Anyway, back to figuring out arp. UGH!

As a rule, an Ethernet driver needn't worry about ARP by itself
because ARP has own separate module in the network stack. Does
your driver have a partucular reason to?

Apart from using fake MAC addresses, I don't think so.

I don't understand the concept of a fake MAC address, sorry.
The classic Ethernet is a broadcast medium by design, so a very
primitive NIC can just receive all traffic and let the driver or
network stack decide if the host wants a particular frame. On
output, the network stack can usually put any source MAC address
into the frame -- it's true for the most of Ethernet network
interfaces. So MAC addresses are always "fake" in a sense, as
neither the hardware nor the medium design enforces them.

If I understand your case right, the two processors, CPU and SP,
share a hardware buffer, in which they can put some data for the
other side, e.g., an Ethernet frame, and then prod the other side
with an interrupt. That fits the Ethernet model ideally, so there
should be no need for hacks unless the other side, the SP running
a special Linux, takes the whole thing wrong.

--
Yar
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [PATCH][5/5] RapidIO support: net driver over messaging
    ... It's nothing like Ethernet, the only relation is that an Ethernet network ... It gives easy access to RIO messaging from userspace ... ARP works by the driver emulating a broadcast over RIO by sending the ...
    (Linux-Kernel)
  • Re: Degradation of TCP connection
    ... Gigabit ethernet. ... D card's data buffer can only hold about 64K samples worth of data ... link you posted is for an older version of VxWorks that used a BSD- ... but a bug in the ethernet driver. ...
    (comp.os.vxworks)
  • Re: Making Ethernet work on DB1100 (MIPS) ie. "Product Ethernet"
    ... Ethernet chip it uses, I don't have a copy of your project handy, and I ... Sufficient OS support for Ethernet. ... if both SYSGEN_CONNMC and SYSGEN_ETHERNET are set and a driver is ... in the BSP to find out the exact filter. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Making Ethernet work on DB1100 (MIPS) ie. "Product Ethernet"
    ... I don't have a copy of the DB1100 BSP handy, I don't know what kind of Ethernet chip it uses, I don't have a copy of your project handy, and I don't have much to go on, so I can only make guesses and suggest how things should work. ... Looking at CE 6.0, if both SYSGEN_CONNMC and SYSGEN_ETHERNET are set and a driver is loaded, you'll get a system tray icon. ... You would have to look at the DIRS file or the SOURCES file in the BSP to find out the exact filter. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Heads UP - MFC for em coming shortly
    ... class = network ... subclass = ethernet ... multiple locks that are already in my Oplin driver (ixgbe) ...
    (freebsd-stable)