1. 30 7月, 2010 1 次提交
  2. 29 7月, 2010 5 次提交
  3. 28 7月, 2010 5 次提交
  4. 27 7月, 2010 14 次提交
  5. 26 7月, 2010 1 次提交
  6. 25 7月, 2010 3 次提交
    • E
      net: pskb_expand_head() optimization · fed66381
      Eric Dumazet 提交于
      Move frags[] at the end of struct skb_shared_info, and make
      pskb_expand_head() copy only the used part of it instead of whole array.
      
      This should avoid kmemcheck warnings and speedup pskb_expand_head() as
      well, avoiding a lot of cache misses.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fed66381
    • S
      net sched: fix race in mirred device removal · 3b87956e
      stephen hemminger 提交于
      This fixes hang when target device of mirred packet classifier
      action is removed.
      
      If a mirror or redirection action is configured to cause packets
      to go to another device, the classifier holds a ref count, but was assuming
      the adminstrator cleaned up all redirections before removing. The fix
      is to add a notifier and cleanup during unregister.
      
      The new list is implicitly protected by RTNL mutex because
      it is held during filter add/delete as well as notifier.
      Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
      Acked-by: NJamal Hadi Salim <hadi@cyberus.ca>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3b87956e
    • S
      sysfs: add attribute to indicate hw address assignment type · c1f79426
      Stefan Assmann 提交于
      Add addr_assign_type to struct net_device and expose it via sysfs.
      This new attribute has the purpose of giving user-space the ability to
      distinguish between different assignment types of MAC addresses.
      
      For example user-space can treat NICs with randomly generated MAC
      addresses differently than NICs that have permanent (locally assigned)
      MAC addresses.
      For the former udev could write a persistent net rule by matching the
      device path instead of the MAC address.
      There's also the case of devices that 'steal' MAC addresses from slave
      devices. In which it is also be beneficial for user-space to be aware
      of the fact.
      
      This patch also introduces a helper function to assist adoption of
      drivers that generate MAC addresses randomly.
      Signed-off-by: NStefan Assmann <sassmann@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c1f79426
  7. 24 7月, 2010 1 次提交
  8. 23 7月, 2010 5 次提交
  9. 22 7月, 2010 5 次提交