Skip to content

batctl: Add netlink support for sysfs-only functionality

Sven Eckelmann batman 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3batctl: Support checking of meshif without sysfsdebug.c functions.c functions.h+176 -200 replies
2/3batctl: Reimplement VLAN translation using helperfunctions.c+71 -1580 replies
3/3batctl: Add netlink fallback for sysfs' iface_statusinterface.c+91 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [B.A.T.M.A.N.] [PATCH 0/3] batctl: Add netlink support for sysfs-only functionality

Hi,

some functionality in batctl was previously using sysfs to implement some of its features. Since the sysfs support can now be disabled in the kernel, these features were broken in such setups. This was especially problematic for functionality which depends on the main mesh interface. The check to make sure that this is interface is a valid batadv interface were exclusively using sysfs.

Switching them to (or actually extending them to support) netlink should fix this. The old sysfs functionality is still here but can be removed in the future.

Kind regards,
Sven

Sven Eckelmann (3):
batctl: Support checking of meshif without sysfs
batctl: Reimplement VLAN translation using helper
batctl: Add netlink fallback for sysfs' iface_status

 debug.c     |   2 +-
 functions.c | 407 ++++++++++++++++++++++++++++++----------------------
 functions.h |   2 +-
 interface.c |  92 +++++++++++-
 4 files changed, 331 insertions(+), 172 deletions(-)
Signature · 1 line
2.20.1