]> Zhao Yanbai Git Server - minix.git/commit
This patch switches the MINIX3 ethernet driver stack from a port-based
authorDavid van Moolenbroek <david@minix3.org>
Mon, 17 May 2010 22:22:53 +0000 (22:22 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 17 May 2010 22:22:53 +0000 (22:22 +0000)
commit9ba65d2ea8afd64c6051d4d41212bab010f97d18
tree3ca9fe76142806988a2532dfc6a15d047d6bf11a
parentf5bce902167d389b3fd02a773d2abaea8557175a
This patch switches the MINIX3 ethernet driver stack from a port-based
model to an instance-based model. Each ethernet driver instance is now
responsible for exactly one network interface card. The port field in
/etc/inet.conf now acts as an instance field instead.

This patch also updates the data link protocol. This update:
- eliminates the concept of ports entirely;
- eliminates DL_GETNAME entirely;
- standardizes on using m_source for IPC and DL_ENDPT for safecopies;
- removes error codes from TASK/STAT replies, as they were unused;
- removes a number of other old or unused fields;
- names and renames a few other fields.

All ethernet drivers have been changed to:
- conform to the new protocol, and exactly that;
- take on an instance number based on a given "instance" argument;
- skip that number of PCI devices in probe iterations;
- use config tables and environment variables based on that number;
- no longer be limited to a predefined maximum of cards in any way;
- get rid of any leftover non-safecopy support and other ancient junk;
- have a correct banner protocol figure, or none at all.

Other changes:
* Inet.conf is now taken to be line-based, and supports #-comments.
  No existing installations are expected to be affected by this.
* A new, select-based asynchio library replaces the old one.
  Kindly contributed by Kees J. Bot.
* Inet now supports use of select() on IP devices.
  Combined, the last two changes together speed up dhcpd
  considerably in the presence of multiple interfaces.
* A small bug has been fixed in nonamed.
55 files changed:
commands/dhcpd/devices.c
commands/dhcpd/dhcpd.c
commands/nonamed/nonamed.c
docs/UPDATING
drivers/atl2/atl2.c
drivers/dec21140A/dec21140A.c
drivers/dec21140A/dec21140A.h
drivers/dp8390/dp8390.c
drivers/dp8390/dp8390.h
drivers/dpeth/dp.c
drivers/dpeth/dp.h
drivers/e1000/e1000.c
drivers/e1000/e1000.h
drivers/fxp/fxp.c
drivers/lance/lance.c
drivers/lance/lance.h
drivers/orinoco/hermes.c
drivers/orinoco/orinoco.c
drivers/orinoco/orinoco.h
drivers/rtl8139/liveupdate.c
drivers/rtl8139/rtl8139.c
drivers/rtl8139/rtl8139.h
drivers/rtl8169/rtl8169.c
etc/usr/rc
include/minix/com.h
include/sys/asynchio.h
lib/libc/Makefile
lib/libc/asyn/Makefile.inc [new file with mode: 0644]
lib/libc/asyn/asyn.h [new file with mode: 0644]
lib/libc/asyn/asyn_cancel.c [new file with mode: 0644]
lib/libc/asyn/asyn_close.c [new file with mode: 0644]
lib/libc/asyn/asyn_init.c [new file with mode: 0644]
lib/libc/asyn/asyn_pending.c [new file with mode: 0644]
lib/libc/asyn/asyn_read.c [new file with mode: 0644]
lib/libc/asyn/asyn_special.c [new file with mode: 0644]
lib/libc/asyn/asyn_synch.c [new file with mode: 0644]
lib/libc/asyn/asyn_wait.c [new file with mode: 0644]
lib/libc/asyn/asyn_write.c [new file with mode: 0644]
lib/libc/other/Makefile.inc
lib/libc/other/asynchio.c [deleted file]
lib/libnetdriver/netdriver.c
man/man8/inet.8
servers/inet/generic/ip.c
servers/inet/generic/ip_int.h
servers/inet/generic/ip_read.c
servers/inet/inet.c
servers/inet/inet_config.c
servers/inet/inet_config.h
servers/inet/mnx_eth.c
servers/inet/osdep_eth.h
servers/inet/proto.h
servers/inet/sr.c
test/select/test06_srv.c
test/select/test07_srv.c
test/select/test08_srv.c