cvs commit: src/sys/netinet ip_carp.c

Gleb Smirnoff glebius at FreeBSD.org
Tue Mar 1 13:14:33 GMT 2005


glebius     2005-03-01 13:14:33 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          ip_carp.c 
  Log:
  Add more locking when reading/writing to carp softc. When carp softc is
  attached to a parent interface we use its mutex to lock the softc. This
  means that in several places like carp_ioctl() we lock softc conditionaly.
  This should be redesigned.
  
  To avoid LORs when MII announces us a link state change, we schedule
  a quick callout and call carp_carpdev_state_locked() from it.
  
  Initialize callouts using NET_CALLOUT_MPSAFE.
  
  Sponsored by:   Rambler
  Reviewed by:    mlaier
  
  Revision  Changes    Path
  1.18      +140 -31   src/sys/netinet/ip_carp.c


More information about the cvs-src mailing list