1. 29 5月, 2015 2 次提交
    • S
      batman-adv: Use safer default config for optional features · dab7b621
      Sven Eckelmann 提交于
      The current default settings for optional features in batman-adv seems to
      be based around the idea that the user only compiles what he requires. They
      will automatically enabled when they are compiled in. For example the
      network coding part of batman-adv is by default disabled in the out-of-tree
      module but will be enabled when the code is compiled during the module
      build.
      
      But distributions like Debian just enable all features of the batman-adv
      kernel module and hope that more experimental features or features with
      possible negative effects have to be enabled using some runtime
      configuration interface.
      
      The network_coding feature can help in specific setups but also has
      drawbacks and is not disabled by default in the out-of-tree module.
      Disabling by default in the runtime config seems to be also quite sane.
      
      The bridge_loop_avoidance is the only feature which is disabled by default
      but may be necessary even in simple setups. Packet loops may even be
      created during the initial node setup when this is not enabled. This is
      different than STP on bridges because mesh is usually used on Adhoc WiFi.
      Having two nodes (by accident) in the same LAN segment and in the same mesh
      network is rather common in this situation.
      Signed-off-by: NSven Eckelmann <sven@narfation.org>
      Acked-by: NMartin Hundebøll <martin@hundeboll.net>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      dab7b621
    • S
      9f6446c7
  2. 08 1月, 2015 1 次提交
  3. 05 8月, 2014 1 次提交
    • S
      batman-adv: increase default hop penalty · e03366ea
      Simon Wunderlich 提交于
      The default hop penalty is currently set to 15, which is applied like
      that for multi interface devices (e.g. dual band APs). Single band
      devices will still use an effective penalty of 30 (hop penalty + wifi
      penalty).
      
      After receiving reports of too long paths in mesh networks with dual
      band APs which were fixed by increasing the hop penalty, we'd like to
      suggest to increase that default value in the default setting as well.
      We've evaluated that increase in a handful of medium sized mesh
      networks (5-20 nodes) with single and dual band devices, with changes
      for the better (shorter routes, higher throughput) or no change at all.
      
      This patch changes the hop penalty to 30, which will give an effective
      penalty of 60 on single band devices (hop penalty + wifi penalty).
      Signed-off-by: NSimon Wunderlich <simon@open-mesh.com>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      Signed-off-by: NAntonio Quartulli <antonio@meshcoding.com>
      e03366ea
  4. 21 7月, 2014 1 次提交
    • A
      batman-adv: fix TT VLAN inconsistency on VLAN re-add · 35df3b29
      Antonio Quartulli 提交于
      When a VLAN interface (on top of batX) is removed and
      re-added within a short timeframe TT does not have enough
      time to properly cleanup. This creates an internal TT state
      mismatch as the newly created softif_vlan will be
      initialized from scratch with a TT client count of zero
      (even if TT entries for this VLAN still exist). The
      resulting TT messages are bogus due to the counter / tt
      client listing mismatch, thus creating inconsistencies on
      every node in the network
      
      To fix this issue destroy_vlan() has to not free the VLAN
      object immediately but it has to be kept alive until all the
      TT entries for this VLAN have been removed. destroy_vlan()
      still removes the sysfs folder so that the user has the
      feeling that everything went fine.
      
      If the same VLAN is re-added before the old object is free'd,
      then the latter is resurrected and re-used.
      
      Implement such behaviour by increasing the reference counter
      of a softif_vlan object every time a new local TT entry for
      such VLAN is created and remove the object from the list
      only when all the TT entries have been destroyed.
      Signed-off-by: NAntonio Quartulli <antonio@open-mesh.com>
      Signed-off-by: NMarek Lindner <mareklindner@neomailbox.ch>
      35df3b29
  5. 16 7月, 2014 1 次提交
    • T
      net: set name_assign_type in alloc_netdev() · c835a677
      Tom Gundersen 提交于
      Extend alloc_netdev{,_mq{,s}}() to take name_assign_type as argument, and convert
      all users to pass NET_NAME_UNKNOWN.
      
      Coccinelle patch:
      
      @@
      expression sizeof_priv, name, setup, txqs, rxqs, count;
      @@
      
      (
      -alloc_netdev_mqs(sizeof_priv, name, setup, txqs, rxqs)
      +alloc_netdev_mqs(sizeof_priv, name, NET_NAME_UNKNOWN, setup, txqs, rxqs)
      |
      -alloc_netdev_mq(sizeof_priv, name, setup, count)
      +alloc_netdev_mq(sizeof_priv, name, NET_NAME_UNKNOWN, setup, count)
      |
      -alloc_netdev(sizeof_priv, name, setup)
      +alloc_netdev(sizeof_priv, name, NET_NAME_UNKNOWN, setup)
      )
      
      v9: move comments here from the wrong commit
      Signed-off-by: NTom Gundersen <teg@jklm.no>
      Reviewed-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c835a677
  6. 14 5月, 2014 1 次提交
  7. 22 3月, 2014 7 次提交
  8. 12 1月, 2014 2 次提交
  9. 09 1月, 2014 5 次提交
  10. 28 12月, 2013 3 次提交
  11. 23 10月, 2013 1 次提交
    • M
      batman-adv: limit local translation table max size · a19d3d85
      Marek Lindner 提交于
      The local translation table size is limited by what can be
      transferred from one node to another via a full table request.
      
      The number of entries fitting into a full table request depend
      on whether the fragmentation is enabled or not. Therefore this
      patch introduces a max table size check and refuses to add
      more local clients when that size is reached. Moreover, if the
      max full table packet size changes (MTU change or fragmentation
      is disabled) the local table is downsized instantaneously.
      Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
      Acked-by: NAntonio Quartulli <ordex@autistici.org>
      a19d3d85
  12. 19 10月, 2013 5 次提交
  13. 12 10月, 2013 6 次提交
  14. 10 10月, 2013 2 次提交
  15. 18 9月, 2013 1 次提交
  16. 28 8月, 2013 1 次提交