Skip to content

Commit c0b7803

Browse files
committed
Merge tag 'batadv-next-for-davem-20180717' of git://git.open-mesh.org/linux-merge
Simon Wunderlich says: ==================== This feature/cleanup patchset includes the following patches: - Don't call BATMAN_V experimental in Kconfig anymore, by Sven Eckelmann - Enable DAT by default at compile time, by Antonio Quartulli - Remove obsolete default n in Kconfig, by Sven Eckelmann - Fix checkpatch spelling errors, by Sven Eckelmann - Unify header guards style, by Sven Eckelmann - Consolidate batadv_purge_orig functions, by Sven Eckelmann - Replace type define with proper typedef, by Sven Eckelmann ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents fa52531 + 993a4a5 commit c0b7803

File tree

6 files changed

+19
-27
lines changed

6 files changed

+19
-27
lines changed

net/batman-adv/Kconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ config BATMAN_ADV
2424
depends on NET
2525
select CRC16
2626
select LIBCRC32C
27-
default n
2827
help
2928
B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
3029
a routing protocol for multi-hop ad-hoc mesh networks. The
@@ -33,7 +32,7 @@ config BATMAN_ADV
3332
tools.
3433

3534
config BATMAN_ADV_BATMAN_V
36-
bool "B.A.T.M.A.N. V protocol (experimental)"
35+
bool "B.A.T.M.A.N. V protocol"
3736
depends on BATMAN_ADV && !(CFG80211=m && BATMAN_ADV=y)
3837
default y
3938
help
@@ -60,7 +59,7 @@ config BATMAN_ADV_BLA
6059
config BATMAN_ADV_DAT
6160
bool "Distributed ARP Table"
6261
depends on BATMAN_ADV && INET
63-
default n
62+
default y
6463
help
6564
This option enables DAT (Distributed ARP Table), a DHT based
6665
mechanism that increases ARP reliability on sparse wireless
@@ -70,7 +69,6 @@ config BATMAN_ADV_DAT
7069
config BATMAN_ADV_NC
7170
bool "Network Coding"
7271
depends on BATMAN_ADV
73-
default n
7472
help
7573
This option enables network coding, a mechanism that aims to
7674
increase the overall network throughput by fusing multiple
@@ -84,7 +82,6 @@ config BATMAN_ADV_NC
8482
config BATMAN_ADV_MCAST
8583
bool "Multicast optimisation"
8684
depends on BATMAN_ADV && INET && !(BRIDGE=m && BATMAN_ADV=y)
87-
default n
8885
help
8986
This option enables the multicast optimisation which aims to
9087
reduce the air overhead while improving the reliability of
@@ -94,7 +91,6 @@ config BATMAN_ADV_DEBUGFS
9491
bool "batman-adv debugfs entries"
9592
depends on BATMAN_ADV
9693
depends on DEBUG_FS
97-
default n
9894
help
9995
Enable this to export routing related debug tables via debugfs.
10096
The information for each soft-interface and used hard-interface can be

net/batman-adv/bat_iv_ogm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#ifndef _BATMAN_ADV_BATADV_IV_OGM_H_
20-
#define _BATMAN_ADV_BATADV_IV_OGM_H_
19+
#ifndef _NET_BATMAN_ADV_BAT_IV_OGM_H_
20+
#define _NET_BATMAN_ADV_BAT_IV_OGM_H_
2121

2222
#include "main.h"
2323

2424
int batadv_iv_init(void);
2525

26-
#endif /* _BATMAN_ADV_BATADV_IV_OGM_H_ */
26+
#endif /* _NET_BATMAN_ADV_BAT_IV_OGM_H_ */

net/batman-adv/bat_v_ogm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* along with this program; if not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
#ifndef _BATMAN_ADV_BATADV_V_OGM_H_
20-
#define _BATMAN_ADV_BATADV_V_OGM_H_
19+
#ifndef _NET_BATMAN_ADV_BAT_V_OGM_H_
20+
#define _NET_BATMAN_ADV_BAT_V_OGM_H_
2121

2222
#include "main.h"
2323

@@ -34,4 +34,4 @@ void batadv_v_ogm_primary_iface_set(struct batadv_hard_iface *primary_iface);
3434
int batadv_v_ogm_packet_recv(struct sk_buff *skb,
3535
struct batadv_hard_iface *if_incoming);
3636

37-
#endif /* _BATMAN_ADV_BATADV_V_OGM_H_ */
37+
#endif /* _NET_BATMAN_ADV_BAT_V_OGM_H_ */

net/batman-adv/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static int batadv_bla_backbone_table_open(struct inode *inode,
117117

118118
#ifdef CONFIG_BATMAN_ADV_DAT
119119
/**
120-
* batadv_dat_cache_open() - Prepare file handler for reads from dat_chache
120+
* batadv_dat_cache_open() - Prepare file handler for reads from dat_cache
121121
* @inode: inode which was opened
122122
* @file: file handle to be initialized
123123
*

net/batman-adv/originator.c

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,11 @@ static bool batadv_purge_orig_node(struct batadv_priv *bat_priv,
13391339
return false;
13401340
}
13411341

1342-
static void _batadv_purge_orig(struct batadv_priv *bat_priv)
1342+
/**
1343+
* batadv_purge_orig_ref() - Purge all outdated originators
1344+
* @bat_priv: the bat priv with all the soft interface information
1345+
*/
1346+
void batadv_purge_orig_ref(struct batadv_priv *bat_priv)
13431347
{
13441348
struct batadv_hashtable *hash = bat_priv->orig_hash;
13451349
struct hlist_node *node_tmp;
@@ -1385,21 +1389,12 @@ static void batadv_purge_orig(struct work_struct *work)
13851389

13861390
delayed_work = to_delayed_work(work);
13871391
bat_priv = container_of(delayed_work, struct batadv_priv, orig_work);
1388-
_batadv_purge_orig(bat_priv);
1392+
batadv_purge_orig_ref(bat_priv);
13891393
queue_delayed_work(batadv_event_workqueue,
13901394
&bat_priv->orig_work,
13911395
msecs_to_jiffies(BATADV_ORIG_WORK_PERIOD));
13921396
}
13931397

1394-
/**
1395-
* batadv_purge_orig_ref() - Purge all outdated originators
1396-
* @bat_priv: the bat priv with all the soft interface information
1397-
*/
1398-
void batadv_purge_orig_ref(struct batadv_priv *bat_priv)
1399-
{
1400-
_batadv_purge_orig(bat_priv);
1401-
}
1402-
14031398
#ifdef CONFIG_BATMAN_ADV_DEBUGFS
14041399

14051400
/**

net/batman-adv/types.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ struct seq_file;
4343
#ifdef CONFIG_BATMAN_ADV_DAT
4444

4545
/**
46-
* batadv_dat_addr_t - it is the type used for all DHT addresses. If it is
47-
* changed, BATADV_DAT_ADDR_MAX is changed as well.
46+
* typedef batadv_dat_addr_t - type used for all DHT addresses
47+
*
48+
* If it is changed, BATADV_DAT_ADDR_MAX is changed as well.
4849
*
4950
* *Please be careful: batadv_dat_addr_t must be UNSIGNED*
5051
*/
51-
#define batadv_dat_addr_t u16
52+
typedef u16 batadv_dat_addr_t;
5253

5354
#endif /* CONFIG_BATMAN_ADV_DAT */
5455

0 commit comments

Comments
 (0)