1. 20 1月, 2011 6 次提交
  2. 15 1月, 2011 1 次提交
  3. 14 1月, 2011 2 次提交
    • E
      net: remove dev_txq_stats_fold() · 1ac9ad13
      Eric Dumazet 提交于
      After recent changes, (percpu stats on vlan/tunnels...), we dont need
      anymore per struct netdev_queue tx_bytes/tx_packets/tx_dropped counters.
      
      Only remaining users are ixgbe, sch_teql, gianfar & macvlan :
      
      1) ixgbe can be converted to use existing tx_ring counters.
      
      2) macvlan incremented txq->tx_dropped, it can use the
      dev->stats.tx_dropped counter.
      
      3) sch_teql : almost revert ab35cd4b (Use net_device internal stats)
          Now we have ndo_get_stats64(), use it, even for "unsigned long"
      fields (No need to bring back a struct net_device_stats)
      
      4) gianfar adds a stats structure per tx queue to hold
      tx_bytes/tx_packets
      
      This removes a lockdep warning (and possible lockup) in rndis gadget,
      calling dev_get_stats() from hard IRQ context.
      
      Ref: http://www.spinics.net/lists/netdev/msg149202.htmlReported-by: NNeil Jones <neiljay@gmail.com>
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      CC: Jarek Poplawski <jarkao2@gmail.com>
      CC: Alexander Duyck <alexander.h.duyck@intel.com>
      CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      CC: Sandeep Gopalpet <sandeep.kumar@freescale.com>
      CC: Michal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1ac9ad13
    • P
      netfilter: ctnetlink: fix loop in ctnetlink_get_conntrack() · f31e8d49
      Pablo Neira Ayuso 提交于
      This patch fixes a loop in ctnetlink_get_conntrack() that can be
      triggered if you use the same socket to receive events and to
      perform a GET operation. Under heavy load, netlink_unicast()
      may return -EAGAIN, this error code is reserved in nfnetlink for
      the module load-on-demand. Instead, we return -ENOBUFS which is
      the appropriate error code that has to be propagated to
      user-space.
      Reported-by: NHolger Eitzenberger <holger@eitzenberger.org>
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      f31e8d49
  4. 13 1月, 2011 7 次提交
  5. 12 1月, 2011 8 次提交
  6. 11 1月, 2011 9 次提交
  7. 10 1月, 2011 7 次提交