DragonFly BSD
DragonFly commits List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 19 Jan 2005 18:50:44 +0100

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
Description: PGP signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]