Re: protecting netgraph calls from outside of the network context

2004-05-24 Thread Harti Brandt
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 fun

RE: protecting netgraph calls from outside of the network context

2004-05-20 Thread Dmitri Denissov
On Thu, 20 May 2004, Julian Elischer wrote: > > This is kind of a bridge, connected to ng_ether interface nodes. > > Sometimes it queues received packets and later /on a timer > call or a call > > from the user space/ > > it re-injects the packets using ng_send_data. > > > > reinjects it to wh

RE: protecting netgraph calls from outside of the network context

2004-05-20 Thread Julian Elischer
On Thu, 20 May 2004, Dmitri Denissov wrote: > This is kind of a bridge, connected to ng_ether interface nodes. > Sometimes it queues received packets and later /on a timer call or a call > from the user space/ > it re-injects the packets using ng_send_data. > reinjects it to where? > > > Fr

RE: protecting netgraph calls from outside of the network context

2004-05-20 Thread Dmitri Denissov
This is kind of a bridge, connected to ng_ether interface nodes. Sometimes it queues received packets and later /on a timer call or a call from the user space/ it re-injects the packets using ng_send_data. > From: Julian Elischer [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 20, 2004 5:34 PM >

protecting netgraph calls from outside of the network context

2004-05-20 Thread Dmitri Denissov
Hi, Currently netgraph code uses splnet/splx to protect timeout calls. This doesn't work with 5.2 SMP kernel. What is the proper method here for a custom netgraph node? Is the Giant lock only the way? Thanks -- Dmitri ___ [EMAIL PROTECTED] mailing li

Re: protecting netgraph calls from outside of the network context

2004-05-20 Thread Julian Elischer
Ha! funny you should ask that exactly now.. I was just discussing this with Robert Watson.. The answer is "it depends on what you want to do". What DO you want to do and what does your node do? netgraph has internal locking in 5.x that you need to interact with but it should be pretty transparr