Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9076750pxu; Mon, 28 Dec 2020 06:06:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvEZw4m3drvynNVecM7zlQ8HG1s4/FKH/1ZrEQty+wDj9Rl2UfTFUVb1oD7scuVVZ5ILgZ X-Received: by 2002:a50:b746:: with SMTP id g64mr42120247ede.33.1609164367769; Mon, 28 Dec 2020 06:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164367; cv=none; d=google.com; s=arc-20160816; b=w7fvxI0MhkmLcSsZtFucumhiYgKsD6J2Wh7ZLyUWQJs/RresLmPvOazUzOwV7VpQbK kGs76bBCsYyIz5UCA0K3myOQVp2R1lt0t7KDlcn841j9x8A+8OKeoXjuRl+8LTS1jcXi VIrYPRqn2nHKAYFhpf+DqhafLNu5ykOiBG3lAhen/plkd07noY9Xu9R+ueylItF8g/4r Q8gSa9t7+RNoMEdh/1hgGkuu4E1Q+M8Yn3Z2pO57TkTLIhyaomLuXzlouQfemxbqDWu8 gLnjHfOFgJi53RrcLtSEpZOjG8Fk62kklBui4EEo5/ZiB+S6kRk/JiKtuLblrzRMYUqP R76w== 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=uPiNwvaKMv+chbvl7tq8OdBomYdF62TyfPzcrXC+4fE=; b=cLHL1u3TpPRLOm60zG+yzuFHDdaNhgx8c7UPpalFF8zekuUB0HWZOT1x2+hCDpjA4k uYPAXtiFPQ/DJSQfZCLCdwwLwj2eHHGhnm2KBe+Xc44qol4pzy8Q/54y5tXjex2JDQYo kMvtyilNVM2oZgTGPFFQhp/RJyoMYDILuKLDpZrOKfi2lWlKtnBBB/qWUjGhDMfzWiN7 rDZOzmgrTWpJwskvdbUV8JdYXcf91MAPt2XFywBagZ7sPADpzonIzg2NwkU+sAOHloNm HjRzQsqH8bKNnWrH0+QG1ih//4MoCWBEsVYXq3XXcb9oyUK/sGmdABsGDlE8njWjZqbh yMMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SsqTeJZI; 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 m10si17753894eji.137.2020.12.28.06.05.44; Mon, 28 Dec 2020 06:06:07 -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=SsqTeJZI; 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 S2437225AbgL1ODv (ORCPT + 99 others); Mon, 28 Dec 2020 09:03:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:36052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437197AbgL1ODn (ORCPT ); Mon, 28 Dec 2020 09:03:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 015BB205CB; Mon, 28 Dec 2020 14:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164208; bh=4qUT6tC2xgZIPjC7ymiaJDr1MFzALDWyl3GbY7lufFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SsqTeJZIdm7L2wELjsD42cgjZPE845n6OK/sACGF5lqPkyOYXE7OXaOz4LmdY5B2l jZ7Iw2422d+EePw9DmtWRQMzGt0bw7MQKreJMdO2faU2xlQ1RLh1lo9WLg+Z7Te4xa jBVZLDweC7B6VEZc05PMAXPUJr2oURHWtjqlkY3A= 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 5.10 099/717] net: evaluate net.ipv4.conf.all.proxy_arp_pvlan Date: Mon, 28 Dec 2020 13:41:37 +0100 Message-Id: <20201228125025.717647172@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 3bbcddd22df8c..53aa0343bf694 100644 --- a/include/linux/inetdevice.h +++ b/include/linux/inetdevice.h @@ -105,7 +105,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