On Tuesday, May 03, 2016 01:45:34 Antonio Quartulli wrote:
The ogm_emit and ogm_schedule API calls were rather tight to the B.A.T.M.A.N. IV logic and therefore rather difficult to use with other algorithm implementations.
Remove such calls and move the surrounding logic into the B.A.T.M.A.N. IV specific code.
Signed-off-by: Antonio Quartulli a@unstable.cc
Changes from RFC:
- batadv_send_outstanding_bat_ogm_packet() renamed to batadv_iv_send_outstanding_bat_ogm_packet()
- batadv_iv_iface_enable() moved back to its original location (was moved by
accident)
- code has been tested in qemu with one node
net/batman-adv/bat_iv_ogm.c | 68 ++++++++++++++++++++++++++++++++++++++--- net/batman-adv/bat_v.c | 10 ------ net/batman-adv/hard-interface.c | 3 -- net/batman-adv/main.c | 2 -- net/batman-adv/send.c | 61 +----------------------------------- net/batman-adv/send.h | 3 +- net/batman-adv/types.h | 4 --- 7 files changed, 66 insertions(+), 85 deletions(-)
Applied in revision 0d84685.
Thanks, Marek