net: Implement a new network stack
commit97070487fa67d0a8b04c4e109966bb4c1b40212e
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 2 Jun 2010 13:22:26 +0000 (2 15:22 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 17 Jun 2010 06:28:16 +0000 (17 08:28 +0200)
tree26c7c116514840d9ac1dcf055030e9706a89ef1a
parent994f95c073caf4df62d1271aef4112ce8aaa8add
net: Implement a new network stack

The old network stack has some bad limitations:

- network commands are required to call NetLoop() which only returns when
  the network layer wants to. Instead we now use a net_poll() function which
  returns after handling one packet (or immediately if no packet is
  available).
- There can be only one packet handler which makes it impossible to handle
  multiple connections
- CamelCaseMakesItHardToRead

The new network stack is implemented as a parallel universe. Currently all
commands still use the old stack. They are converted in subsequent patches.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
include/net.h
net/net.c