Re: protecting netgraph calls from outside of the network context

From: Harti Brandt (harti_at_freebsd.org)
Date: 05/24/04

  • Next message: Wim Rijnders: "netgraph: kernel panic due to M_DONTWAIT when connecting ksocket"
    Date: Mon, 24 May 2004 09:53:04 +0200 (MET DST)
    To: Dmitri Denissov <ddenissov@sandvine.com>
    
    

    On Thu, 20 May 2004, Dmitri Denissov wrote:

    DD>Currently netgraph code uses splnet/splx to protect timeout calls.
    DD>This doesn't work with 5.2 SMP kernel. What is the proper method
    DD>here for a custom netgraph node? Is the Giant lock only the way?

    Have a lock at the ng_timeout/ng_untimeout functions in ng_base.c.
    These should do the proper locking.

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


  • Next message: Wim Rijnders: "netgraph: kernel panic due to M_DONTWAIT when connecting ksocket"