linux/net/batman-adv
Matthias Schiffer 6c519bad7b batman-adv: set up network coding packet handlers during module init
batman-adv saves its table of packet handlers as a global state, so handlers
must be set up only once (and setting them up a second time will fail).

The recently-added network coding support tries to set up its handler each time
a new softif is registered, which obviously fails when more that one softif is
used (and in consequence, the softif creation fails).

Fix this by splitting up batadv_nc_init into batadv_nc_init (which is called
only once) and batadv_nc_mesh_init (which is called for each softif); in
addition batadv_nc_free is renamed to batadv_nc_mesh_free to keep naming
consistent.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
2013-10-02 13:46:19 +02:00
..
bat_algo.h
bat_iv_ogm.c batman-adv: move enum definition at the top of the file 2013-08-28 11:31:51 +02:00
bitarray.c
bitarray.h
bridge_loop_avoidance.c batman-adv: fix potential kernel paging errors for unicast transmissions 2013-08-10 22:55:42 +02:00
bridge_loop_avoidance.h
debugfs.c
debugfs.h
distributed-arp-table.c
distributed-arp-table.h
gateway_client.c batman-adv: send GW_DEL event when the gw client mode is deselected 2013-08-28 11:33:00 +02:00
gateway_client.h batman-adv: send GW_DEL event when the gw client mode is deselected 2013-08-28 11:33:00 +02:00
gateway_common.c
gateway_common.h
hard-interface.c
hard-interface.h
hash.c
hash.h
icmp_socket.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
icmp_socket.h
Kconfig
main.c batman-adv: set up network coding packet handlers during module init 2013-10-02 13:46:19 +02:00
main.h batman: Remove reference to compare_ether_addr 2013-09-03 22:34:48 -04:00
Makefile
network-coding.c batman-adv: set up network coding packet handlers during module init 2013-10-02 13:46:19 +02:00
network-coding.h batman-adv: set up network coding packet handlers during module init 2013-10-02 13:46:19 +02:00
originator.c
originator.h
packet.h
routing.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
routing.h
send.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
send.h batman-adv: Move call to batadv_nc_skb_forward() from routing.c to send.c 2013-05-29 02:44:55 +02:00
soft-interface.c batman-adv: set the TAG flag for the vid passed to BLA 2013-09-17 21:15:16 +02:00
soft-interface.h
sysfs.c batman-adv: send GW_DEL event when the gw client mode is deselected 2013-08-28 11:33:00 +02:00
sysfs.h
translation-table.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
translation-table.h
types.h
unicast.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
unicast.h
vis.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
vis.h