git: if: Per-cpu ifnet/ifaddr statistics, step 1/3

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Feb 14 19:47:15 PST 2013


commit d40991ef14685afbf3a2f143caceb273aa9da6fe
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Feb 13 14:00:14 2013 +0800

    if: Per-cpu ifnet/ifaddr statistics, step 1/3
    
    Wrap ifnet/ifaddr stats updating, setting and extraction into macros;
    ease upcoming changes.

Summary of changes:
 sys/bus/u4b/net/if_axe.c                     |  12 +--
 sys/bus/u4b/net/if_udav.c                    |  10 +--
 sys/bus/u4b/net/usb_ethernet.c               |   6 +-
 sys/dev/atm/en/midway.c                      |   6 +-
 sys/dev/netif/acx/if_acx.c                   |  20 ++---
 sys/dev/netif/ae/if_ae.c                     |  12 +--
 sys/dev/netif/age/if_age.c                   |  22 +++---
 sys/dev/netif/alc/if_alc.c                   |  22 +++---
 sys/dev/netif/ale/if_ale.c                   |  22 +++---
 sys/dev/netif/an/if_an.c                     |  36 ++++-----
 sys/dev/netif/ar/if_ar.c                     |  95 ++++++++++++----------
 sys/dev/netif/ath/ath/if_ath.c               |  20 ++---
 sys/dev/netif/aue/if_aue.c                   |  14 ++--
 sys/dev/netif/axe/if_axe.c                   |  12 +--
 sys/dev/netif/bce/if_bce.c                   |  28 +++----
 sys/dev/netif/bfe/if_bfe.c                   |  18 ++---
 sys/dev/netif/bge/if_bge.c                   |  35 ++++-----
 sys/dev/netif/bnx/if_bnx.c                   |  25 +++---
 sys/dev/netif/bwi/if_bwi.c                   |  22 +++---
 sys/dev/netif/cs/if_cs.c                     |  16 ++--
 sys/dev/netif/cue/if_cue.c                   |  23 +++---
 sys/dev/netif/dc/if_dc.c                     |  42 ++++++----
 sys/dev/netif/de/if_de.c                     |  10 +--
 sys/dev/netif/ed/if_ed.c                     |  16 ++--
 sys/dev/netif/em/if_em.c                     |  24 +++---
 sys/dev/netif/emx/if_emx.c                   |  25 +++---
 sys/dev/netif/ep/if_ep.c                     |  14 ++--
 sys/dev/netif/et/if_et.c                     |  14 ++--
 sys/dev/netif/ex/if_ex.c                     |  20 ++---
 sys/dev/netif/fe/if_fe.c                     |  23 +++---
 sys/dev/netif/fwe/if_fwe.c                   |  10 +--
 sys/dev/netif/fxp/if_fxp.c                   |  18 ++---
 sys/dev/netif/ic/if_ic.c                     |  16 ++--
 sys/dev/netif/igb/if_igb.c                   |  22 +++---
 sys/dev/netif/iwi/if_iwi.c                   |  12 +--
 sys/dev/netif/iwl/iwl2100.c                  |  16 ++--
 sys/dev/netif/iwn/if_iwn.c                   |  18 ++---
 sys/dev/netif/ixgbe/ixgbe.c                  |  21 +++--
 sys/dev/netif/jme/if_jme.c                   |  22 +++---
 sys/dev/netif/kue/if_kue.c                   |  12 +--
 sys/dev/netif/lge/if_lge.c                   |  14 ++--
 sys/dev/netif/lgue/if_lgue.c                 |  12 +--
 sys/dev/netif/lnc/am7990.c                   |  28 +++----
 sys/dev/netif/lnc/am79900.c                  |  26 +++---
 sys/dev/netif/lnc/lance.c                    |   2 +-
 sys/dev/netif/msk/if_msk.c                   |  16 ++--
 sys/dev/netif/mxge/if_mxge.c                 |  10 +--
 sys/dev/netif/my/if_my.c                     |  27 ++++---
 sys/dev/netif/ndis/if_ndis.c                 |   8 +-
 sys/dev/netif/nfe/if_nfe.c                   |  18 ++---
 sys/dev/netif/nge/if_nge.c                   |  20 ++---
 sys/dev/netif/pcn/if_pcn.c                   |  20 ++---
 sys/dev/netif/plip/if_plip.c                 |  22 +++---
 sys/dev/netif/ral/rt2560.c                   |  24 +++---
 sys/dev/netif/ral/rt2661.c                   |  22 +++---
 sys/dev/netif/re/if_re.c                     |  16 ++--
 sys/dev/netif/rl/if_rl.c                     |  17 ++--
 sys/dev/netif/rtw/rtw.c                      |  12 +--
 sys/dev/netif/rue/if_rue.c                   |  20 ++---
 sys/dev/netif/rum/if_rum.c                   |  18 ++---
 sys/dev/netif/sbni/if_sbni.c                 |  12 +--
 sys/dev/netif/sbsh/if_sbsh.c                 |  10 +--
 sys/dev/netif/sf/if_sf.c                     |  16 ++--
 sys/dev/netif/sis/if_sis.c                   |  24 +++---
 sys/dev/netif/sk/if_sk.c                     |  10 +--
 sys/dev/netif/sln/if_sln.c                   |  44 ++++++++---
 sys/dev/netif/sn/if_sn.c                     |  26 +++---
 sys/dev/netif/sr/if_sr.c                     | 113 +++++++++++++++------------
 sys/dev/netif/ste/if_ste.c                   |  18 ++---
 sys/dev/netif/stge/if_stge.c                 |  18 ++---
 sys/dev/netif/ti/if_ti.c                     |  23 +++---
 sys/dev/netif/tl/if_tl.c                     |  18 ++---
 sys/dev/netif/tx/if_tx.c                     |  22 +++---
 sys/dev/netif/txp/if_txp.c                   |  21 ++---
 sys/dev/netif/ural/if_ural.c                 |  18 ++---
 sys/dev/netif/vge/if_vge.c                   |  18 ++---
 sys/dev/netif/vr/if_vr.c                     |  25 +++---
 sys/dev/netif/vx/if_vx.c                     |  16 ++--
 sys/dev/netif/wb/if_wb.c                     |  25 +++---
 sys/dev/netif/wi/if_wi.c                     |  23 +++---
 sys/dev/netif/wpi/if_wpi.c                   |  22 +++---
 sys/dev/netif/xe/if_xe.c                     |  32 ++++----
 sys/dev/netif/xl/if_xl.c                     |  35 +++++----
 sys/dev/virtual/vkernel/net/if_vke.c         |   6 +-
 sys/net/bridge/if_bridge.c                   |  26 +++---
 sys/net/disc/if_disc.c                       |   4 +-
 sys/net/ef/if_ef.c                           |   4 +-
 sys/net/faith/if_faith.c                     |   8 +-
 sys/net/gif/if_gif.c                         |  10 +--
 sys/net/gre/if_gre.c                         |   6 +-
 sys/net/if.c                                 |   8 +-
 sys/net/if_atmsubr.c                         |   2 +-
 sys/net/if_ethersubr.c                       |  18 ++---
 sys/net/if_loop.c                            |  12 +--
 sys/net/if_var.h                             |  20 +++++
 sys/net/ifq_var.h                            |   4 +-
 sys/net/pf/if_pflog.c                        |   4 +-
 sys/net/pf/if_pfsync.c                       |   4 +-
 sys/net/ppp/if_ppp.c                         |  16 ++--
 sys/net/ppp_layer/ppp_tty.c                  |   6 +-
 sys/net/sl/if_sl.c                           |  33 ++++----
 sys/net/sppp/if_spppsubr.c                   |  54 ++++++-------
 sys/net/stf/if_stf.c                         |   4 +-
 sys/net/tap/if_tap.c                         |   8 +-
 sys/net/tun/if_tun.c                         |  14 ++--
 sys/net/vlan/if_vlan.c                       |   8 +-
 sys/netgraph/eiface/ng_eiface.c              |   6 +-
 sys/netgraph/fec/ng_fec.c                    |   8 +-
 sys/netgraph/iface/ng_iface.c                |   8 +-
 sys/netgraph7/iface/ng_iface.c               |  10 +--
 sys/netinet/ip_carp.c                        |  18 ++---
 sys/netinet/ip_gre.c                         |   8 +-
 sys/netinet/ip_input.c                       |   4 +-
 sys/netinet/ip_output.c                      |   9 ++-
 sys/netinet6/ip6_input.c                     |   4 +-
 sys/netinet6/ip6_output.c                    |   9 ++-
 sys/netproto/802_11/wlan/ieee80211.c         |   2 +-
 sys/netproto/802_11/wlan/ieee80211_adhoc.c   |   2 +-
 sys/netproto/802_11/wlan/ieee80211_hostap.c  |   8 +-
 sys/netproto/802_11/wlan/ieee80211_input.c   |   2 +-
 sys/netproto/802_11/wlan/ieee80211_mesh.c    |  14 ++--
 sys/netproto/802_11/wlan/ieee80211_monitor.c |   2 +-
 sys/netproto/802_11/wlan/ieee80211_output.c  |  18 ++---
 sys/netproto/802_11/wlan/ieee80211_sta.c     |   2 +-
 sys/netproto/802_11/wlan/ieee80211_superg.c  |   2 +-
 sys/netproto/802_11/wlan/ieee80211_wds.c     |  12 +--
 sys/netproto/ipx/ipx_ip.c                    |  16 ++--
 127 files changed, 1151 insertions(+), 1064 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d40991ef14685afbf3a2f143caceb273aa9da6fe


-- 
DragonFly BSD source repository


More information about the Commits mailing list