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
..
Kconfig batman-adv: network coding - add the initial infrastructure code 2013-03-13 22:53:48 +01:00
Makefile batman-adv: move ring_buffer helper functions in bat_iv_ogm 2013-05-29 02:44:54 +02:00
bat_algo.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
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 batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
bitarray.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
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 batman-adv: change VID semantic in the BLA code 2013-05-29 02:44:55 +02:00
debugfs.c batman-adv: network coding - detect coding nodes and remove these after timeout 2013-03-13 22:53:49 +01:00
debugfs.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
distributed-arp-table.c batman-adv: fix typos in kernel doc & comments 2013-05-29 02:44:53 +02:00
distributed-arp-table.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
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 batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
gateway_common.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
hard-interface.c batman-adv: don't initialise batman_iv private members in hard-interface.c 2013-05-29 02:44:54 +02:00
hard-interface.h batman-adv: Don't always delete softif when last slave was removed 2013-03-27 10:27:32 +01:00
hash.c batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
hash.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
icmp_socket.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
icmp_socket.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
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
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 batman-adv: slightly improve neighbor creation debug message 2013-05-29 02:44:53 +02:00
originator.h batman-adv: drop useless argument seqno in neighbor creation 2013-05-29 02:44:53 +02:00
packet.h batman-adv: Fix endianness errors for network coding 2013-03-27 10:27:31 +01:00
routing.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
routing.h batman-adv: move batadv_slide_own_bcast_window to bat_iv_ogm.c 2013-05-29 02:44:54 +02:00
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 batman-adv: Allow to use rntl_link for device creation/deletion 2013-03-27 10:27:34 +01:00
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 batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
translation-table.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
translation-table.h batman-adv: pass a 16bit long flag argument to tt_global_add() 2013-05-29 02:44:55 +02:00
types.h batman-adv: change VID semantic in the BLA code 2013-05-29 02:44:55 +02:00
unicast.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
unicast.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00
vis.c batman-adv: set skb priority according to content 2013-08-28 11:31:50 +02:00
vis.h batman-adv: update copyright years 2013-01-19 21:18:12 +08:00