linux/net/batman-adv
Sven Eckelmann c2d8b9a6c1 batman-adv: Adjust name for batadv_dat_send_data
The send functions in batman-adv are expected to consume the skb when
either the data is queued up for the underlying driver or when some
precondition failed. batadv_dat_send_data didn't do this and instead
created a copy of the skb, modified it and queued the copy up for
transmission. The caller has to take care that the skb is handled correctly
(for example free'd) when batadv_dat_send_data returns.

This unclear behavior already lead to memory leaks in the recent past.
Renaming the function to batadv_dat_forward_data should make it easier to
identify that the data is forwarded but the skb is not actually
send+consumed.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2019-03-25 10:01:13 +01:00
..
bat_algo.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_algo.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_iv_ogm.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_iv_ogm.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_v_elp.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_v_elp.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_v_ogm.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_v_ogm.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_v.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bat_v.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bitarray.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bitarray.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
bridge_loop_avoidance.c batman-adv: Make sysfs support optional 2019-03-25 10:01:11 +01:00
bridge_loop_avoidance.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
debugfs.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
debugfs.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
distributed-arp-table.c batman-adv: Adjust name for batadv_dat_send_data 2019-03-25 10:01:13 +01:00
distributed-arp-table.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
fragmentation.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
fragmentation.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
gateway_client.c batman-adv: Make sysfs support optional 2019-03-25 10:01:11 +01:00
gateway_client.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
gateway_common.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
gateway_common.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
hard-interface.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
hard-interface.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
hash.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
hash.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
icmp_socket.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
icmp_socket.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
Kconfig batman-adv: Make sysfs support optional 2019-03-25 10:01:11 +01:00
log.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
log.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
main.c batman-adv: Make sysfs support optional 2019-03-25 10:01:11 +01:00
main.h batman-adv: Make sysfs support optional 2019-03-25 10:01:11 +01:00
Makefile batman-adv: Make sysfs support optional 2019-03-25 10:01:11 +01:00
multicast.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
multicast.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
netlink.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
netlink.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
network-coding.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
network-coding.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
originator.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
originator.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
routing.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
routing.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
send.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
send.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
soft-interface.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
soft-interface.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
sysfs.c batman-adv: Warn about sysfs file access 2019-03-25 10:01:12 +01:00
sysfs.h batman-adv: Make sysfs support optional 2019-03-25 10:01:11 +01:00
tp_meter.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
tp_meter.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
trace.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
trace.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
translation-table.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
translation-table.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
tvlv.c batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
tvlv.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00
types.h batman-adv: Drop license boilerplate 2019-03-25 09:31:35 +01:00