Skip to content

RFC batman-adv: netlink restructuring, part 2

Sven Eckelmann batman netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest19 patches 5 repliesIn review

Changes in v2 from the cover letter

* rewrite everything in a more nl80211-like message/attribute format.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19batman-adv: Move common genl doit code pre/post hooksnet/batman-adv/netlink.c+97 -430 replies
2/19batman-adv: Prepare framework for mesh genl configinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+110 -650 replies
3/19batman-adv: Prepare framework for hardif genl configinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+230 -230 replies
4/19batman-adv: Prepare framework for vlan genl configinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+208 -20 replies
5/19batman-adv: Add aggregated_ogms mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+18 -00 replies
6/19batman-adv: Add ap_isolation mesh/vlan genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+106 -00 replies
7/19batman-adv: Add bonding mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+17 -00 replies
8/19batman-adv: Add bridge_loop_avoidance mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+24 -00 replies
9/19batman-adv: Add distributed_arp_table mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+25 -00 replies
10/19batman-adv: Add fragmentation mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+19 -00 replies
11/19batman-adv: Add gateway mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/gateway_client.c net/batman-adv/gateway_common.c +4 more+135 -81 reply
12/19batman-adv: Add hop_penalty mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+17 -00 replies
13/19batman-adv: Add log_level mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+23 -00 replies
14/19batman-adv: Add multicast_mode mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+23 -00 replies
15/19batman-adv: Add network_coding mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+24 -00 replies
16/19batman-adv: Add orig_interval mesh genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+23 -01 reply
17/19batman-adv: Add elp_interval hardif genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+23 -00 replies
18/19batman-adv: Add throughput_override hardif genl configurationinclude/uapi/linux/batman_adv.h net/batman-adv/netlink.c+20 -00 replies
19/19batman-adv: Trigger genl notification on sysfs config changenet/batman-adv/netlink.c net/batman-adv/netlink.h net/batman-adv/sysfs.c+63 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC v2 00/19] batman-adv: netlink restructuring, part 2

Hi,

Jiri Pirko called the batman-adv configuration interface a while back "a huge mistake" [1] and suggested genl as alternative. The first reimplementation [2] (based on the team/devlink design) was rejected. This second implementation is now using a nl80211-like design. The objects which can now be modified/queried are:

* mesh/soft-interface (BATADV_CMD_GET_MESH/BATADV_CMD_SET_MESH)
* slave/hard-interface (BATADV_CMD_GET_HARDIF/BATADV_CMD_SET_HARDIF)
* vlan (BATADV_CMD_GET_VLAN/BATADV_CMD_SET_VLAN)

Such a set messages automatically triggers a *_SET_* "reply" via the config multicast group. The same behavior was also added to the sysfs interface.

Luckily, Jiri Pirko told us that he will have a look at patches. I would also like to ask the other developers to check whether their configuration values are represented correctly. And please also check whether the current implementation might collide with some other features which you might have in your pipeline.

v2:
* rewrite everything in a more nl80211-like message/attribute format.

Kind regards,
Sven

[1] https://www.open-mesh.org/issues/300
[2] https://patchwork.open-mesh.org/cover/17610/

Sven Eckelmann (19):
batman-adv: Move common genl doit code pre/post hooks
batman-adv: Prepare framework for mesh genl config
batman-adv: Prepare framework for hardif genl config
batman-adv: Prepare framework for vlan genl config
batman-adv: Add aggregated_ogms mesh genl configuration
batman-adv: Add ap_isolation mesh/vlan genl configuration
batman-adv: Add bonding mesh genl configuration
batman-adv: Add bridge_loop_avoidance mesh genl configuration
batman-adv: Add distributed_arp_table mesh genl configuration
batman-adv: Add fragmentation mesh genl configuration
batman-adv: Add gateway mesh genl configuration
batman-adv: Add hop_penalty mesh genl configuration
batman-adv: Add log_level mesh genl configuration
batman-adv: Add multicast_mode mesh genl configuration
batman-adv: Add network_coding mesh genl configuration
batman-adv: Add orig_interval mesh genl configuration
batman-adv: Add elp_interval hardif genl configuration
batman-adv: Add throughput_override hardif genl configuration
batman-adv: Trigger genl notification on sysfs config change

 include/uapi/linux/batman_adv.h |  188 +++++-
 net/batman-adv/gateway_client.c |    1 -
 net/batman-adv/gateway_common.c |    1 +
 net/batman-adv/gateway_common.h |    6 -
 net/batman-adv/netlink.c        | 1074 +++++++++++++++++++++++++++----
 net/batman-adv/netlink.h        |    6 +
 net/batman-adv/soft-interface.c |    2 +-
 net/batman-adv/sysfs.c          |   64 +-
 8 files changed, 1195 insertions(+), 147 deletions(-)
Signature · 1 line
2.19.1