Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp266953ybc; Tue, 12 Nov 2019 00:54:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwGiRJujmf3Ukxwg382gFBhYLQNusx+sqeHst2MT8ey/9LMrQUXpfifPtM0Gw/PPTMq4emy X-Received: by 2002:a05:6402:1299:: with SMTP id w25mr31594601edv.10.1573548850416; Tue, 12 Nov 2019 00:54:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573548850; cv=none; d=google.com; s=arc-20160816; b=izIBloYoTq1iJYxXHPa2vSlksgZW2R3DPCMmNsbCLngkcgmBq7/gKeo7dWUIcKL8bh wWlJwf1ZsytxXixvp/EOHbCSYkEx/QZjKjvQ/YLaC79Dwv7fg7oC9q3CRocqXji3SmUv VMOgJNvb1ypkRh+HwIXtrhkBU7HyWTlEnk88nMs6hVqCmJP4XhAb5mFEMhSEjtNogIpd IL0g21x6dOoTpu79kxhfWXljSaGh8cIJM0oBK/Vb3RAgR6fuoVMtLS2bSt1KawBR5pXR ko0I5TM1yjdRRebw13PzIqkgxsWxfbG8cNQ0jeN/P79RKDR4igo5pw1fRV5Y+rRIP7DN 4Mhw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :dkim-signature; bh=/4ilrxOZ4QdJ3UAgm96VMI/hVQ/UHpZg4vUaW945RSk=; b=YfGDzqCZAM0BTvn7dga68EiAJzfADN4cB814TMj4KFmGTFmCi0IhDvQVci6c2EGcg5 KNnkmJ919VBm7ULXC76BlFiEzlubWwOLVb1y67CxR64BOKrvjtufW/7rUshR5SulBRw0 Jh/B6cac0H21yIm2V9lDPK8ji5G5AexNAgSetazQEkqyu3ySyOo2+Wg4M1fCHLkZZg3r RaAyudx7aZuMy0UCEfbqDLhBXCQ6derN6QBtJkRZ0KHPUvto1EOKHUdMrogxb05v34X4 lRcbZOuyT1eclnZp7rzhaf1yN8kpB1VSMzyz4W/Nk5YGNTsl9wy+Vk7Cwn5Rx+yBmPzv XumA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@6wind.com header.s=google header.b=aPZJaNpE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si9815399edt.427.2019.11.12.00.53.46; Tue, 12 Nov 2019 00:54:10 -0800 (PST) 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=@6wind.com header.s=google header.b=aPZJaNpE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727202AbfKLIwu (ORCPT + 99 others); Tue, 12 Nov 2019 03:52:50 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35863 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbfKLIwu (ORCPT ); Tue, 12 Nov 2019 03:52:50 -0500 Received: by mail-wm1-f67.google.com with SMTP id c22so2015785wmd.1 for ; Tue, 12 Nov 2019 00:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=reply-to:subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/4ilrxOZ4QdJ3UAgm96VMI/hVQ/UHpZg4vUaW945RSk=; b=aPZJaNpEqDsGZd07oyKR/UqP127LqAjk+WBw7hwfVMN0FoWn8Kz88BWPovdn0p0Hdn etVge4dcyyOlncyHRIp/SrzCa9jixeA5xTceibSlk3mTdSH0nZQMqE/TZ+vZ65lu7RE9 BdWtvuS4aObI1J8/ycZGmCHJxbd9nW3KX7Xu0ZzP8cLosg2EMYs3FApz/KQp2bB0n6hL cL7x1GCaxz6Bephfjz7MZG1CIImNYgbbiowJitpiferperrMn/vk3gE8ULGd2hiGCXFN CQKL3pU50oO41lZsHvZQvb7tJ351KhVVEFYBOy5Jr/e0KJPJ0WFdYi4bkCyxbTA9+jUg FuNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=/4ilrxOZ4QdJ3UAgm96VMI/hVQ/UHpZg4vUaW945RSk=; b=KNtUbAa5FLmL2MtRj02Pt+g9qwV1K32DxAdwZk20iC1KhL5hKY7IeARKe5vhGWcn7p tfJmymsqbeX7PX51fpOagjY4aqiuy2nTk5rexeZ9ZWrlM6/73K22y+Ad9ZUN1e4+XxqM WDWj6aQYBUnRM32KRxGpYbGFV89xNSY062TzuIqhjrolARdyI0AgPDN/biXOtPbjUkHd kCcK/uzSWidDeXLfYONUbvr1lcSuXsTxh03YLDti4ubrl0UKZT87J6QUHVd24eHLefOj 6dZ24znuAZ+pWowoib1gqOOHi2P5H9biEAxgeb5pvMAtrnUSOdvEtSvIS565MjTLEfey MoaQ== X-Gm-Message-State: APjAAAVeYyL0rMf0ptMqkcGZt/fFC5K37804iB+skzaC2ibwH2xdGh80 oDn8CkAkLzXdqz7HrYFPxJscHbQu2UY= X-Received: by 2002:a1c:3843:: with SMTP id f64mr2652366wma.129.1573548767671; Tue, 12 Nov 2019 00:52:47 -0800 (PST) Received: from ?IPv6:2a01:e35:8b63:dc30:3456:63b2:eba1:f7d5? ([2a01:e35:8b63:dc30:3456:63b2:eba1:f7d5]) by smtp.gmail.com with ESMTPSA id 72sm264150wrl.73.2019.11.12.00.52.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Nov 2019 00:52:46 -0800 (PST) Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH net 1/2] openvswitch: support asymmetric conntrack To: Aaron Conole , netdev@vger.kernel.org Cc: Pravin B Shelar , "David S . Miller" , Jamal Hadi Salim , Cong Wang , Jiri Pirko , dev@openvswitch.org, linux-kernel@vger.kernel.org References: <20191108210714.12426-1-aconole@redhat.com> From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Tue, 12 Nov 2019 09:52:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191108210714.12426-1-aconole@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 08/11/2019 ? 22:07, Aaron Conole a ?crit?: > The openvswitch module shares a common conntrack and NAT infrastructure > exposed via netfilter. It's possible that a packet needs both SNAT and > DNAT manipulation, due to e.g. tuple collision. Netfilter can support > this because it runs through the NAT table twice - once on ingress and > again after egress. The openvswitch module doesn't have such capability. > > Like netfilter hook infrastructure, we should run through NAT twice to > keep the symmetry. > > Fixes: 05752523e565 ("openvswitch: Interface with NAT.") > Signed-off-by: Aaron Conole In this case, ovs_ct_find_existing() won't be able to find the conntrack, right? Inverting the tuple to find the conntrack doesn't work anymore with double NAT. Am I wrong? Regards, Nicolas