Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11300500ybi; Thu, 25 Jul 2019 13:44:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFksC/alkz8F/Fhvyw46QQKj9jD71d4+ympjsU9gIqwwyV14rBIILpUePhPaXGD3bnEMCE X-Received: by 2002:a17:90a:2488:: with SMTP id i8mr92726413pje.123.1564087445884; Thu, 25 Jul 2019 13:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564087445; cv=none; d=google.com; s=arc-20160816; b=pwVKPi2Uy5TeK6W7ikpWMykkB78zRAhNczqP6V2YpbC2Rxoci9OhrOKCZWynErLzDr pwasPL1GRNBWrE2l7tiMoieXrdIw0thQE96vaJjh5/a1IVO+5GoMVT/LSLM/CyYirNSk dd2T8QWKlRiVMiV/dOql60mcdRBdX+ihCfwkiR6tcPgnR5hRPKA2iPw7fDbTpT/i4G04 ma83TqVKo7z+PAOxTidAAQHoYaQmCpVNgbcMUzJGOcV7rDwcZWvXc6r/YLrk4Zrn7huI cB3DXli50trjXVQoH4b8JfxtUX5R/FIHfCWDQDTyUvOMM39uwwzt6+AH3lFHY0L5S78h oO9g== 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=Um7xeLhNGVGRlhjv7Qm+lGiwnU4ZDdeCDQuFQPULqg+a7eBGtMZUi1/h/k7XTlMzO5 NlfNlj4cJ+6hQ20PEEHwTsIvwv3bX9CbudNvcFl8Y9owU5oyubsEVCINLuDJjOKi2CNH IgOSeLyB6xgKEJZUkKqyQvBpiZb5FlrHxAnVOQZuS3ABO9kfOTy9lCtypr+vfSb9nQDQ y87wftUmPFgowYgDw9TJ1PrxpMdlj7kVgmBKlkh0gHBNNa0hvXVjc2w7jqEwKWIlgwmN U2RF5FXYRcyH+8UrKu2B7bXX0NkbJryqdrqyoZmwKgna1f9MoRRHCcP0OJNc6NQG29VW xwmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=zVmqmbUB; 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 v27si19099294pgn.14.2019.07.25.13.43.50; Thu, 25 Jul 2019 13:44:05 -0700 (PDT) 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=zVmqmbUB; 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 S1726696AbfGYUmo (ORCPT + 99 others); Thu, 25 Jul 2019 16:42:44 -0400 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]:33919 "EHLO gate2.alliedtelesis.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfGYUmo (ORCPT ); Thu, 25 Jul 2019 16:42:44 -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 A080C8066C; Fri, 26 Jul 2019 08:42:41 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1564087361; bh=aT/iyaWbpw8kgdm9cLKA0xhryNej3v5jj3UD0yvK8Zs=; h=From:To:Cc:Subject:Date; b=zVmqmbUBUmMdOy3ZeYMaa5gK2nzPVwu7zg8u+2xXdfG4sQ367aks3wOC4ocKXn6Hn DUIWdgzT1OhEGBV9DSYeaBtPpsl1GR25QER382fo74dckD38zSSVX2Did0M9TQBHNK H8ieh9tJiK1J65CGEIRqtl/K9M/UVyrFdCmxMoXJFDcXx1gUqODVAeHtmFnpAktu6R gP1OfGyicoEtrScYmxAyVkTPsb8+dRN3IJXdDwFCg5nL2A5IIww6dSH1KiDZoQBWTO E2evh/NIP7yrCyiriW62EEqeVKVe5eHa5igOv4RtuUYKEJ5MGSbkhlMxvp+MndN9J+ xew0I0Ykxixtg== Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7,5,8,10121) id ; Fri, 26 Jul 2019 08:42:41 +1200 Received: from brodieg-dl.ws.atlnz.lc (brodieg-dl.ws.atlnz.lc [10.33.22.16]) by smtp (Postfix) with ESMTP id 373E413EECE; Fri, 26 Jul 2019 08:42:43 +1200 (NZST) Received: by brodieg-dl.ws.atlnz.lc (Postfix, from userid 1718) id 277AF502CCC; Fri, 26 Jul 2019 08:42:41 +1200 (NZST) 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: Fri, 26 Jul 2019 08:42:28 +1200 Message-Id: <20190725204230.12229-1-brodie.greenfield@alliedtelesis.co.nz> X-Mailer: git-send-email 2.22.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