Received: by 10.213.65.68 with SMTP id h4csp64618imn; Thu, 15 Mar 2018 09:38:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELvdZOc1AC3vWAD4K3fhmUIrSX1S/fExzBctg4zZrrDMhcToy+r7voNavsfn6CC5WrlfrQCa X-Received: by 10.98.202.138 with SMTP id y10mr8232459pfk.184.1521131917158; Thu, 15 Mar 2018 09:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521131917; cv=none; d=google.com; s=arc-20160816; b=oORTmsPIHMf7qdzh8vs+aZuWS9198EYVkU4I3IBzh5WdJ7uvuK+01hGJxqLbA/T4Yk x4iromrM4BUonz6NA/gIoeDuEiS1/x0v4s/ZdYUWfpqXGlsyWqjEzvWfghyCx13UaWUc mIJ3x7Nazc7VkPrJAcf06yKnhMc55pLgK2IDgoj03qAhYxe9nez97PzzAX6v+gbEnMv3 pu8Jljf2z9ZIB1KuaOnf7LDiJDeYiMleo9gZPO4xl3RYE31Hn8gg8ObB5RR/IqsDJ8/0 ICA3ub0FSoNIY2dXlUfRyC7Gi8CzlEUPlmcY3OOZcf2PMHKVXEBg1/O6wEOGU76xB/bE 5WJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:subject:cc:to:from:date:message-id :mime-version:dkim-signature:arc-authentication-results; bh=hyowg33AHs+n4QR5XeX9dmeEpaDygruahN6LC7RjpzM=; b=uR8x7fg3C6Ks2rdqanInhCmNAFH0wXf9DsoPwsEUy6ZJApKPOr479PbFNTIJ3SiBGi Ya20FnQ5ET/MYoxDg7B1KfSaWRitY6kX9RRWnj53PcInCUW98gIfDGM0ovZJmnhDXa3G Q+3b1hgkxSHoSJcgkJaQ+JSvgslvKhRdNirp60wGZKJqrNjGCyDlI1ouxLQwhpKHHMU3 tz76FI6BnU3XGqKd0Kv91k4MjgCrj51imwKH8ZnUqeLQraSzdNfzpiuRyg0IpgRFkz6t jkOg+PW4MQEMoVt6gPP74Ho07E1Zxk7rhn3ZZ8RJey+5/A5feI8dKJ0Tq4j2MkfqNVeT XuUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=gZVxj5i+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si1539382pgc.296.2018.03.15.09.38.21; Thu, 15 Mar 2018 09:38:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=gZVxj5i+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751959AbeCOQgT (ORCPT + 99 others); Thu, 15 Mar 2018 12:36:19 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:44016 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751458AbeCOQgS (ORCPT ); Thu, 15 Mar 2018 12:36:18 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2FFhmag018292; Thu, 15 Mar 2018 16:35:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : to : cc : subject : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=hyowg33AHs+n4QR5XeX9dmeEpaDygruahN6LC7RjpzM=; b=gZVxj5i+y+YS28lxCT17QHrNxmaQjLHJeTrEVw1IwEufGawa4UKc0ByGEsOOywTbh8HU d+Fml6tBbYsfN34F3X+Y6c6pR/352RNZKFqNA+55SRV6o89r1mELjIw8PIu1PH0lRQFf nNXcozc2ZtI2UtGlkshANF6ly9oujBSjwhx3Zy81dT+yLuQVMu7DczNX8572lM21FPWh yEUFbm7OWWQ6RyxR0vlstTCa8pgZrTJMP/IezuZWhoV8hNcfMahinkgXDMrig7U0lusW Ng82QQ2hJtECPehMKtu3iQjWfnUE99AOxKXajLvq8RjbMYk4qzpx2lnGxUNMxFZZ9+33 xA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2gququg9ev-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Mar 2018 16:35:53 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2FGZqNt022825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 15 Mar 2018 16:35:52 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2FGZqRU004204; Thu, 15 Mar 2018 16:35:52 GMT MIME-Version: 1.0 Message-ID: Date: Thu, 15 Mar 2018 09:35:51 -0700 (PDT) From: Liran Alon To: Cc: , , , , , , Subject: Re: [PATCH] net: dev_forward_skb(): Scrub packet's per-netns info only when crossing netns X-Mailer: Zimbra on Oracle Beehive Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8832 signatures=668690 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=605 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803150169 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- shmulik.ladkani@gmail.com wrote: > On Thu, 15 Mar 2018 08:01:03 -0700 (PDT) Liran Alon > wrote: > >=20 > > I still think that default behavior should be to zero skb->mark only > when skb > > cross netdevs in different netns. >=20 > But the previous default was scrub the mark in *both* xnet and > non-xnet > situations. >=20 > Therefore, there might be users which RELY on this (strange) default > behavior in their same-netns-veth-pair setups. > Meaning, changing the default behavior might break their apps relying > on > the former default behavior. >=20 > This is why the "disable mark scrubbing in non-xnet case" should be > opt-in. We think the same. The only difference is that I think this for now should be controllable by a global /proc/sys/net/core file instead of giving a flexible per-netdev= control. Because that is a larger change that could be done later. >=20 > Regards, > Shmulik