Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2949087pxy; Sun, 25 Apr 2021 09:03:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9yTzidnkUskWUFIAop/D9sN8rXgi7qkoUU8X22+lUFOfIhq/BkizrQFsf/EQC7+FJhBvG X-Received: by 2002:aa7:c349:: with SMTP id j9mr8013801edr.230.1619366583137; Sun, 25 Apr 2021 09:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619366583; cv=none; d=google.com; s=arc-20160816; b=Sc7TxmWS8Nxf7EK2DgDX61VfbuFmctHWLVgIkebO9W6gze/khBTS5dFHTG7AIZjpns nxfDpcLHo2gvaDlKgTMA9ebqYRRXuC5xu1BPJs6zg9NC79j1IMo8MzEisd2CnM6uyq4h g5ivDiKl+q3MlzAjaP8MkEThr3e86wr9Klc13u2sSf5HbMMQITqohx5Bk8klW+Ie51Yr nbmHGZnpPG+aigjes/kczX+fhR3yjoMxRncO+saEmQuIJ5zyVhDrAEp7FDYHMhT8NVgr fpNY9yZ3FEiekXKNCs06QjuJ60PZ912XZP+HhCfN50NMP/r6SxeUKYrkceAaU+sX0xzl d8uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=xYalNIb2+AlNvqeCyMkhCE1++rbfqWzCzlSMBuNKYtk=; b=0trB7TBPcuRoQb6rpjiM6fLwwN5nU8bGRJQaoljxUqYaAOdDoboGLm6iAC3ZUsXE3I YwHhHQvr9VbeCxvE6jL7uTM6HlUF/1QzK3LcUtqi4NSC3O8RlQaIlNe+JiZrmFzFpwGa HLbDs/cKvlT5U1RIBXFXq+8VGNADWEc26BHJ+weAScZgERew+XG82LQJw0+j4xXinZbB jlIo1NRU7pTaYvjrAiDD4uT8+5X9iW3bY2pJ9rSLbhu8Efv+3urWjK7YOzYEXRkWhPzj RowEoqGLbjqcZrMjh3gOFoNazJm1BIvWmIQSoGJ5LotesTyKKlgtC/NHijn8aU8rtcdm S7rA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si10865382ejm.148.2021.04.25.09.02.39; Sun, 25 Apr 2021 09:03:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230462AbhDYQCZ (ORCPT + 99 others); Sun, 25 Apr 2021 12:02:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230288AbhDYQCX (ORCPT ); Sun, 25 Apr 2021 12:02:23 -0400 Received: from mail.aperture-lab.de (mail.aperture-lab.de [IPv6:2a01:4f8:c2c:665b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE12C061574; Sun, 25 Apr 2021 09:01:42 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 123483EBF7; Sun, 25 Apr 2021 18:01:37 +0200 (CEST) From: =?UTF-8?q?Linus=20L=C3=BCssing?= To: netdev@vger.kernel.org Cc: Roopa Prabhu , Nikolay Aleksandrov , Jakub Kicinski , "David S . Miller" , bridge@lists.linux-foundation.org, b.a.t.m.a.n@lists.open-mesh.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/2] net: bridge: split IPv4/v6 mc router state and export for batman-adv Date: Sun, 25 Apr 2021 18:00:48 +0200 Message-Id: <20210425160050.8732-1-linus.luessing@c0d3.blue> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The following are two patches for the Linux bridge regarding multicast routers. They are rebased on top of the following fix: "net: bridge: mcast: fix broken length + header check for MRDv6 Adv." [0] And should be applied afterwards. The first one splits the so far combined multicast router state into two ones, one for IPv4 and one for IPv6, for a more fine-grained detection of multicast routers. This avoids sending IPv4 multicast packets to an IPv6-only multicast router and avoids sending IPv6 multicast packets to an IPv4-only multicast router. This is also in preparation for the second patch: The second patch exports this now per protocol family multicast router state so that batman-adv can then later make full use of the Multicast Router Discovery (MRD) support in the Linux bridge. The batman-adv protocol format currently expects separate multicast router states for IPv4 and IPv6, therefore it depends on the first patch. batman-adv will then make use of this newly exported functions like this[1]. Regards, Linus [0]: https://patchwork.kernel.org/project/netdevbpf/patch/20210425152736.8421-1-linus.luessing@c0d3.blue/ [1]: https://git.open-mesh.org/batman-adv.git/shortlog/refs/heads/linus/multicast-routeable-mrd -> https://git.open-mesh.org/batman-adv.git/commit/d4bed3a92427445708baeb1f2d1841c5fb816fd4