Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp388826pxk; Fri, 11 Sep 2020 09:34:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznemNAvGQAAwYyCn/I2TSv9+MVBdMbnA4sp0Zbk2e0AZoRIKduSjILpF6oEOT6EHF+8e8V X-Received: by 2002:a17:906:b156:: with SMTP id bt22mr2795759ejb.481.1599842090629; Fri, 11 Sep 2020 09:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599842090; cv=none; d=google.com; s=arc-20160816; b=vJpKDUg0awXNoxooFDf3xcu9NhrMPE7c7yWBKzURS9VgSmEjjt1ywubVF2aWx3BiJi TaudmTuaD1A7+h4m715ZmVkyrfFKP9ODR+rMXIkmtGTgE9ZyZSuqASY/vXLxs/P6W1mN LC9G3UWYUSOOr3OdrmBJECiAs0upzYu9KnYpXhtso2qqLecnn7ZFBAbk9qd1bhNkRzDR ml5i+tKZR6iqo3ZS2rihsScOUuYfMJowE4H0yN/cF1KIG5Sh3ruyyl9Dt2ER+7couJnb 6ZzRunX6++Ol4/wlt1VTGGvMQQO9lCIUAU9VS9KcBrha1iE3pfRNu0/ef6P5tHa7cd13 gO1Q== 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=xuaubgYpN9HaALbJzEQIKK3pRCjFpYxtON7smE8GeZY=; b=Tpk+8K4OBRoeMqyVWlRcX4PVofMYHRNjXnsItF4H9oXJoyCEI12JAqAm5kWunCEEXZ t2rHH3kGGccGM9DxU82QHOCPPF4Y/rGHtnmi0xPwniJMs/B9l9VHALN7eTPBj4sgU6et iKzVlkrLAmqkjqim+RcZA1jb1I/KWxLAui+KekZgi7dHfJnDKllhfeRXElu3v0L21TRo VYAuiiHQ1ESLpKZsyVD5he2QWvKX3RwuR9j48YLLikaBvThCxf0AK+phDjxr84sT++s3 we5FVCgVxBo8bI96krogPxfrzpPQlV05Yhk09SKs1vhZmgXRlURaZVQ3QMBGKvvtxA9M /5zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v6g9yVYe; 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 dr13si1645744ejc.638.2020.09.11.09.34.26; Fri, 11 Sep 2020 09:34:50 -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=v6g9yVYe; 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 S1726554AbgIKQdc (ORCPT + 99 others); Fri, 11 Sep 2020 12:33:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:53394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbgIKPRi (ORCPT ); Fri, 11 Sep 2020 11:17:38 -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 2167F204EC; Fri, 11 Sep 2020 13:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599829204; bh=Ri8JwN8tCQ9NDHK7NDYR8XYP5a7ACkHHRW9pL0zYCzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v6g9yVYe/bqhu18tb83ZTUTQh7ThQoRLosjt1/PnfDcfCYSJiAdMsowRdRXqocDV1 cpH+N/rcNm9uT7VUv0cIAaNPiewTPWKxR2BzYMT4OBChJNUSQd8dZw/gcYy2JMSdZL CgLukEQVTbamk1VPyqrDD1/ifoL1t2U2Y8+Ut238= 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.8 08/16] ipv6: Fix sysctl max for fib_multipath_hash_policy Date: Fri, 11 Sep 2020 14:47:25 +0200 Message-Id: <20200911122459.984827826@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200911122459.585735377@linuxfoundation.org> References: <20200911122459.585735377@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; @@ -150,7 +151,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",