Re: use per cpu counters for udp statistics

2016-11-14 Thread Mike Belopuhov
On 14 November 2016 at 09:38, Martin Pieuchot wrote: > On 14/11/16(Mon) 14:29, David Gwynne wrote: >> its as close to the ipstat change as i can make it. >> >> ok? > > [...] > >> @@ -142,6 +143,7 @@ void udp_notify(struct inpcb *, int); >> void >> udp_init(void) >> { >> + udpcounters =

Re: use per cpu counters for udp statistics

2016-11-14 Thread Martin Pieuchot
On 14/11/16(Mon) 14:29, David Gwynne wrote: > its as close to the ipstat change as i can make it. > > ok? [...] > @@ -142,6 +143,7 @@ void udp_notify(struct inpcb *, int); > void > udp_init(void) > { > + udpcounters = counters_alloc(udps_ncounters, M_COUNTERS); No need to pass M_CO

use per cpu counters for udp statistics

2016-11-13 Thread David Gwynne
its as close to the ipstat change as i can make it. ok? Index: net/pipex.c === RCS file: /cvs/src/sys/net/pipex.c,v retrieving revision 1.89 diff -u -p -r1.89 pipex.c --- net/pipex.c 15 Sep 2016 02:00:18 - 1.89 +++ net/pipex