Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9038422pxu; Mon, 28 Dec 2020 05:07:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1PLel5WcP0YvYPdd1NJXvXbWczfasJ3QF/UiEaLusdhG/k9oa5QdrzjkBBm7B8cqmbvS2 X-Received: by 2002:a50:fc0d:: with SMTP id i13mr35694773edr.171.1609160857447; Mon, 28 Dec 2020 05:07:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609160857; cv=none; d=google.com; s=arc-20160816; b=Y8Xf4eaR7q5+QPeEYS2q49uu1FGM81aosqFBln7sehIeZNZ3iIbhGEFRA5iePfP12X UG725e2YlnIxa93YeN3KnYq8Xyr38B72OxroM8vN54xGfC1ai3bj7aOFJd6cBezkrU5T hpQLBAnA6/I2Hrg4DNEIIwRgFsK0ORWf8YiF68SNQ/ECLkg+9pGVjavYXOVnvdUSMASV zdF28wX5Le32KJ89PYWoLLJj8QLv4XIvmGcwHZGuWqMgq4+AA0OijtvySSbpw40hpwRf 3CCf5W3DA1lgJ3WOSNt5JVHlIx59v/LT+LhpYgn3J/HlaQ1kV4lB8FfXteiPnqMsdWq+ 6NzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7UwiY4Gc88BBgLVi8uchjIePbt4dYMA1upr5kuAB4iU=; b=frGAWJGdL2gTJO9KuAr6KzoGn7SzvMiEb9wmIxzHOjpScq9aBXOUnhwCVPHbcab89A j3RJgV1wbwoxshiV0u7aMFwPKXP47/VEsL4VXHaO+xf2hHcRWC9uPwg7dq6XGwS4fbPl J4koTYF5UhZleKLJT0Qx27tAiSPBzADQETErD3OQOb8mK8K/rMrAbMX+jXlz0pVvJDUc enhAH9jJx+lGcbQ3iR+JojY8pcLE6DSq+ULpvAYLW0A6kkkGdCojkYodAlMfJnM51VjN MV1er2t4teTQmrsSeubekUKqiSHeVf0z/Gp3CCfZd32IRJfJIvx8ClMPR5oJi8rC+LQT MMJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ErTX3MOl; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si18131893eji.211.2020.12.28.05.07.13; Mon, 28 Dec 2020 05:07:37 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=ErTX3MOl; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729974AbgL1NCH (ORCPT + 99 others); Mon, 28 Dec 2020 08:02:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:58094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729865AbgL1NBv (ORCPT ); Mon, 28 Dec 2020 08:01:51 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 346C022582; Mon, 28 Dec 2020 13:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160470; bh=Fmm/kgXWpnxgmi4B8ecICshe5ASoWJhbr29YPa50a4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ErTX3MOlp5mtE4/LrlPxkPTbU88D9oKr5TRUPH5imDx5rbnOYmpqSpPCY2j7ic9ed wveqXcXZwJvTQaL9gK/5wJIWOQJ9svQHHzKgHgi2Oz3FDlnhYbceAGVfNu1En+9w0K TQVYOA5JpOsO15Kx+X8o7vq/RhYT88iRlrwwHGDg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vincent Bernat , Jakub Kicinski , Sasha Levin Subject: [PATCH 4.9 063/175] net: evaluate net.ipv4.conf.all.proxy_arp_pvlan Date: Mon, 28 Dec 2020 13:48:36 +0100 Message-Id: <20201228124856.298104909@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vincent Bernat [ Upstream commit 1af5318c00a8acc33a90537af49b3f23f72a2c4b ] Introduced in 65324144b50b, the "proxy_arp_vlan" sysctl is a per-interface sysctl to tune proxy ARP support for private VLANs. While the "all" variant is exposed, it was a noop and never evaluated. We use the usual "or" logic for this kind of sysctls. Fixes: 65324144b50b ("net: RFC3069, private VLAN proxy arp support") Signed-off-by: Vincent Bernat Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- include/linux/inetdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/inetdevice.h b/include/linux/inetdevice.h index 0e6cd645f67f3..65e88c62db7b2 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -100,7 +100,7 @@ static inline void ipv4_devconf_setall(struct in_device *in_dev) #define IN_DEV_LOG_MARTIANS(in_dev) IN_DEV_ORCONF((in_dev), LOG_MARTIANS) #define IN_DEV_PROXY_ARP(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP) -#define IN_DEV_PROXY_ARP_PVLAN(in_dev) IN_DEV_CONF_GET(in_dev, PROXY_ARP_PVLAN) +#define IN_DEV_PROXY_ARP_PVLAN(in_dev) IN_DEV_ORCONF((in_dev), PROXY_ARP_PVLAN) #define IN_DEV_SHARED_MEDIA(in_dev) IN_DEV_ORCONF((in_dev), SHARED_MEDIA) #define IN_DEV_TX_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), SEND_REDIRECTS) #define IN_DEV_SEC_REDIRECTS(in_dev) IN_DEV_ORCONF((in_dev), \ -- 2.27.0