Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp387755pxk; Fri, 11 Sep 2020 09:33:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMExR0Q8wuYUtgBTpZBL0jwrW2GIT3peHUXTA3gB9A/q7EPmH8pU8/dCDBL+XRsUSqFu3+ X-Received: by 2002:a17:906:7695:: with SMTP id o21mr93494ejm.176.1599841994182; Fri, 11 Sep 2020 09:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599841994; cv=none; d=google.com; s=arc-20160816; b=G5hS2J00DLjtDog7lWHYO/2mY+A5v9wrDFsVCQgrlh1FKO01+Aue377TD9G2iiEGpD oulF/Tq3Q/t6DEvWGkvM3Rmo+YJ8SNUB2kMETuyooBrLaIO6Ri0vX92pWrJKr9y+OFa6 kgFYtQOpie6kQpRQNY6xTbGwm+bnl9PKn2JR+/EcBSg8ZWc+PopZa4o4b1al7nqvnS7Z g92paclT2L7XVSbs6z07NJ351P8qGVoLqW/RFVA31QsA1K+YlfHpWW6qWz9oOWoWLVR3 s3T9Bw1seznYaYGT7wcmRb8X6F8h7hqEdX0gtJk/5b0IChNJe8tOdNajEso/YSi9GkqA CqvA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XD2CbqpClSj+nS7ncU3CSaZ4I4CDxiIC/hKzIGhZ5IY=; b=Aqki0al4+zmtWm0KTfpd2dUjEGD9sQKt5xU9PeboBc30/sqvSC2ZUuLPQxUWHP2Qwg C59jRRQv8u8De9TmhM7e9oudt6RXdrQUkPFwBA3jptaFQRV8rQO+ehwrPDsr4biBtVk1 n9JOMadUG7buVuHVmdaHf9foRET2XtJLX5uMyUA/jJnFrYe1r4eMxCydKPpLPsoHHluj kViIYo+yttnj254fETo+esxNJvgeKck3MK3b0NMLCaJqrEy4Ti2BGr0kQNaz9FmBRJ7C vkSFIO0l49uF88S48zAegnouyzoc8wC7GPdPvX3QhVDF1APT9N6DXK9Ik7ewaDE0UI2Q hoCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wK0BS5+e; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si1660176edq.314.2020.09.11.09.32.49; Fri, 11 Sep 2020 09:33: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=@kernel.org header.s=default header.b=wK0BS5+e; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726465AbgIKQbz (ORCPT + 99 others); Fri, 11 Sep 2020 12:31:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:54154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726440AbgIKPTW (ORCPT ); Fri, 11 Sep 2020 11:19:22 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E4E8A22226; Fri, 11 Sep 2020 13:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599829215; bh=JrLztB9YR9rV95zKnvwpDb5/OzCC3LdzhveX60ZxFnE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wK0BS5+ejbsD2uUphkd56ddCmwS/53e4g1MPtp+7HIiRir5JbpWRt+pbIr4P5ffW9 4YJJM4A27W0gJPuulbfQYc+anNDvWc3W/3pyNDEF0uaSdsIO9IO5Cs7pmfEhLf869j Hzy+gCITCYiZO792ru6u8HjQme1os5JOHuHFcFok= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ido Schimmel , Stephen Suryaputra , "David S. Miller" Subject: [PATCH 5.4 2/8] ipv6: Fix sysctl max for fib_multipath_hash_policy Date: Fri, 11 Sep 2020 14:54:40 +0200 Message-Id: <20200911125420.701606317@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911125420.580564179@linuxfoundation.org> References: <20200911125420.580564179@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ido Schimmel [ Upstream commit 05d4487197b2b71d5363623c28924fd58c71c0b6 ] Cited commit added the possible value of '2', but it cannot be set. Fix it by adjusting the maximum value to '2'. This is consistent with the corresponding IPv4 sysctl. Before: # sysctl -w net.ipv6.fib_multipath_hash_policy=2 sysctl: setting key "net.ipv6.fib_multipath_hash_policy": Invalid argument net.ipv6.fib_multipath_hash_policy = 2 # sysctl net.ipv6.fib_multipath_hash_policy net.ipv6.fib_multipath_hash_policy = 0 After: # sysctl -w net.ipv6.fib_multipath_hash_policy=2 net.ipv6.fib_multipath_hash_policy = 2 # sysctl net.ipv6.fib_multipath_hash_policy net.ipv6.fib_multipath_hash_policy = 2 Fixes: d8f74f0975d8 ("ipv6: Support multipath hashing on inner IP pkts") Signed-off-by: Ido Schimmel Reviewed-by: Stephen Suryaputra Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/sysctl_net_ipv6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c @@ -21,6 +21,7 @@ #include #endif +static int two = 2; static int flowlabel_reflect_max = 0x7; static int auto_flowlabels_min; static int auto_flowlabels_max = IP6_AUTO_FLOW_LABEL_MAX; @@ -151,7 +152,7 @@ static struct ctl_table ipv6_table_templ .mode = 0644, .proc_handler = proc_rt6_multipath_hash_policy, .extra1 = SYSCTL_ZERO, - .extra2 = SYSCTL_ONE, + .extra2 = &two, }, { .procname = "seg6_flowlabel",