Re: splxxx level?

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 08/31/04

  • Next message: Stephan Uphoff: "Re: splxxx level?"
    Date: Mon, 30 Aug 2004 16:05:34 -0600 (MDT)
    To: sah@softcardsystems.com
    
    

    In message: <Pine.LNX.4.60.0408301548440.4347@athena>
                Sam <sah@softcardsystems.com> writes:
    : Wow guys, this is great stuff, thanks!
    :
    : Here's what I've discovered so far and again,
    : correct me if I'm wrong.
    :
    : In strategy, I need to protect from my callout
    : and netisr running. In my netisr, I need to
    : protect from my callout running. In my callout,
    : I need to protect from my netisr running.
    :
    : It looks like I can use splnet() everywhere *except*
    : where I'm pulling mbufs off of the mbuf queue in the
    : netisr routine. There I'll have to use splimp() to
    : keep from banging heads with the hardware.
    :
    : I think this is the optimum spl-ing as it will allow
    : the network hardware to keep queueing up packets as I
    : process them. Comments?

    I'd be more inclined to use splimp() in all places because the network
    code depends on it. There are some subtle dependencies that one will
    run into if one only uses splnet().

    Warner
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Stephan Uphoff: "Re: splxxx level?"

    Relevant Pages

    • Re: splxxx level?
      ... I vaguely recall seeing that vinum issues ... > protect from my callout running. ... > I need to protect from my netisr running. ...
      (freebsd-arch)
    • Re: splxxx level?
      ... I need to protect from my callout ... I need to protect from my netisr running. ... the network hardware to keep queueing up packets as I ...
      (freebsd-arch)