20 Aug, 2010

35 commits


19 Aug, 2010

5 commits

  • Netconsole requires poll support.

    Signed-off-by: Michal Simek
    Signed-off-by: David S. Miller

    Michal Simek
     
  • Use integrated net_device_stats instead of a static one, and make sure
    no transient values are feeded. ndo_get_stats() can be called by
    concurrent cpus.

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • vxge_get_stats() is racy, since it clears a block of memory (net_stats)
    possibly still used by other cpus.

    We can update this driver to full 64bit stats, since ndo_get_stats64()
    provides a private block to store results, and driver maintains 64bit
    counters already.

    We also remove net_stats field from struct vxge_sw_stats

    Signed-off-by: Eric Dumazet
    Acked-by: Jon Mason
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • No need to clear device stats in lec_open()

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • struct net_device has its own struct net_device_stats member, so use
    this one instead of a private copy in the ether1_priv struct. As the new
    ndo_get_stats function would just return dev->stats we can omit it. This
    patch also removes an incorrect memset of the stats on open.

    Signed-off-by: Tobias Klauser
    Signed-off-by: David S. Miller

    Tobias Klauser