Received: by 10.213.65.68 with SMTP id h4csp50500imn; Thu, 15 Mar 2018 09:13:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELsCpMeZhuktm+/7Io+PWzSe8YhOW7dmBoWGvN+FYO5LDXdfNXqiByRP4j2m24s2YYALzUSO X-Received: by 10.98.152.86 with SMTP id q83mr8158162pfd.218.1521130391437; Thu, 15 Mar 2018 09:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521130391; cv=none; d=google.com; s=arc-20160816; b=aLqgR+Rh2esBqsgH+NIJLsFOrFvydZ3h9fho/vdCrRuiISbNioCEeinaYLLKFX/6x+ EanctcTMo6ogP3LyHoRp0BvuYRyIfR2dueUTrkTk+fOygOCF7rEBGJBMOqup41Ks3FxK CdbPSNPG10HTrSzYerRVrGGjZUX4xSlY2jJETnn3oyg6qn7BjbGR8W91Qy+CkQlxAUd3 JWKOTRMulTkA2zoONmdkb2WqKk16Ex92yFEcPVp+MBcvB8DOje5uZC3zgKev9kQ5eHRY qJdGibsUC9GpJjvspfJEIUygHpLVungJ9XjCkUBQLfq3LR9ptftl7u87Gl5/QyjUptnH 23Tw== 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=QC3/ggBUKQQIgnv8Dxw3T6w5MO3tYDietdEC5Z2FT0E=; b=Yqx/oKIzjPVy8b5PjNlFiA1VyAW0s2ZWocx/eDTXJn2pF4txOXd9KDmjuiydOVvJAx mvuE66kPadKZg5OTnQv7qe0PFoUyaM9PFoCNPwX4HCwO0DFJL0eD3ljyhlTF6aT7I+dB iMDgUnd6fWXBlDB02FqfNSJ+Kf16CEYHaABZIQJdRrSsuLRPcf5at5bPJZQBm2DqWQ1p LRVhXaqeaUf7zHaqOKKWNTrbMIKQtK8MQ6l6qvl8hZfT/JWZnYPA3/tgKjvghNXCpkgb CYangAvJaUchvpClXR0dbW0D8nJ1Nv6JE/gIXluR59+7lllsJb5/gSEMPfzNZV3OxQ5V GAsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A7uHvjJr; 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 t10-v6si4205714plh.403.2018.03.15.09.12.55; Thu, 15 Mar 2018 09:13:11 -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=A7uHvjJr; 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 S1751583AbeCOQMC (ORCPT + 99 others); Thu, 15 Mar 2018 12:12:02 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54159 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbeCOQMA (ORCPT ); Thu, 15 Mar 2018 12:12:00 -0400 Received: by mail-wm0-f66.google.com with SMTP id e194so11465073wmd.3; Thu, 15 Mar 2018 09:12:00 -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=QC3/ggBUKQQIgnv8Dxw3T6w5MO3tYDietdEC5Z2FT0E=; b=A7uHvjJrrP2Mw4pFIH5T85WDsQr/LtC4IsiY/kUpUJkq1EK/vOCdICtqhAdbN36Rpt wDUV8cnvlgxwpyf50YH5PiNlytrXHhHwl+C/skVYTrjG7yBg3lClr5YWV+fkMhcGV7d3 azZUZBgYmXMMczY3kHXw7K2XV0sFZ0x7m34TYWF5F0livgevZv+VlMD+9ZER2pbQ86xC gsqtbz9NdVZvL/85lEnyDHOExgzsoEzZYoKM0qqntwwoUCTN3iPz5lB3UEplYR2TISZx NrUvhyRZy7NMgf+bqhzX2hABNf4eFPdtmDDF3/l3lVNNjJVKd9S8Va7iG9NGSrIpQ0pp yLlQ== 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=QC3/ggBUKQQIgnv8Dxw3T6w5MO3tYDietdEC5Z2FT0E=; b=KHBZB/hjzNPke0yMfdYpdfHPAYQH8OmGgZEGcb9s+Q1eRTlGHIaXEq8P6+ZAjtEcQc RedY6pZJzRt+PVK+VZkN6y+H1WSSoI/xVdqQfI8xhGCFjISwGZhszLVjLmJG9aeDDKRo QDGCi7eSvVyG/YSbRLmJTr0wTmWyA50lDV/uv19QI5MPq8sgWoGrbs65wlRk6C2X5+4t /AvALfFCek0dqxPVK4kwGjxrxJLvlLhvK/kipmkyNpeIWQoWmgpllOCHEPIUzvPZg6mr pJJ1fv9QeyAYFwCMqka/oafmj7pAQhoL05tDNW7LmcDwA9Yv5SKUczom2cxTQYKLtJtF s6Gw== X-Gm-Message-State: AElRT7HtwhdYR2lEusftVtoujoFl7A9hSmjnwNa3Hq54t7noF4xlOugS AUzDfQxJjTuQCoic0rUQj1/uHA== X-Received: by 10.28.114.6 with SMTP id n6mr5217748wmc.70.1521130319472; Thu, 15 Mar 2018 09:11:59 -0700 (PDT) Received: from halley ([141.226.179.122]) by smtp.gmail.com with ESMTPSA id j12sm3399697wmc.18.2018.03.15.09.11.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 09:11:58 -0700 (PDT) Date: Thu, 15 Mar 2018 18:11:47 +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: <20180315181147.0f7c21e7@halley> In-Reply-To: <58e67195-56f6-4d01-8747-f8322a382358@default> References: <58e67195-56f6-4d01-8747-f8322a382358@default> 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 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. Regards, Shmulik