Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2137207rdb; Sun, 21 Jan 2024 09:00:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdHTKbCY8LpqE3vucu1LtPPb9cvSR0EGradzZsMbnQj+zlZBvfkq4IGPLf2n9Zs60vWbN1 X-Received: by 2002:a17:90a:a884:b0:28e:81a3:43d5 with SMTP id h4-20020a17090aa88400b0028e81a343d5mr3156264pjq.27.1705856417129; Sun, 21 Jan 2024 09:00:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705856417; cv=pass; d=google.com; s=arc-20160816; b=NRksI/95SB2HUxOP973BA5JxvBbOXL+J6+wSZ6e25WsZS2fmkPDRfCxZRCYYejIljm +PtnmyzrpebJ0w4m87XellhWdDRf1EVZN1uqoVVSAKGhTYsL/+OmenM4M8VngztbXrc7 CRUMrPCPpBqtJIjPEpR8B0mOp2YP5JjFBVQmAZJdjaDLy72T8m6eDmQFx71VXWV3ZOlG fTRQ6p6QU75Jz51pHf5RN5mz8I7xmQEpxZ+wrRrTwZF2bFjK5jdESrO5xyuamkUSbHSh 3XaWHyrBKAoDc4d/gruHrDyHEITiMlDdFI4a9wJZQYjVFSYqhu15sNH8I2gjbcC3U2K8 homw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=NBfFJAAtjOwXAkDahR6xtKk/SNwdzzGJKHv67C/3zNA=; fh=wVx+Hcat67rgHu0w92mFOQ9waMMXPisjW74/Q/wv7lE=; b=BcEtf2tA55mSRzNh8G4w+iKdJi065Q1VRzoiKb9DMp4nBdFDXYg1Gh2WdTT38DFp0c Mh3/FD0t+QuIeT64uhZ6IZ8JcCVpOmuMwctnmLU0qe0xzW1N6+4Hpry1qC8OeGvgM2vS DXpGiQ4KhqCi2lpk6bXYognpvs7ebh+4KO1hZXq+QYXJRb8UMgvpdVISmXzSi8bwDIoY HMv5qy2YhGtAdxe7aD0QXyVszin5XyM+DXjflqIZnmPWh+9qZtMbMlV5JJaBSSjTX7QI IQnaNrqTTNFTmXykjVOaAMMWdtwB+kikpZO950nw2xs24v4Yv8RAFqW3wZTLAIShmt90 CcpA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Updjnxkc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id lb16-20020a17090b4a5000b002901f15b93bsi6586583pjb.56.2024.01.21.09.00.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 09:00:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Updjnxkc; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 38DDFB229CF for ; Sun, 21 Jan 2024 13:24:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 314E63717A; Sun, 21 Jan 2024 13:23:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Updjnxkc" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B08CF273FB; Sun, 21 Jan 2024 13:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705843429; cv=none; b=V8yFGPKfaZ/Uz4WnXM+cQH6wSPouJ9FeUwPWCmt+8KkREcUvAWQJR+8fBnO7IsaXAFqmq+WmoZhI3XScaPex3gsCT3rCrfS0qhl1Ow2YvYfT3tBJcBfEfLNAwJGJublfAmzjgplZH3RRghb3VheLCy9CvmToZlFUPHup2xWZ9Hc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705843429; c=relaxed/simple; bh=nX0wC3BXoOzexoh889i8A9lXHbcB97hLlRRcCvc5jK0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X2Oaa8hAdc4Jl1vsb8Evm3Fg4SsKrPH9urDC3IbI/1Nk/Zq9JpF4vZ8LlsC5Gz90NoFQoXbWTA5QTJLWfXkPBEeCVp/WpO0rgvObAfn0GRny6YCXefAR4x8OpqMaW1GkW5ur2VYazbdWck5u3l859t+x4M0NRbMcgjYChUp/N/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Updjnxkc; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705843428; x=1737379428; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nX0wC3BXoOzexoh889i8A9lXHbcB97hLlRRcCvc5jK0=; b=Updjnxkc/brJwTOynlFOjknErD5VHkfRXyxdXfQ4K+hu/NomLvVjYcm8 oQN1n75VvLwcTxHAaZ/3kQS+pjK5bgqIo5uZE3Exol//XWROi9CDfOqXI r8/a7GE/jbsqNk8f7B0gu8BM0mrTw4QZi2g2DwedfkzZexD7SrOUd+/LP G7blzQYknXv6+T8OeVc2e6cA0scI9ZfWV9gH8J+SuFais15C8Yy9cqfpi IzDMDoh7Cgsh7AktOsNhirBE0hc0WcU4F01yNUkV7Alg+2H1smssyQWym 9KlsL70cMjm+OoFD2bT2tNLlS4U2m4E71mNtULWACT1Vdex+dJMLV882f w==; X-IronPort-AV: E=McAfee;i="6600,9927,10959"; a="920816" X-IronPort-AV: E=Sophos;i="6.05,209,1701158400"; d="scan'208";a="920816" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2024 05:23:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10959"; a="855725066" X-IronPort-AV: E=Sophos;i="6.05,209,1701158400"; d="scan'208";a="855725066" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2024 05:23:45 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rRXna-0000000FdSJ-1rNo; Sun, 21 Jan 2024 15:23:42 +0200 Date: Sun, 21 Jan 2024 15:23:42 +0200 From: Andy Shevchenko To: Richard Acayan Cc: Greg Kroah-Hartman , Hardik Gajjar , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: gadget: u_ether: Re-attach netif device to mirror detachment Message-ID: References: <20231218164532.411125-2-mailingradian@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231218164532.411125-2-mailingradian@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Dec 18, 2023 at 11:45:33AM -0500, Richard Acayan wrote: > In 6.7-rc1, there was a netif_device_detach call added to the > gether_disconnect function. This clears the __LINK_STATE_PRESENT bit of > the netif device and suppresses pings (ICMP messages) and TCP connection > requests from the connected host. If userspace temporarily disconnects > the gadget, such as by temporarily removing configuration in the gadget > configfs interface, network activity should continue to be processed > when the gadget is re-connected. Mirror the netif_device_detach call > with a netif_device_attach call in gether_connect to fix re-connecting > gadgets. Tested-by: From: Andy Shevchenko # Intel Merrifield -- With Best Regards, Andy Shevchenko