Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4684628imb; Wed, 6 Mar 2019 20:58:15 -0800 (PST) X-Google-Smtp-Source: APXvYqx+QKci5N14IlThzfBix3kUCrevC3LUpEYhwpPETa8C2CkWJGAHwIDvmwxcdFH605wRyPPz X-Received: by 2002:a17:902:1744:: with SMTP id i62mr10798528pli.24.1551934695097; Wed, 06 Mar 2019 20:58:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551934695; cv=none; d=google.com; s=arc-20160816; b=LKrnKLo+15D6Mj2P1h/7KR68aSFmiZovZ57oahBostcalWaglup/uQy7BDSzauX/yd Nad4sTlSjahg0+i8p3XG2t10UkgQCu0QBiYPviUyH3/LwMpRI8VoRp5wHqIcNnsdYhbd 3vz16mpg7tWviT+XGp8h5oVMuYjZ/v7y6Zn19wad9ABp4qGz7LJBDoKwhNKsA77EiAz3 NBXT9FrIprL91urS0y8H0uj8ejbPTtJ9XAJnCbJPpnaHv8N/t4zcBms1/mFgnHtL0sG/ wAzBa0ib1bB1ZZQOUQ8uWisip4iinlGu/XembApOSpgNc2fgRvKpuL1G/yz5i6qs9FuB Cspw== 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=aT/iyaWbpw8kgdm9cLKA0xhryNej3v5jj3UD0yvK8Zs=; b=yK3m+/x5hzc0OCPSbIVxua7UwQE4mSL6eyfd6b1QxOyHejdnBgzR0ayD9gqsrrZrbW v0j/g8YJJxHCH3drYTJNEm7EEKw2R3p5zkTvrBDt8U3qu/jDenUgLsSpmzn6klySRTki e+tw/oofnF+apGW9bwtkjMoCyHl+Cts0+MW1xwsmutd1M/rk05Pf+LeY2mw19KlAi551 68X6J2n00Xi2he1IZn6lXXDgcBkN2fTq3HQ3pv7D0VbfZt84rB/y3nLSYLxb8fwkVitP hw+CQ+wgN0uXJmoa/IJEwSYwXz2usFWEHE+mUgOPFXBePuaItF2PNM1V6yfzKcmI8I3W pOkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=IxcChiCa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id f75si3321061pfh.164.2019.03.06.20.57.59; Wed, 06 Mar 2019 20:58:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=IxcChiCa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726514AbfCGE5i (ORCPT + 99 others); Wed, 6 Mar 2019 23:57:38 -0500 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:60596 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbfCGE5h (ORCPT ); Wed, 6 Mar 2019 23:57:37 -0500 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 594B58364E; Thu, 7 Mar 2019 17:57:33 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1551934653; bh=aT/iyaWbpw8kgdm9cLKA0xhryNej3v5jj3UD0yvK8Zs=; h=From:To:Cc:Subject:Date; b=IxcChiCaAy8guZDHhV421h/7f2ChucSWBPNS+HF0fP8QrWMWwhHRYufIwfcH3wVBP yGs7KiiYOaNLzxbb9qvoQsVDGEF3D9N7tFZTz6s1t8H5nz/QQhuCcfNlZXdaPT5/kk EfejXJy6AiErVijX8US7vtQW3x8CQW/YQMGBYElROolOSb+08JiTJu3gvjEw30kXrE aR3+9eG0TX1sBIchG++/m1fV8iHhcpEYVPxzEUNhVB+t3GA/h+vnxCkgO38nexCyES /AYVrCN2s+ABBgUGeWF+q2Pn28gziqLmobJlsYi8nG7UGJHMPC3etrToKBv7xpgPkg tcn5pDv8lTEMg== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Thu, 07 Mar 2019 17:57:32 +1300 Received: from brodieg-dl.ws.atlnz.lc (brodieg-dl.ws.atlnz.lc [10.33.22.16]) by smtp (Postfix) with ESMTP id 5949613EEC9; Thu, 7 Mar 2019 17:57:33 +1300 (NZDT) Received: by brodieg-dl.ws.atlnz.lc (Postfix, from userid 1718) id 196C6500584; Thu, 7 Mar 2019 17:57:33 +1300 (NZDT) From: Brodie Greenfield To: davem@davemloft.net, stephen@networkplumber.org, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, chris.packham@alliedtelesis.co.nz, luuk.paulussen@alliedtelesis.co.nz, Brodie Greenfield Subject: [PATCH 0/2] Make ipmr queue length configurable Date: Thu, 7 Mar 2019 17:57:27 +1300 Message-Id: <20190307045729.14972-1-brodie.greenfield@alliedtelesis.co.nz> X-Mailer: git-send-email 2.21.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 We want to have some more space in our queue for processing incoming multicast packets, so we can process more of them without dropping them prematurely. It is useful to be able to increase this limit on higher-spec platforms that can handle more items. For the particular use case here at Allied Telesis, we have linux running on our switches and routers, with support for the number of multicast groups being increased. Basically, this queue length affects the time taken to fully learn all of the multicast streams.=20 Changes in v3: - Corrected a v4 to v6 typo. Changes in v2: - Tidy up a few unnecessary bits of code. - Put the sysctl inside ip multicast ifdef. - Included the IPv6 version. Brodie Greenfield (2): ipmr: Make cache queue length configurable ip6mr: Make cache queue length configurable Documentation/networking/ip-sysctl.txt | 16 ++++++++++++++++ include/net/netns/ipv4.h | 1 + include/net/netns/ipv6.h | 1 + net/ipv4/af_inet.c | 1 + net/ipv4/ipmr.c | 4 +++- net/ipv4/sysctl_net_ipv4.c | 7 +++++++ net/ipv6/af_inet6.c | 1 + net/ipv6/ip6mr.c | 4 +++- net/ipv6/sysctl_net_ipv6.c | 7 +++++++ 9 files changed, 40 insertions(+), 2 deletions(-) --=20 2.21.0