An error occurred fetching the project authors.
  1. 29 May, 2015 1 commit
  2. 12 Jan, 2014 3 commits
  3. 08 Jan, 2014 1 commit
  4. 23 Oct, 2013 1 commit
  5. 27 Mar, 2013 1 commit
  6. 19 Jan, 2013 1 commit
  7. 01 Jul, 2012 2 commits
  8. 24 Jun, 2012 1 commit
  9. 20 Jun, 2012 2 commits
  10. 16 Feb, 2012 1 commit
  11. 22 Aug, 2011 1 commit
  12. 09 Jun, 2011 1 commit
    • Sven Eckelmann's avatar
      batman-adv: Use enums for related constants · e8958dbf
      Sven Eckelmann authored
      CodingStyle "Chapter 12: Macros, Enums and RTL" recommends to use enums
      for several related constants. Internal states can be used without
      defining the actual value, but all values which are visible to the
      outside must be defined as before. Normal values are assigned as usual
      and flags are defined by shifts of a bit.
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      e8958dbf
  13. 30 May, 2011 1 commit
  14. 01 May, 2011 1 commit
  15. 05 Mar, 2011 2 commits
  16. 31 Jan, 2011 2 commits
  17. 16 Dec, 2010 1 commit
  18. 29 Nov, 2010 2 commits
  19. 20 Sep, 2010 1 commit
    • Sven Eckelmann's avatar
      Staging: batman-adv: Use refcnt to track usage count of batman_if · 47f621dd
      Sven Eckelmann authored
      get_batman_if_by_netdev and get_active_batman_if may leak data from the
      rcu protected list of interfaces. The rcu protected list of all gateway
      nodes leaks the actual data outside the read-side critical area. This is
      not valid as we may free the data using a call_rcu created callback
      after we unlock using rcu_read_unlock. A workaround is to provide a
      reference count to be sure that the memory isn't freed to early.
      
      It is currently only to implement the already existing functionality and
      doesn't provide the full tracking of all usage cases.
      
      Additionally, we must hardif_hold inside the
      rcu_read_lock()..rcu_read_unlock() before we attach to the structure
      which "leaks" it. When another function now removed it from its usage
      context (primary_if, usage on stack, ...) then we must hardif_put it. If
      it is decremented to zero then we can issue the call_rcu to the freeing
      function. So "put" is not allowed inside an rcu_read_lock.
      Signed-off-by: default avatarSven Eckelmann <sven.eckelmann@gmx.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      47f621dd
  20. 05 Sep, 2010 1 commit
  21. 08 Jul, 2010 1 commit
  22. 11 May, 2010 2 commits
  23. 04 Mar, 2010 1 commit
    • Simon Wunderlich's avatar
      Staging: batman-adv: receive packets directly using skbs · e7017195
      Simon Wunderlich authored
      This patch removes the (ugly and racy) packet receiving thread and the
      kernel socket usage. Instead, packets are received directly by registering
      the ethernet type and handling skbs instead of self-allocated buffers.
      
      Some consequences and comments:
      
       * we don't copy the payload data when forwarding/sending/receiving data
         anymore. This should boost performance.
       * packets from/to different interfaces can be (theoretically) processed
         simultaneously. Only the big originator hash lock might be in the way.
       * no more polling or sleeping/wakeup/scheduling issues when receiving
         packets
       * this might introduce new race conditions.
       * aggregation and vis code still use packet buffers and are not (yet)
         converted.
       * all spinlocks were converted to irqsave/restore versions to solve
         some lifelock issues when preempted. This might be overkill, some
         of these locks might be reverted later.
       * skb copies are only done if neccesary to avoid overhead
      
      performance differences:
      
       * we made some "benchmarks" with intel laptops.
       * bandwidth on Gigabit Ethernet increased from ~500 MBit/s to ~920 MBit/s
       * ping latency decresed from ~2ms to ~0.2 ms
      
      I did some tests on my 9 node qemu environment and could confirm that
      usual sending/receiving, forwarding, vis, batctl ping etc works.
      Signed-off-by: default avatarSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
      Acked-by: default avatarSven Eckelmann <sven.eckelmann@gmx.de>
      Acked-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
      Acked-by: default avatarLinus Lüssing <linus.luessing@web.de>
      Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      e7017195
  24. 11 Dec, 2009 1 commit