From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from diktynna.open-mesh.org (diktynna.open-mesh.org [136.243.236.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C77DC54F4C for ; Tue, 28 Jul 2026 13:45:23 +0000 (UTC) Received: from diktynna.open-mesh.org (localhost [IPv6:::1]) by diktynna.open-mesh.org (Postfix) with ESMTP id CC896849F4 for ; Tue, 28 Jul 2026 15:45:21 +0200 (CEST) ARC-Seal: i=2; cv=pass; a=rsa-sha256; d=open-mesh.org; s=20121; t=1785246321; b=MDs51s4FZrTPC1/LXl1xF5N8cYNvMZGCvl3jYmpqoaViG1NH6KWyaMXqp7ArlmQtWuCdr 255oqu4poms0dG96FMHB9ne8jc5oPWTBmqrIidL5hxPArIpGtyMZPV4rUetacjUpeRRD5nv D1eRdi9ydQj4Al2mRp05bzPgA7E3KxI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1785246321; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=MiDLPwNbw7L9mWuEIB4qYmA/KNvUUU6rZcIkHkVREBg=; b=ru9t82mq71q2qIXkyX3cCdP8NDW2UQoEJqmJ6rp5nGdWSWuPvKhnusLlgmUlKh2g3n4ud ZyYZwF71SlrzfZOn54y9eNe6HBFbtTuSBwx0gEQCkMCkhDf+Ns0v95JZ2zzibQnXY48dePm XnhuGd7lwL+zeouJzv1pYGqmYCFkYy8= ARC-Authentication-Results: i=2; open-mesh.org; dkim=pass header.d=simonwunderlich.de; arc=pass; dmarc=pass header.from=simonwunderlich.de policy.dmarc=none Authentication-Results: open-mesh.org; dkim=pass header.d=simonwunderlich.de; arc=pass; dmarc=pass (Used From Domain Record) header.from=simonwunderlich.de policy.dmarc=none Received: from mail.simonwunderlich.de (mail.simonwunderlich.de [23.88.38.48]) by diktynna.open-mesh.org (Postfix) with ESMTPS id A3C6084672 for ; Tue, 28 Jul 2026 15:39:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; d=open-mesh.org; s=20121; cv=none; t=1785245965; b=e6wKjfwzja7pQcYS3BGXy/5A8+dNZGba9YTxC0z1Z3Q9J/Krsfbb5BcQfmiJ+lyTs+hVC/ fbRRatE2b/VyLsNFk0yg6PI+M69HxFZ/Lzb/DZdW7VIwA3sg47eaB5SAx7+PwM8qfCd2ke WKcr1aoQirNfiwGZrdNvQraFDQMv5hU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1785245965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=MiDLPwNbw7L9mWuEIB4qYmA/KNvUUU6rZcIkHkVREBg=; b=qeMfHAmJPn4dnR9k83IjzNo8sx3cJwmd2+qEFYPP3z2LMfwcmkNcoFegEIZKToWVhh2ERX PcvOKoaWATA+/tSCunh76pkjQU9tgGuJFisOj5+YZ4DxMZdffD1BHDRqQdkUeDbu3Bu1C0 llZWeQlTwAtgfQ/AO+ChpxKwE3pVd7k= ARC-Authentication-Results: i=1; diktynna.open-mesh.org; dkim=pass header.d=simonwunderlich.de header.s=09092022 header.b=cUsDvy5f; spf=pass (diktynna.open-mesh.org: domain of sw@simonwunderlich.de designates 23.88.38.48 as permitted sender) smtp.mailfrom=sw@simonwunderlich.de; dmarc=pass (policy=none) header.from=simonwunderlich.de Received: from kero.packetmixer.de (p200300c59717ead808f168C97E5563A8.dip0.t-ipconnect.de [IPv6:2003:c5:9717:ead8:8f1:68c9:7e55:63a8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.simonwunderlich.de (Postfix) with ESMTPSA id 4C61BFA12A; Tue, 28 Jul 2026 15:39:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=simonwunderlich.de; s=09092022; t=1785245965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MiDLPwNbw7L9mWuEIB4qYmA/KNvUUU6rZcIkHkVREBg=; b=cUsDvy5f51QyQl3Pa5DqVHq/1NrRb0NfvOi1BLgEkOl83ONNn9Q6RsVqhZx0RBssBoPkMp SS/Wtcm8x8wtWiyVKJa6vtiPLWl3Pfelp84UIxxt1ObxnupTv2/NbyY4Dq6eQgSCHiDB9x j6JmYhWhbNiKrN+b2MkGFmqJ2EdDSmBFGR9TqqAZNwzshuSg9fzXt8m5T8GItrcc2KxEyr sIhBxnbJB46LbI7nycTfkpL1a33bJxZdwn/TGacNJm6duP5SD80IDIbahJII0T3VI9br0d zsMrP5gN4vJ9he1i8pePqb9m1CTRiy5QPwE4HVmDl/MMSqUoYHE0F5VNXUYn6A== From: Simon Wunderlich To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , b.a.t.m.a.n@lists.open-mesh.org, Sven Eckelmann , Antonio Quartulli , Simon Wunderlich Subject: [PATCH net-next 08/15] batman-adv: dat: drop non-4addr backwards compatibility Date: Tue, 28 Jul 2026 15:39:11 +0200 Message-ID: <20260728133918.643267-9-sw@simonwunderlich.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260728133918.643267-1-sw@simonwunderlich.de> References: <20260728133918.643267-1-sw@simonwunderlich.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: VGZZLVHE7WOOWII6343R2UXVUFAVOJ2S X-Message-ID-Hash: VGZZLVHE7WOOWII6343R2UXVUFAVOJ2S X-MailFrom: sw@simonwunderlich.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-b.a.t.m.a.n.lists.open-mesh.org-0; header-match-b.a.t.m.a.n.lists.open-mesh.org-1; header-match-b.a.t.m.a.n.lists.open-mesh.org-2; header-match-b.a.t.m.a.n.lists.open-mesh.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Sven Eckelmann The 4addr unicast packet support is mandatory in compat version 15. No older compat version is supported and the kernel doesn't need to keep code to talk to nodes which cannot be in the same mesh. Acked-by: Antonio Quartulli Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich --- net/batman-adv/distributed-arp-table.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/net/batman-adv/distributed-arp-table.c b/net/batman-adv/distributed-arp-table.c index 95d8e3a383902..180f654d5e515 100644 --- a/net/batman-adv/distributed-arp-table.c +++ b/net/batman-adv/distributed-arp-table.c @@ -1293,17 +1293,9 @@ bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv, if (!skb_new) goto out; - /* To preserve backwards compatibility, the node has choose the outgoing - * format based on the incoming request packet type. The assumption is - * that a node not using the 4addr packet format doesn't support it. - */ - if (hdr_size == sizeof(struct batadv_unicast_4addr_packet)) - err = batadv_send_skb_via_tt_4addr(bat_priv, skb_new, - BATADV_P_DAT_CACHE_REPLY, - NULL, vid); - else - err = batadv_send_skb_via_tt(bat_priv, skb_new, NULL, vid); - + err = batadv_send_skb_via_tt_4addr(bat_priv, skb_new, + BATADV_P_DAT_CACHE_REPLY, + NULL, vid); if (err != NET_XMIT_DROP) { batadv_inc_counter(bat_priv, BATADV_CNT_DAT_CACHED_REPLY_TX); ret = true; -- 2.47.3