From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: dev_forward_skb(): Scrub packet's per-netns info only when crossing netns Date: Tue, 20 Mar 2018 12:00:36 -0400 (EDT) Message-ID: <20180320.120036.1999626754164343704.davem@davemloft.net> References: <1520953642-8145-1-git-send-email-liran.alon@oracle.com> <20180320.104759.796804827689233281.davem@davemloft.net> <5AB12A0E.2060704@ORACLE.COM> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, idan.brown@ORACLE.COM, yuval.shaia@ORACLE.COM To: LIRAN.ALON@ORACLE.COM Return-path: In-Reply-To: <5AB12A0E.2060704@ORACLE.COM> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Liran Alon Date: Tue, 20 Mar 2018 17:34:38 +0200 > I personally don't understand why we should maintain > backwards-comparability to this behaviour. The reason is because not breaking things is a cornerstone of Linux kernel development. > This feature is not documented to user-mode and I don't see why it > is legit for the user to rely on it. Whether it is documented or not is irrelevant. A lot of our interfaces and behaviors are not documented or poorly documented at best. > In addition, even if we do want to maintain backwards-comparability to > this behaviour, I think it is enough to have an opt-in flag in > /proc/sys/net/core/ that when set to 1 will activate the fix in > dev_forward_skb() provided by this patch. That would also be a very > simple change to the patch provided here. Making it opt-in makes it more palatable, that's for sure.