]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: split routing API data structure in subobjects
authorAntonio Quartulli <a@unstable.cc>
Wed, 25 May 2016 15:27:31 +0000 (23:27 +0800)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 4 Jul 2016 10:37:19 +0000 (12:37 +0200)
commit5308d71fbf6d8df794c5231f4b807bcf990b24b0
treec1838a6a39f690cdc23e14ffbeb416f4f9ff93ce
parent8c497022f5b2f44c933b7cf8b22efa3519acccd0
batman-adv: split routing API data structure in subobjects

The routing API data structure contains several function
pointers that can easily be grouped together based on the
component they work with.

Split the API in subobjects in order to improve definition readability.

At the same time, remove the "bat_" prefix from the API object and
its fields names. These are batman-adv private structs and there is no
need to always prepend such prefix, which only makes function invocations
much much longer.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Reviewed-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
12 files changed:
net/batman-adv/bat_algo.c
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bat_v.c
net/batman-adv/bat_v_elp.c
net/batman-adv/bat_v_ogm.c
net/batman-adv/hard-interface.c
net/batman-adv/netlink.c
net/batman-adv/originator.c
net/batman-adv/routing.c
net/batman-adv/sysfs.c
net/batman-adv/translation-table.c
net/batman-adv/types.h