Received: by 10.213.65.68 with SMTP id h4csp71677imn; Thu, 15 Mar 2018 09:52:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELvU8lAZZ0HVCM5uwqiUWkuB1jJeDExhoJz6ZG0KsD8xxgoihOv/Ek9LPdA1CQtNv5SmftSk X-Received: by 2002:a17:902:2a43:: with SMTP id i61-v6mr8900622plb.54.1521132744948; Thu, 15 Mar 2018 09:52:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521132744; cv=none; d=google.com; s=arc-20160816; b=JR2bC9W4WcMrWdjSUg2exiInN5gc/pCAPM5H4Zy9zDRX7+ZqN0eeUBN5o5k1NiGsbc /t7rKHyuj48OvBLa1X78bhpNtUiqBcOaCF+5P3Lq6148PtQNkUyXXeHG157vonL+PilY H+GyCByw0hX/1fRltmBhBOdS+BBCY0gcdhIPG+BObYAf7mn038AGAP540Xys3VnRZFFi jtyCozZcEcr2BpgfLgChxhFoyuWSfzcjDXvKF+B6XFrgwLcDY0deLLEXzlFzRXqHEtRI bTXxgtGt93ojxz0xD9WbmWQS8Yv3Adyl0YLg+91er+G1Ogpo8Md6kByrYJAn4mgC3AeN rykQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=0deAxwUnlkx/vkMO74+2jAxfIEvVNDI4lrv9TtV9JLg=; b=lOQ17cnpI2fZ9MHLswfN7fe1FrcAoTKO4AEjObvyH0T+MyODJ3tvTOn4MgEwYyUXwG nPiW2F6MhO5SjJUZIRTMxmub0l3jeO3cklri9OPed6dDe/d/2115XprTRLUxFANmsRxb ZXZooi4iaNZSmJ2UOUqv5oo7K3OYdR9yDXExSJGnyGbNWZ89i4DlermfEUWzxaMRL2dG ogACIIhTt+nHOAGfRJaKaV6Lr2WTZ+GDBOl7B8hd0Lbre/3R3XsU1Z93fP+3IBNRocc2 NWV7Ho5peWezIWzOh0lFM8Hc4qzf1TD1bsgCpiesRV3hVFShBys7BLMA7htdCMB5cRuv wcVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MfERXkRs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si4264344pls.387.2018.03.15.09.52.10; Thu, 15 Mar 2018 09:52:24 -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=@gmail.com header.s=20161025 header.b=MfERXkRs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752526AbeCOQvQ (ORCPT + 99 others); Thu, 15 Mar 2018 12:51:16 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:44911 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbeCOQvN (ORCPT ); Thu, 15 Mar 2018 12:51:13 -0400 Received: by mail-wr0-f180.google.com with SMTP id v65so8956077wrc.11; Thu, 15 Mar 2018 09:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0deAxwUnlkx/vkMO74+2jAxfIEvVNDI4lrv9TtV9JLg=; b=MfERXkRsSVCf4Ms8KJAIe55/9w7icgS+e2z5OrF7YItp2hJmNqBEc5fEgn6xRxT0Pp w3+gqAXA0cAD2pi2nnOv9NG5GzvuOlDI4LKPSqUlXGGC8xX6FYN609TnstjwzbRy4xxG VFEiXoBFzkVcE/kP7OrBMyMffTM0XB/LD+0D5dM6Fs5usuIwV/fNewaYLR9OPVvd0bnR URTxzVsvzprJcn1DNjWlLYtfFqQyIDYNtaatQpoFKfoQi/sPOuY89d9646oDqAKNL0Oa nxGOzWxeFjfMBzs3G41K1PCRKE3XXuq77SrwNGPLe8fD02Ks4vZoMuBe5kCJb1g3DHof 4fCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0deAxwUnlkx/vkMO74+2jAxfIEvVNDI4lrv9TtV9JLg=; b=Tpmdy32yy8HOMOKj/YMg3uITvYWUmkHCabI7isAv6uczIDRAEDtmSyEJ8Ae6UQMYDE DcP1OVgo2QSLsN6dTcKCblzzY7SYzz40yuRVrC2AG7oTiSEJdbMtj37+6ZKmLkkicqab SObeb0zz3vS9fZ/NWLeEMJWhvKpY3T1iyowqQxgmxGblYSbQsheT+FmbkzgUMr0G2ggL LQBWIggI5+Szb1gL0crjcwr7UxwVih0w7j3wpmOJQAIHTJ+RW+/e1JgPPeUhdFZMNUgc jFLGGrnVU76uqj2QOnde8+hfbuunpi79J/sJ6VSo94Rk9csOtPHiYj09i5nb1kZBfxUp n4/A== X-Gm-Message-State: AElRT7EeC/CL19GAGcywjGQ+xyOTdW5PTF1E08VV0aM1GCNYZ2Qlw3fM A71HLkX0SifBwwAtk4XSK2KJnw== X-Received: by 10.223.169.54 with SMTP id u51mr5274359wrc.71.1521132672300; Thu, 15 Mar 2018 09:51:12 -0700 (PDT) Received: from halley ([141.226.179.122]) by smtp.gmail.com with ESMTPSA id x127sm3643041wmx.19.2018.03.15.09.51.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 09:51:11 -0700 (PDT) Date: Thu, 15 Mar 2018 18:50:59 +0200 From: Shmulik Ladkani To: Liran Alon Cc: , , , , , , Subject: Re: [PATCH] net: dev_forward_skb(): Scrub packet's per-netns info only when crossing netns Message-ID: <20180315185059.1f780722@halley> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Mar 2018 09:35:51 -0700 (PDT) Liran Alon wrote: > ----- shmulik.ladkani@gmail.com wrote: > > > On Thu, 15 Mar 2018 08:01:03 -0700 (PDT) Liran Alon > > wrote: > > > > > > I still think that default behavior should be to zero skb->mark only > > when skb > > > cross netdevs in different netns. > > > > But the previous default was scrub the mark in *both* xnet and > > non-xnet > > situations. > > > > 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. > > > > 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. A flags attribute to veth newlink is a very scoped change. User controls this per veth creation. This is way more neat than /proc/sys/net and provides the desired granular control. Also, scoping this to veth has the advantage of not affecting the many other dev_forward_skb callers. Regards, Shmulik