From patchwork Sun Oct 14 15:16:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 17503 X-Patchwork-Delegate: sw@simonwunderlich.de 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 A6C8981F37; Sun, 14 Oct 2018 17:16:21 +0200 (CEST) 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="o/hRf9sU"; 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 668FF8041F for ; Sun, 14 Oct 2018 17:16:19 +0200 (CEST) Received: from sven-desktop.home.narfation.org (p200300C593C8F3FD0000000000004065.dip0.t-ipconnect.de [IPv6:2003:c5:93c8:f3fd::4065]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 69B47110108; Sun, 14 Oct 2018 17:16:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=narfation.org; s=20121; t=1539530178; bh=ySACURJCgBTc+gurYteVPdM55CvKgOrtPy8jpvEw7W8=; h=From:To:Cc:Subject:Date:From; b=o/hRf9sUKCCDd0d8BI0vH5jkyipmA7bv1iqoZMQcPEoyJeNKarjfssHy7d6i60P/p qT06RIBiqOXQsd2stm8ZDe0DfPri6cjO7pX+HWp7IZ5wWANKFCNY295BfkpoQzIpOf OmrMQxtZBzVtSGYr7qB7Q44saGBgXwmJ81HYQVpk= From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 14 Oct 2018 17:16:14 +0200 Message-Id: <20181014151614.9494-1-sven@narfation.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: Move CRC16 dependency to BATMAN_ADV_BLA 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 commit c5e7a06a2961 ("batman-adv: use CRC32C instead of CRC16 in TT code") switched the translation table code from crc16 to crc32c. The (optional) bridge loop avoidance code is the only user of this function. batman-adv should only select CRC16 when it is actually using it. Signed-off-by: Sven Eckelmann --- net/batman-adv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/Kconfig b/net/batman-adv/Kconfig index f75816f5..449ab2e5 100644 --- a/net/batman-adv/Kconfig +++ b/net/batman-adv/Kconfig @@ -22,7 +22,6 @@ config BATMAN_ADV tristate "B.A.T.M.A.N. Advanced Meshing Protocol" depends on NET - select CRC16 select LIBCRC32C help B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is @@ -48,6 +47,7 @@ config BATMAN_ADV_BATMAN_V config BATMAN_ADV_BLA bool "Bridge Loop Avoidance" depends on BATMAN_ADV && INET + select CRC16 default y help This option enables BLA (Bridge Loop Avoidance), a mechanism