Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4950016imu; Tue, 29 Jan 2019 10:10:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN6sbAKOkmCxnhBSwIxOiawSeOC2ToeBr2tMVWKF0BWH60v8M5LqHaa04ZuhsGVgfd8jdNst X-Received: by 2002:a62:1a91:: with SMTP id a139mr28111202pfa.64.1548785455272; Tue, 29 Jan 2019 10:10:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548785455; cv=none; d=google.com; s=arc-20160816; b=i6EjLX1tEi5SFStPEw1z3QlecEekGFiEdbLjQb+i3SrrKZv6bGAiPkD+mKZjtqK7C3 q0gV/RViHnbijQYwMK8Wp9qd535tjjI2GCZ306S/5r+/IvUZxMctO+UWen2pe1cPrnIO ONMtrWVsvZPBPVQPiJBgyrgI8Hx5ySauu0ciFIg3OdIFaSRSgRWGcV/2J+0FkH/dqGxy +dQ3mmNQ6XAZp3wxG0ELHEviXI7a5OKiznX4ugZv+wJ41kTVpf8AvHA0B9FTs8hCVLvH hp9qYbzV57JgPNkAUtuUDuNEUWx/fp7tAigd59VOxqKhoXsvnucGFlVaGvYRd539lmP7 3V6Q== 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:from:subject:cc:to:message-id:date; bh=gQc0rj14FyxMiW3PWt4HyTU6XMKIeVYiGRhZ9omuU7Y=; b=ri4Zxj6YDDcW0ot4ro1ZPooD3pq3XxCpEjMQPxKppMo8vq1XSsN7zT+vuJ0mAieOSu fhYUk7fnRF0uYSf9YkLvWq/OyedLtvCRuP2vqaIKKgkwbCISMhwmSPui3L+tKfRxin/4 OdZIE//zoLUh24xC8z8iRW+1g8QEg3GCVAMfjx33VLMp+6jX67sMwWqfI2bhqj219yLY hHcH0bTZamhCNY4MzenY9IFEyT4jYBzgK31gldXiPsRLlOkWzk7mNM/Iq8uwssIP2Hpf P56OcvOQActGHWlYEIPZLw3pCcWlLgVThDSPcFuNZUVKWF5YVgWIqN0+j5BE50gBlczH BJbA== ARC-Authentication-Results: i=1; mx.google.com; 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 w67si15711505pgw.84.2019.01.29.10.10.39; Tue, 29 Jan 2019 10:10:55 -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; 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 S1728444AbfA2SK0 (ORCPT + 99 others); Tue, 29 Jan 2019 13:10:26 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:33648 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726846AbfA2SK0 (ORCPT ); Tue, 29 Jan 2019 13:10:26 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5824814EFB5BC; Tue, 29 Jan 2019 10:10:25 -0800 (PST) Date: Tue, 29 Jan 2019 10:10:24 -0800 (PST) Message-Id: <20190129.101024.2142969510882311385.davem@davemloft.net> To: mika.westerberg@linux.intel.com Cc: linux-kernel@vger.kernel.org, michael.jamet@intel.com, YehezkelShB@gmail.com, andreas.noever@gmail.com, lukas@wunner.de, andriy.shevchenko@linux.intel.com, netdev@vger.kernel.org Subject: Re: [PATCH 01/28] net: thunderbolt: Unregister ThunderboltIP protocol handler when suspending From: David Miller In-Reply-To: <20190129150143.12681-2-mika.westerberg@linux.intel.com> References: <20190129150143.12681-1-mika.westerberg@linux.intel.com> <20190129150143.12681-2-mika.westerberg@linux.intel.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 29 Jan 2019 10:10:25 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mika Westerberg Date: Tue, 29 Jan 2019 18:01:16 +0300 > The XDomain protocol messages may start as soon as Thunderbolt control > channel is started. This means that if the other host starts sending > ThunderboltIP packets early enough they will be passed to the network > driver which then gets confused because its resume hook is not called > yet. > > Fix this by unregistering the ThunderboltIP protocol handler when > suspending and registering it back on resume. > > Signed-off-by: Mika Westerberg Acked-by: David S. Miller