From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: tcp response should set oif only if it is L3 master Date: Wed, 09 Nov 2016 22:32:55 -0500 (EST) Message-ID: <20161109.223255.909783611962136545.davem@davemloft.net> References: <1478711246-17440-1-git-send-email-dsa@cumulusnetworks.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, lorenzo@google.com To: dsa@cumulusnetworks.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:49004 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753322AbcKJDc5 (ORCPT ); Wed, 9 Nov 2016 22:32:57 -0500 In-Reply-To: <1478711246-17440-1-git-send-email-dsa@cumulusnetworks.com> Sender: netdev-owner@vger.kernel.org List-ID: From: David Ahern Date: Wed, 9 Nov 2016 09:07:26 -0800 > Lorenzo noted an Android unit test failed due to e0d56fdd7342: > "The expectation in the test was that the RST replying to a SYN sent to a > closed port should be generated with oif=0. In other words it should not > prefer the interface where the SYN came in on, but instead should follow > whatever the routing table says it should do." > > Revert the change to ip_send_unicast_reply and tcp_v6_send_response such > that the oif in the flow is set to the skb_iif only if skb_iif is an L3 > master. > > Fixes: e0d56fdd7342 ("net: l3mdev: remove redundant calls") > Reported-by: Lorenzo Colitti > Signed-off-by: David Ahern Applied, thanks David.