From patchwork Sun Mar 3 17:02:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 17846 Return-Path: X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id 4D92582137; Sun, 3 Mar 2019 18:04:45 +0100 (CET) Authentication-Results: open-mesh.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=narfation.org header.i=@narfation.org header.b="qwJXH/SF"; dkim-atps=neutral Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:4d88:2000:7::2; helo=v3-1039.vlinux.de; envelope-from=sven@narfation.org; receiver= Received: from v3-1039.vlinux.de (narfation.org [IPv6:2001:4d88:2000:7::2]) by open-mesh.org (Postfix) with ESMTPS id 1EDB7806FB for ; Sun, 3 Mar 2019 18:03:07 +0100 (CET) Received: from sven-desktop.home.narfation.org (p200300C5974904FD0000000000008096.dip0.t-ipconnect.de [IPv6:2003:c5:9749:4fd::8096]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id B6C3611010E; Sun, 3 Mar 2019 18:03:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1551632586; bh=tUcHdE7TxGs9CTbj3UYSrUTHj/WQNl9V1ZXlRPnB4rA=; h=From:To:Cc:Subject:Date:From; b=qwJXH/SFW3NVg50mELj1Dv9ONisscVf/v/t4lhvRMUXSbIWzi0tQLXlQHIWDjyEM6 +8MlEjs0DRYYAqxp44mhJSkTe1wn8UYTXcdhoWaNMJWafxFDEWDfxnX+cxPbcozRqt pRixxG29mAEdMCn2rEYhQ4fcZ7lAiedCvjcj5sps= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 3 Mar 2019 18:02:54 +0100 Message-Id: <20190303170259.31798-1-sven@narfation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [B.A.T.M.A.N.] [PATCH 0/5] batman-adv: Deprecation of sysfs X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" The old sysfs configuration interface was frowned upon by other kernel developers. To work around this problem, the sysfs files were replaced by the batadv generic netlink family. Still they are currently available as alternative interface. These files cannot be removed immediately because userspace tools might still depend on it. Instead schedule for its removal in 2021. To aid userspace tool developers, warn them when these files are still accessed and provide an option to build batman-adv without sysfs support. Kind regards, Sven Sven Eckelmann (5): batman-adv: Drop documentation about debugfs files batman-adv: Drop documentation about sysfs files batman-adv: Make sysfs support optional batman-adv: ABI: Mark sysfs files as deprecated batman-adv: Warn about sysfs file access .../sysfs-class-net-batman-adv | 2 + .../sysfs-class-net-mesh | 2 + Documentation/networking/batman-adv.rst | 110 +++++------------ MAINTAINERS | 4 +- Makefile | 3 + README.external.rst | 1 + gen-compat-autoconf.sh | 3 +- net/batman-adv/Kconfig | 12 ++ net/batman-adv/Makefile | 2 +- net/batman-adv/bridge_loop_avoidance.c | 1 - net/batman-adv/gateway_client.c | 1 - net/batman-adv/main.c | 73 +++++++++++ net/batman-adv/main.h | 2 + net/batman-adv/sysfs.c | 116 +++++++----------- net/batman-adv/sysfs.h | 38 +++++- 15 files changed, 210 insertions(+), 160 deletions(-) rename Documentation/ABI/{testing => obsolete}/sysfs-class-net-batman-adv (92%) rename Documentation/ABI/{testing => obsolete}/sysfs-class-net-mesh (97%)