Re: pflow(4) vs NET_LOCK()

2017-01-02 Thread Alexander Bluhm
On Mon, Jan 02, 2017 at 12:12:42PM +0100, Martin Pieuchot wrote: > Diff below adds an helper for pflowioctl(). The goal is to reduce the > number of error paths where the NET_LOCK() should be released. > > ok? I would not call it pflow_init(), as ..._init() functions are often called during boot

pflow(4) vs NET_LOCK()

2017-01-02 Thread Martin Pieuchot
Diff below adds an helper for pflowioctl(). The goal is to reduce the number of error paths where the NET_LOCK() should be released. ok? Index: net/if_pflow.c === RCS file: /cvs/src/sys/net/if_pflow.c,v retrieving revision 1.65 diff