DragonFly commits List (threaded) for 2009-04
DragonFly BSD
DragonFly commits List (threaded) for 2009-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly-2.3.0.711.ga3dd3 master sys/bus/usb usb_ethersubr.c sys/dev/virtual/net if_vke.c sys/kern kern_poll.c sys/net/altq altq_subr.c sys/net bpf.c sys/net/bridge bridgestp.c if_bridge.c sys/net/gif if_gif.c sys/net/gre if_gre.c sys/net/i4b/driver i4b_ipr.c sys/net if.c if_atmsubr.c if_loop.c if_var.h sys/net/ppp if_ppp.c sys/net/sl if_sl.c sys/net/sppp if_spppsubr.c sys/net/stf if_stf.c sys/net/tap if_tap.c sys/net/tun if_tun.c sys/net/vlan if_vlan.c if_vlan_ether.c sys/netgraph/eiface ng_eiface.c sys/netgraph/fec ng_fec.c sys/netgraph/iface ng_iface.c sys/netinet if_atm.c in.c sys/netinet6 in6.c ip6_mroute.c scope6.c sys/netproto/802_11/wlan ieee80211.c ieee80211_proto.c sys/netproto/802_11/wlan_ratectl/amrr ieee80211_ratectl_amrr.c sys/netproto/802_11/wlan_ratectl/onoe ieee80211_ratectl_onoe.c sys/netproto/atalk at_control.c sys/netproto/atm atm_if.c sys/netproto/ipx ipx.c ipx_ip.c sys/netproto/natm natm.c sys/netproto/ns ns.c ns_ip.c


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 12 Apr 2009 00:58:45 -0700 (PDT)

commit a3dd34d2519ecf8970110832a595b0c98f259da1
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Sun Apr 5 09:04:08 2009 +0800

    Split ifnet serialize step 1/many: Add if_{serialize,deserialize,tryserialize}()
    function pointers to ifnet.
    
    These three function pointers accept ifnet struct and ifnet_serialize
    enumeration.
    
    The ifnet_serialize enumeration indicates the serialization type:
    IFNET_SERIALIZE_ALL:
        All of the serializers should be held.  Except for if_start and if_input,
        this enumeration must be used when call ifnet function pointers.
    IFNET_SERIALIZE_TX:
        Only transmit serializer should be held.  This enumeration could be used
        when calling ifnet.if_start.
    IFNET_SERIALIZE_RX:
        Only receive serializer should be held.  This enumeration could be used
        when calling ifnet.if_input.
    
    If the NIC driver does not set these three function pointer, then if_attach()
    will set them to the default ones: only one serializer (if_serializer) is used
    and ifnet_serialize parameter is ignored.
    
    Following several inline functions are added which are sheer wrappers of the
    three ifnet serialize function pointers:
    ifnet_serialize_{all,tx,rx}()
    ifnet_deserialize_{all,tx,rx}()
    ifnet_tryserialize_{all,tx,rx}()
    
    All of the protocol layers and most of the pseudo drivers are converted.
    
    Discussed-with: dillon@

Summary of changes:
 sys/bus/usb/usb_ethersubr.c                        |    4 +-
 sys/dev/virtual/net/if_vke.c                       |    8 +-
 sys/kern/kern_poll.c                               |   30 +++---
 sys/net/altq/altq_subr.c                           |    4 +-
 sys/net/bpf.c                                      |    4 +-
 sys/net/bridge/bridgestp.c                         |   12 +-
 sys/net/bridge/if_bridge.c                         |   72 +++++++-------
 sys/net/gif/if_gif.c                               |    4 +-
 sys/net/gre/if_gre.c                               |    4 +-
 sys/net/i4b/driver/i4b_ipr.c                       |    4 +-
 sys/net/if.c                                       |  102 +++++++++++++-------
 sys/net/if_atmsubr.c                               |    4 +-
 sys/net/if_loop.c                                  |    4 +-
 sys/net/if_var.h                                   |   91 ++++++++++++++++--
 sys/net/ppp/if_ppp.c                               |   10 +-
 sys/net/sl/if_sl.c                                 |    4 +-
 sys/net/sppp/if_spppsubr.c                         |    8 +-
 sys/net/stf/if_stf.c                               |    4 +-
 sys/net/tap/if_tap.c                               |   24 +++---
 sys/net/tun/if_tun.c                               |   27 ++----
 sys/net/vlan/if_vlan.c                             |   32 +++---
 sys/net/vlan/if_vlan_ether.c                       |    4 +-
 sys/netgraph/eiface/ng_eiface.c                    |   10 +-
 sys/netgraph/fec/ng_fec.c                          |   37 ++++----
 sys/netgraph/iface/ng_iface.c                      |    4 +-
 sys/netinet/if_atm.c                               |    8 +-
 sys/netinet/in.c                                   |   12 +-
 sys/netinet6/in6.c                                 |   11 +-
 sys/netinet6/ip6_mroute.c                          |    4 +-
 sys/netinet6/scope6.c                              |    9 +-
 sys/netproto/802_11/wlan/ieee80211.c               |   12 +-
 sys/netproto/802_11/wlan/ieee80211_proto.c         |    4 +-
 .../wlan_ratectl/amrr/ieee80211_ratectl_amrr.c     |    4 +-
 .../wlan_ratectl/onoe/ieee80211_ratectl_onoe.c     |    4 +-
 sys/netproto/atalk/at_control.c                    |   10 +-
 sys/netproto/atm/atm_if.c                          |    4 +-
 sys/netproto/ipx/ipx.c                             |   14 ++--
 sys/netproto/ipx/ipx_ip.c                          |    4 +-
 sys/netproto/natm/natm.c                           |   31 +++---
 sys/netproto/ns/ns.c                               |   25 +++---
 sys/netproto/ns/ns_ip.c                            |    4 +-
 41 files changed, 382 insertions(+), 289 deletions(-)

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


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]