cvs commit: src/sys/net if.c netisr.c netisr.h src/sys/netinet ip_demux.c

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Wed Jan 19 09:51:14 PST 2005


On Wednesday, 19. January 2005 18:30, Matthew Dillon wrote:
>   The two solutions are to either ref-count the network interface on a
>   per-packet basis or to synchronize against consumers of the packet.
>   ref-counting is very expensive in an MP system so we have chosen to
>   synchronize against consumers by sending a NOP message to all protocol
>   processing threads and waiting for it to be replied.  This only occurs
> when an interface is being brought down and is not expected to introduce
> any performance issues.

this is really great! i mean, the simplicity is overwhelming... this messaging 
framework really pays off :)

cheers
  simon

-- 
/"\
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
Attachment:
pgp00005.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00005.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/commits/attachments/20050119/c2b103cc/attachment-0020.obj>


More information about the Commits mailing list