Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp175319pxk; Tue, 1 Sep 2020 20:24:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ22azQiaOaWEl4+6Qs4OCW35kZEJH31nJYSlgcRpZ8ovGKUjCzpKVofw3+8aaZ9gKE6qG X-Received: by 2002:a17:906:f9d3:: with SMTP id lj19mr4288372ejb.346.1599017054725; Tue, 01 Sep 2020 20:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599017054; cv=none; d=google.com; s=arc-20160816; b=q7TO58/edpRCgCrsEz/jrTKT7KY+/Nchj5R+HNXkX+dVUzvi0mBqnO7ng4SxjKva2N ofRbvRGG+Y2Nv2rG+4Izl1n+4B7lQWvfM4GEBNzSBrnAfB+paq762w9k2+BwwQ1A/9PM i6+MKVkZ60qpqasLcuT4LvBvnsmfKYm7jfJ+XxgShnpyt2yXqoao5WT6n9yn8YknjQbf Hx+qV0mzYodvPRZ52Pd4Po59+pvvBJxE/fjVbwXu1HBDN5tu80Vefd9ATWd5V9S0Ugqc WlEHTLXZyp3GEPrv/LGLpiPDp614hMrrGeE6iXk5dS9DTnSMgyBJkILv102c1clwEyIY mUlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pA5jZtYGbadRL6MpsDi7RfTcACMi8fe+m3GaZOwbkX0=; b=STmfbx/dl1iwJP6noF2lcN4oUlwurZvq7mDE39DJj2/EDPR485ZJnW/BSTFK/H4w+X ft+BCh6JLpgQHsQU1CvZo7f/0pIj+5uMd02+Js4hQSti9Ah5J/Ml7WxbIxYY8Ui2SXzs lH2S1zphzdoIlHe8V35zKQ2Sh3F+XkUB3P7ETmCNHZ+BQnMB6wsREbgPL8GCakRGjyO8 77XugW+ew9UDc60u+33deyAe0fl9aZPGEUF4wj0lqRtl1V8W6qRhS2YCT3Pr5YHkthek PzdbNyoxCMOaDjvDZ5FEiga71sRKbXsj3vZO3vIMsMPIm7Oc/Ob5pB1th7i0KFvnlY2H cN4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=qrzK4Iy5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si1547842edr.160.2020.09.01.20.23.50; Tue, 01 Sep 2020 20:24:14 -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; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=qrzK4Iy5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726922AbgIBDWw (ORCPT + 99 others); Tue, 1 Sep 2020 23:22:52 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:39632 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726212AbgIBDWj (ORCPT ); Tue, 1 Sep 2020 23:22:39 -0400 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 46988806B5; Wed, 2 Sep 2020 15:22:35 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1599016955; bh=pA5jZtYGbadRL6MpsDi7RfTcACMi8fe+m3GaZOwbkX0=; h=From:To:Cc:Subject:Date; b=qrzK4Iy5fijirooHGX6wQqbMYHJO6KCGCNbWqPU28KOlSHlSjn07DQIHz0ooIfIge SSM7i7gyOmlEXUORuavt7AIx2CLIunu029fhJJs6l0MGg9JpO9DuMFzxv5IM4wzr9q 70XnRE3c9sYK1EDVGpkEb6r9Vvnt8fA9xeEDTnlEAaDjs4KGsVbT0hCdwxLSYXUkrD /M4EHWCqpugnffM09s/yusc9WfaKhCAjM5raHLU0UFnC9AJe1PMw/ZDUx2oZjmnr+R S/7K9lQNK9R4ySd6wyBo1R8m3N2UP1ayW4ZQBxNIkxGYnhpQJ/YeQj2tRUoWFN87nd WBv6E23XJYFpw== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Wed, 02 Sep 2020 15:22:35 +1200 Received: from pauld-dl.ws.atlnz.lc (pauld-dl.ws.atlnz.lc [10.33.23.16]) by smtp (Postfix) with ESMTP id C161413EEBA; Wed, 2 Sep 2020 15:22:34 +1200 (NZST) Received: by pauld-dl.ws.atlnz.lc (Postfix, from userid 1684) id 14FC51E05C4; Wed, 2 Sep 2020 15:22:35 +1200 (NZST) From: Paul Davey To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Davey Subject: [PATCH net-next 0/2] Allow more than 255 IPv4 multicast interfaces Date: Wed, 2 Sep 2020 15:22:20 +1200 Message-Id: <20200902032222.25109-1-paul.davey@alliedtelesis.co.nz> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable x-atlnz-ls: pat Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently it is not possible to use more than 255 multicast interfaces for IPv4 due to the format of the igmpmsg header which only has 8 bits available for the VIF ID. There is enough space for the full VIF ID in the Netlink cache notifications, however the value is currently taken directly from the igmpmsg header and has thus already been truncated. Using the full VIF ID in the Netlink notifications allows use of more than 255 IPv4 multicast interfaces if the user space routing daemon uses the Netlink notifications instead of the igmpmsg cache reports. However doing this reveals a deficiency in the Netlink cache report notifications, they lack any means for differentiating cache reports relating to different multicast routing tables. This is easily resolved by adding the multicast route table ID to the cache reports. Paul Davey (2): ipmr: Add route table ID to netlink cache reports ipmr: Use full VIF ID in netlink cache reports include/uapi/linux/mroute.h | 1 + net/ipv4/ipmr.c | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) --=20 2.28.0