1. 20 Jun, 2011 24 commits
    • Richard Cochran's avatar
      fs_enet: enable transmit time stamping. · e3097211
      Richard Cochran authored
      This patch enables software (and phy device) transmit time stamping.
      Compile tested only.
      
      Cc: Pantelis Antoniou <pantelis.antoniou@gmail.com>
      Cc: Vitaly Bordug <vbordug@ru.mvista.com>
      Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e3097211
    • Richard Cochran's avatar
      macb: enable transmit time stamping. · e072092f
      Richard Cochran authored
      This patch enables software (and phy device) transmit time stamping
      Compile tested only.
      
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e072092f
    • Richard Cochran's avatar
      fec_mpc52xx: enable transmit and receive time stamping. · d6cf0732
      Richard Cochran authored
      This patch enables software (and phy device) time stamping. Software
      time stamping using the SO_TIMESTAMPING API was tested and found to be
      working on the LITE5200B board.
      
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d6cf0732
    • Richard Cochran's avatar
      ll_temac: enable transmit and receive time stamping. · 93e0ed15
      Richard Cochran authored
      This patch enables software (and phy device) time stamping. Since this MAC
      is based on phylib, adding the hooks makes hardware time stamping in the
      phy possible.
      
      Compile tested only.
      
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      93e0ed15
    • Richard Cochran's avatar
      emaclite: enable transmit and receive time stamping. · 570773c5
      Richard Cochran authored
      This patch enables software (and phy device) time stamping. Since this
      MAC uses phylib, adding the hooks make hardware time stamping in the phy
      possible.
      
      Compile tested only.
      
      Cc: John Linn <john.linn@xilinx.com>
      Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      570773c5
    • Richard Cochran's avatar
      lib8390: enable transmit and receive time stamping. · d76b7e2f
      Richard Cochran authored
      This patch enables software (and phy device) time stamping. This file is
      included by drivers/net/ax88796.c, which is based on phylib. So, this
      patch makes hardware time stamping in the PHY possible.
      
      Compile tested only.
      Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d76b7e2f
    • Richard Cochran's avatar
      net: export the receive time stamping hook for non-NAPI drivers · 238442f6
      Richard Cochran authored
      Ethernet MAC drivers based on phylib (but not using NAPI) can
      enable hardware time stamping in phy devices by calling netif_rx()
      conditionally based on a call to skb_defer_rx_timestamp().
      
      This commit exports that function so that drivers calling it may
      be compiled as modules.
      Signed-off-by: default avatarRichard Cochran <richard.cochran@omicron.at>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      238442f6
    • Eric Dumazet's avatar
      myricom: remove stats_lock · 306ff6eb
      Eric Dumazet authored
      stats_lock is non useless, lets remove it.
      
      Also, ndo_get_stats64() doesnt have to clear the stats, caller takes
      care of this.
      
      Note: folding 32bit fields in 64bit one is problematic when one of 32bit
      values wraps : SNMP reader will see a ~2^32 back change in a 64bit
      value. A future patch should fix this.
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      CC: Stephen Hemminger <shemminger@vyatta.com>
      CC: Andrew Gallatin <gallatin@myri.com>
      CC: Brice Goglin <brice@myri.com>
      Acked-by: default avatarJon Mason <mason@myri.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      306ff6eb
    • David S. Miller's avatar
    • Jon Mason's avatar
      myri_sbus: remove driver · 1b9c4134
      Jon Mason authored
      Remove the myri_sbus driver. Why?
      * There is no possibility of ethernet mode on this adapter, so it's
        Myrinet only.
      * It won't inter-op with modern versions of Myrinet, and thus can only
        work with legacy adapters.
      * There are no in-kernel Linux drivers for the PCI version of this
        adapter, so it only can work on ~15 year old Sun hardware.
      
      It's long in the tooth, let's take it to the knackers.
      Signed-off-by: default avatarJon Mason <mason@myri.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1b9c4134
    • Antonio Quartulli's avatar
      batman-adv: improved gateway tq-based selection · 43676ab5
      Antonio Quartulli authored
      If a client issues a DHCPREQUEST for renewal, the packet is dropped
      if the old destination (the old gateway for the client) TQ is smaller
      than the current best gateway TQ less GW_THRESHOLD
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      43676ab5
    • Antonio Quartulli's avatar
      batman-adv: throw uevent in userspace on gateway add/change/del event · 19595e05
      Antonio Quartulli authored
      In case of new default gw, changing the default gw or deleting the default gw a
      uevent is triggered with type=gw, action=add/change/del and
      data={GW_ORIG_ADDRESS} (if any).
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      19595e05
    • Antonio Quartulli's avatar
      batman-adv: gateway election code refactoring · 2265c141
      Antonio Quartulli authored
      The gateway election mechanism has been a little revised. Now the
      gw_election is trigered by an atomic_t flag (gw_reselect) which is set
      to 1 in case of election needed, avoding to set curr_gw to NULL.
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      2265c141
    • Antonio Quartulli's avatar
      batman-adv: add wrapper function to throw uevent in userspace · c6bda689
      Antonio Quartulli authored
      Using throw_uevent() is now possible to trigger uevent signal that can
      be recognised in userspace. Uevents will be triggered through the
      /devices/virtual/net/{MESH_IFACE} kobject.
      
      A triggered uevent has three properties:
      - type: the event class. Who generates the event (only 'gw' is currently
        defined). Corresponds to the BATTYPE uevent variable.
      - action: the associated action with the event ('add'/'change'/'del' are
        currently defined). Corresponds to the BATACTION uevent variable.
      - data: any useful data for the userspace. Corresponds to the BATDATA
        uevent variable.
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      c6bda689
    • Antonio Quartulli's avatar
      batman-adv: protect the local and the global trans-tables with rcu · 7683fdc1
      Antonio Quartulli authored
      The local and the global translation-tables are now lock free and rcu
      protected.
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Acked-by: default avatarSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      7683fdc1
    • Antonio Quartulli's avatar
      batman-adv: improved roaming mechanism · cc47f66e
      Antonio Quartulli authored
      With the current client announcement implementation, in case of roaming,
      an update is triggered on the new AP serving the client. At that point
      the new information is spread around by means of the OGM broadcasting
      mechanism. Until this operations is not executed, no node is able to
      correctly route traffic towards the client. This obviously causes packet
      drops and introduces a delay in the time needed by the client to recover
      its connections.
      
      A new packet type called ROAMING_ADVERTISEMENT is added to account this
      issue.
      
      This message is sent in case of roaming from the new AP serving the
      client to the old one and will contain the client MAC address. In this
      way an out-of-OGM update is immediately committed, so that the old node
      can update its global translation table. Traffic reaching this node will
      then be redirected to the correct destination utilising the fresher
      information. Thus reducing the packet drops and the connection recovery
      delay.
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      cc47f66e
    • Antonio Quartulli's avatar
      batman-adv: improved client announcement mechanism · a73105b8
      Antonio Quartulli authored
      The client announcement mechanism informs every mesh node in the network
      of any connected non-mesh client, in order to find the path towards that
      client from any given point in the mesh.
      
      The old implementation was based on the simple idea of appending a data
      buffer to each OGM containing all the client MAC addresses the node is
      serving. All other nodes can populate their global translation tables
      (table which links client MAC addresses to node addresses) using this
      MAC address buffer and linking it to the node's address contained in the
      OGM. A node that wants to contact a client has to lookup the node the
      client is connected to and its address in the global translation table.
      
      It is easy to understand that this implementation suffers from several
      issues:
       - big overhead (each and every OGM contains the entire list of
         connected clients)
       - high latencies for client route updates due to long OGM trip time and
         OGM losses
      
      The new implementation addresses these issues by appending client
      changes (new client joined or a client left) to the OGM instead of
      filling it with all the client addresses each time. In this way nodes
      can modify their global tables by means of "updates", thus reducing the
      overhead within the OGMs.
      
      To keep the entire network in sync each node maintains a translation
      table version number (ttvn) and a translation table checksum. These
      values are spread with the OGM to allow all the network participants to
      determine whether or not they need to update their translation table
      information.
      
      When a translation table lookup is performed in order to send a packet
      to a client attached to another node, the destination's ttvn is added to
      the payload packet. Forwarding nodes can compare the packet's ttvn with
      their destination's ttvn (this node could have a fresher information
      than the source) and re-route the packet if necessary. This greatly
      reduces the packet loss of clients roaming from one AP to the next.
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      a73105b8
    • Antonio Quartulli's avatar
      batman-adv: Unify the first 3 bytes in each packet · 3b27ffb0
      Antonio Quartulli authored
      The amount of duplicated code in the receive and routing code can be
      reduced when all headers provide the packet type, version and ttl in the
      same first bytes.
      Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      3b27ffb0
    • Sven Eckelmann's avatar
      batman-adv: Reduce usage of char · b4e17054
      Sven Eckelmann authored
      char was used in different places to store information without really
      using the characteristics of that data type or by ignoring the fact that
      char has not a well defined signedness.
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      b4e17054
    • David Howells's avatar
      batman-adv: count_real_packets() in batman-adv assumes char is signed · b2c44a53
      David Howells authored
      count_real_packets() in batman-adv assumes char is signed, and returns -1
      through it:
      
      net/batman-adv/routing.c: In function 'receive_bat_packet':
      net/batman-adv/routing.c:739: warning: comparison is always false due to limited range of data type
      
      Use int instead.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      [sven@narfation.org: Rebase on top of current version]
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      b2c44a53
    • Sven Eckelmann's avatar
      batman-adv: Keep interface_tx as local function · db69ecfc
      Sven Eckelmann authored
      interface_tx is not used outside of soft-interface.c and thus doesn't
      need to be declared inside soft-interface.h
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      db69ecfc
    • Sven Eckelmann's avatar
      batman-adv: Move compare_orig to originator.c · b8e2dd13
      Sven Eckelmann authored
      compare_orig is only used in context of orig_node which is managed
      inside originator.c. It is not necessary to keep that function inside
      the header originator.h.
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      b8e2dd13
    • Eric Dumazet's avatar
      veth: fix 64bit stats on 32bit arches · cf05c700
      Eric Dumazet authored
      Using 64bit stats on 32bit arches must use a synchronization or readers
      can get transient values.
      
      Fixes bug introduced in commit 6311cc44 (veth: convert to 64 bit
      statistics)
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cf05c700
    • Stephen Rothwell's avatar
      net/staging: add needed interrupt.h and hardirq.h includes · 219eb47e
      Stephen Rothwell authored
      Made necessary by commit a6b7a407 ("net: remove
      interrupt.h inclusion from netdevice.h").
      
      Fixes these build errors:
      
      drivers/staging/brcm80211/brcmfmac/dhd_linux.c:1212:3: error: implicit declaration of function 'in_interrupt'
      drivers/staging/brcm80211/brcmfmac/dhd_linux.c:1390:4: error: implicit declaration of function 'tasklet_schedule'
      drivers/staging/brcm80211/brcmfmac/dhd_linux.c:1988:3: error: implicit declaration of function 'tasklet_init'
      drivers/staging/brcm80211/brcmfmac/dhd_linux.c:2288:5: error: implicit declaration of function 'tasklet_kill'
      drivers/staging/brcm80211/brcmfmac/dhd_linux.c:232:24: error: field 'tasklet' has incomplete type
      drivers/staging/brcm80211/brcmfmac/wl_iw.c:3670:2: error: implicit declaration of function 'in_interrupt'
      drivers/staging/brcm80211/brcmsmac/wl_mac80211.c:1349:3: error: implicit declaration of function 'free_irq'
      drivers/staging/brcm80211/brcmsmac/wl_mac80211.c:1352:2: error: implicit declaration of function 'tasklet_kill'
      drivers/staging/brcm80211/brcmsmac/wl_mac80211.c:1538:4: error: implicit declaration of function 'tasklet_schedule'
      drivers/staging/brcm80211/brcmsmac/wl_mac80211.c:765:2: error: implicit declaration of function 'tasklet_init'
      drivers/staging/brcm80211/brcmsmac/wl_mac80211.c:817:2: error: implicit declaration of function 'request_irq'
      drivers/staging/brcm80211/brcmsmac/wl_mac80211.c:817:31: error: 'IRQF_SHARED' undeclared (first use in this function)
      drivers/staging/brcm80211/brcmsmac/wl_mac80211.h:65:24: error: field 'tasklet' has incomplete type
      drivers/staging/rtl8187se/ieee80211/ieee80211.h:994:24: error: field 'ps_task' has incomplete type
      drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:1790:3: error: implicit declaration of function 'tasklet_schedule'
      drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:2590:2: error: implicit declaration of function 'tasklet_init'
      drivers/staging/rtl8187se/r8180.h:461:24: error: field 'irq_rx_tasklet' has incomplete type
      drivers/staging/rtl8187se/r8180_core.c:2764:2: error: implicit declaration of function 'tasklet_init'
      drivers/staging/rtl8187se/r8180_core.c:2954:2: error: implicit declaration of function 'request_irq'
      drivers/staging/rtl8187se/r8180_core.c:2954:55: error: 'IRQF_SHARED' undeclared (first use in this function)
      drivers/staging/rtl8187se/r8180_core.c:3641:4: error: implicit declaration of function 'free_irq'
      drivers/staging/rtl8187se/r8180_core.c:4026:3: error: implicit declaration of function 'tasklet_schedule'
      drivers/staging/rtl8192e/ieee80211/ieee80211.h:2000:24: error: field 'ps_task' has incomplete type
      drivers/staging/rtl8192e/r8192E.h:909:24: error: field 'irq_rx_tasklet' has incomplete type
      drivers/staging/rtl8192e/r8192E.h:910:24: error: field 'irq_tx_tasklet' has incomplete type
      drivers/staging/rtl8192e/r8192E.h:911:31: error: field 'irq_prepare_beacon_tasklet' has incomplete type
      drivers/staging/rtl8192e/r8192E_core.c:2008:2: error: implicit declaration of function 'tasklet_init'
      drivers/staging/rtl8192e/r8192E_core.c:2412:54: error: 'IRQF_SHARED' undeclared (first use in this function)
      drivers/staging/rtl8192e/r8192E_core.c:2412:9: error: implicit declaration of function 'request_irq'
      drivers/staging/rtl8192e/r8192E_core.c:4640:4: error: implicit declaration of function 'free_irq'
      drivers/staging/rtl8192e/r8192E_core.c:620:2: error: implicit declaration of function 'synchronize_irq'
      drivers/staging/rtl8192e/r8192E_core.c:913:3: error: implicit declaration of function 'tasklet_schedule'
      drivers/staging/rtl8192u/ieee80211/ieee80211.h:1993:24: error: field 'ps_task' has incomplete type
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      219eb47e
  2. 19 Jun, 2011 7 commits
  3. 18 Jun, 2011 3 commits
  4. 17 Jun, 2011 6 commits