Skip to content

batctl: netlink restructuring, part 3

Sven Eckelmann batman 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest20 patches 0 repliesNew
  2. v4 RFC20 patches 3 repliesSuperseded
  3. v3 RFC4 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 RFC1 patch0 repliesSuperseded
v1 RFC2 patches0 repliesSuperseded

Changes in v5 from the cover letter

===

* dropped attribute BATADV_ATTR_MULTICAST_MODE for multicast_mode and replaced it with (basically inversed) BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED
* Add _ENABLED Postfix for boolean attributes:

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20batctl: Add support for config mcast group in event monitorbatman_adv.h event.c netlink.c+439 -50 replies
2/20batctl: Don't allocate new buffer for vlan parent devicefunctions.c functions.h sys.c+10 -210 replies
3/20batctl: Automatically translate vlan to mesh_ifacefunctions.c functions.h gateways.c +6 more+56 -560 replies
4/20batctl: Add settings_data hooks for netlink integrationsys.c sys.h+56 -40 replies
5/20batctl: Parse the arguments for gw_modefunctions.c functions.h gw_mode.c +5 more+324 -430 replies
6/20batctl: Add netlink simple query helpersys.c sys.h+69 -00 replies
7/20batctl: Support generic netlink for gw_mode commandgw_mode.c+206 -690 replies
8/20batctl: Support generic netlink for loglevel commandloglevel.c+110 -280 replies
9/20batctl: Support generic netlink for isolation_mark commandisolation_mark.c+121 -20 replies
10/20batctl: Support generic netlink for orig_interval commandorig_interval.c+82 -20 replies
11/20batctl: Add helper to read/write boolean configuration valuesfunctions.c functions.h sys.c +1 more+81 -00 replies
12/20batctl: Support generic netlink for aggregation commandaggregation.c+44 -20 replies
13/20batctl: Support generic netlink for ap_isolation commandap_isolation.c+66 -20 replies
14/20batctl: Support generic netlink for bonding commandbonding.c+43 -20 replies
15/20batctl: Support generic netlink for bridge_loop_avoidance commandbridge_loop_avoidance.c+44 -20 replies
16/20batctl: Support generic netlink for distributed_arp_table commanddistributed_arp_table.c+44 -20 replies
17/20batctl: Support generic netlink for fragmentation commandfragmentation.c+44 -20 replies
18/20batctl: Support generic netlink for multicast_mode commandmulticast_mode.c+64 -20 replies
19/20batctl: Support generic netlink for network_coding commandnetwork_coding.c+44 -20 replies
20/20batctl: Drop settings_data param listssys.c sys.h+0 -350 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [B.A.T.M.A.N.] [PATCH v5 00/20] batctl: netlink restructuring, part 3

As mentioned earlier, the netlink config restructuring in batctl will be splitted in multiple steps. The first step was already merged and the patch series for the netlink interface in batman-adv was just posted.

The batman-adv weren't directly rejected by Jiro and thus I've started to convert all settings to netlink while still allowing sysfs as fallback.

v5:
===

* dropped attribute BATADV_ATTR_MULTICAST_MODE for multicast_mode and replaced it with (basically inversed) BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED
* Add _ENABLED Postfix for boolean attributes:

  -  BATADV_ATTR_AGGREGATED_OGMS_ENABLED
  -  BATADV_ATTR_AP_ISOLATION_ENABLED
  -  BATADV_ATTR_BONDING_ENABLED
  -  BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED
  -  BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED
  -  BATADV_ATTR_FRAGMENTATION_ENABLED
  -  BATADV_ATTR_NETWORK_CODING_ENABLED

v4:
===

* last patch (which adds the netlink implementation of the settings commands) was splitted in 16 separate patches
* Cc the (most likely) responsible developers for each setting to more directly ask them for feedback

v3:
===

* fix kernel-doc in batman_adv.h
* add three patches to use the netlink interface with the already existing setting commands

v2:
===

* drop of generic config command
* reimplementation of the event command

Kind regards,
Sven

Sven Eckelmann (20):
batctl: Add support for config mcast group in event monitor
batctl: Don't allocate new buffer for vlan parent device
batctl: Automatically translate vlan to mesh_iface
batctl: Add settings_data hooks for netlink integration
batctl: Parse the arguments for gw_mode
batctl: Add netlink simple query helper
batctl: Support generic netlink for gw_mode command
batctl: Support generic netlink for loglevel command
batctl: Support generic netlink for isolation_mark command
batctl: Support generic netlink for orig_interval command
batctl: Add helper to read/write boolean configuration values
batctl: Support generic netlink for aggregation command
batctl: Support generic netlink for ap_isolation command
batctl: Support generic netlink for bonding command
batctl: Support generic netlink for bridge_loop_avoidance command
batctl: Support generic netlink for distributed_arp_table command
batctl: Support generic netlink for fragmentation command
batctl: Support generic netlink for multicast_mode command
batctl: Support generic netlink for network_coding command
batctl: Drop settings_data param lists

 aggregation.c           |  46 ++++-
 ap_isolation.c          |  68 ++++++-
 batman_adv.h            | 190 +++++++++++++++++-
 bonding.c               |  45 ++++-
 bridge_loop_avoidance.c |  46 ++++-
 distributed_arp_table.c |  46 ++++-
 event.c                 | 234 ++++++++++++++++++++++
 fragmentation.c         |  46 ++++-
 functions.c             | 160 +++++++++++++---
 functions.h             |  23 ++-
 gateways.c              |  10 +-
 gw_mode.c               | 416 +++++++++++++++++++++++++++++++---------
 isolation_mark.c        | 123 +++++++++++-
 loglevel.c              | 138 ++++++++++---
 main.c                  |  10 +-
 main.h                  |   6 +-
 mcast_flags.c           |  10 +-
 multicast_mode.c        |  66 ++++++-
 netlink.c               | 108 ++++++++++-
 netlink.h               |   2 +
 network_coding.c        |  46 ++++-
 orig_interval.c         |  84 +++++++-
 originators.c           |  10 +-
 routing_algo.c          |   1 -
 sys.c                   | 219 ++++++++++++++++-----
 sys.h                   |  25 ++-
 26 files changed, 1922 insertions(+), 256 deletions(-)
Signature · 1 line
2.20.1