cvs commit: src/sys/netinet ip_flow.c ip_input.c ip_var.h src/usr.bin/netstat inet.c src/usr.bin/systat ip.c

Hiten Pandya hmp at
Mon May 3 08:20:40 PDT 2004

hmp         2004/05/03 08:18:25 PDT

DragonFly src repository

  Modified files:
    sys/netinet          ip_flow.c ip_input.c ip_var.h 
    usr.bin/netstat      inet.c 
    usr.bin/systat       ip.c 
  Make IP statistics counters per-CPU so they can be updated safely.
  	* For SMP, we index into the array with the current CPU's
  	  as ipstats_ary[gd->gd_cpuid], and for UP we just return
  	  struct at ipstats_ary[0] (CPU-0).
  	* Rename the structure from ipstat to ip_stats.
  	* Wrap function definition of CPU counter aggregation in a
  	  macro called CPU_STATS_FUNC() to avoid duplication.
  	* Retain support for resetting the counters using netstat(1).
  Revision  Changes    Path
  1.4       +2 -0      src/sys/netinet/ip_flow.c
  1.24      +43 -2     src/sys/netinet/ip_input.c
  1.7       +17 -2     src/sys/netinet/ip_var.h
  1.13      +44 -26    src/usr.bin/netstat/inet.c
  1.5       +6 -6      src/usr.bin/systat/ip.c

More information about the Commits mailing list