Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2007 09:17:17 -0400
From:      Aniruddha Bohra <bohra@cs.rutgers.edu>
To:        freebsd-net@freebsd.org
Subject:   ether_input question
Message-ID:  <45FA98DD.3080205@cs.rutgers.edu>

next in thread | raw e-mail | index | archive | help
Hi,
 In two drivers, fxp and em, the assumptions about entering the 
ether_input routine are different.
 From em_rxeof:

#ifdef DEVICE_POLLING
 EM_UNLOCK()
(*ifp->if_input)()
EM_UNLOCK()
#else
  (*ifp->if_input)()
#endif

While in fxp:

FXP_UNLOCK()
(*ifp->if_input)()
FXP_LOCK()


My question is :
Does ether_input() assume it is the only thread executing the code? If 
it is the case, what is the
reason for dropping the lock in the DEVICE_POLLING case?

Thanks
Aniruddha




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45FA98DD.3080205>