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 crater.dragonflybsd.org
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 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/sys/netinet/ip_flow.c.diff?r1=1.3&r2=1.4&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/netinet/ip_input.c.diff?r1=1.23&r2=1.24&f=h
http://www.dragonflybsd.org/cvsweb/src/sys/netinet/ip_var.h.diff?r1=1.6&r2=1.7&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/netstat/inet.c.diff?r1=1.12&r2=1.13&f=h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/systat/ip.c.diff?r1=1.4&r2=1.5&f=h





More information about the Commits mailing list