Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2082435rdb; Sun, 21 Jan 2024 06:46:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IESPv3gMV6iIngy4cxBZ5VDGJEYM3UgfbUDfFBCfCgb03Ef4Ue/V2AD0bEJo8qZYvk5T90J X-Received: by 2002:a17:907:8743:b0:a28:fbf4:5946 with SMTP id qo3-20020a170907874300b00a28fbf45946mr1353802ejc.104.1705848369085; Sun, 21 Jan 2024 06:46:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705848369; cv=pass; d=google.com; s=arc-20160816; b=HXo1InLvzMARxFiGYKBdqVhVQ4Ek56iUut9sWb6yzwO3RNbzO2dM0Tt17F/qXFsZXO AUAEzFFLWurFaQB1DDQq5ae/OcR2aDmwvaAdVqEyBsR5B1I2FK53Pe2NKm1iFpt3H8wc d6MC3G1pmIgjNFAWmYS3P/FFJdW91XjytPMmmRCDanRH1JTTl1mnx8UmnCu/4kDU0orS Jsm57btNBjr4diPO2xRd/y0Hf0bxJY3Ol1OqivmvF5NL7tx3ev8/vjJJ4HIDhKsqUkC9 8H1a95zejewDNBqCK5+I+uwoES37WhyRhMN2t7qiamhEfLw1ukHv7pYtP2iCBE6ZTR43 GqHA== 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=0zWv+nleFPUADFffgeFHvOZX4u3Lk7ACJB7fHq0Ymks=; fh=wVx+Hcat67rgHu0w92mFOQ9waMMXPisjW74/Q/wv7lE=; b=NmcaFTUM3lvv1Njg6PaWGVnk8ueu+lemAZorIUedTiXENxORDCEurpR944PbP7Wo+n KwaEG/VUakQrvpFWt7+6yZ2osFUFV7haZdz9m5wTBs1YqIYKPolWs6JO0uAZnZDBkizP vbzKvNawVTvaGrx9Fc7yrbah6qcZz9EmEqt5LmYbdGlPGZ5QwgVX/NjoR3OcORlp/32e r2wSLSxebdSo7A+LNUrR6Kl944cag8vTSK6wJSaN+4PlmKc1P3YiROgY42AVlzXUTFAZ DFVNMm9ACFwJU2ixihT/swo0MH1eXYTZzDXSsjrQWfqsNLc6hmH9nWeRSOaMx0o7whih hfuw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="bFtsE/kJ"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c4-20020a170906340400b00a2c375d2303si9725698ejb.912.2024.01.21.06.46.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 06:46:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="bFtsE/kJ"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-32065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32065-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AAAD11F23128 for ; Sun, 21 Jan 2024 13:30:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70D73374C4; Sun, 21 Jan 2024 13:29:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bFtsE/kJ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 DF037273FB; Sun, 21 Jan 2024 13:29:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705843793; cv=none; b=s/onxu/J+eo2QAHXCcLy0InD41Eq7LD+EatSza69q9Fp/xEicErTsXdIe9wcdEcjPWAqlwCy8ncQ0Tfq2dTOPZNGs/spfjZaKigwzNGW/BHHG3dQaPCPkRT1+Qf0MvC1+R5VcocKFnjrE4or8Jk5MQ2QH487pqQ07svFHZg36yc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705843793; c=relaxed/simple; bh=sxYYYs4lyOVZUnzoUjZf9ycyeZ4JTQhXdYqfoan8CJo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ooqBz76x4AYrr63/IZ7OvugdeYR8M37aw4Ik2NwHnxXnWKIksMQqVbbVzRsqnRvDoXWUDkyPLraS9p+wawGxUdQT1/eSvukM3XrXU2i029h9gUqiMrS/ok7lRH2C7GGgDAMjHWz8982UwHOwrDmf8mAoXte4Z1dXlcRSSKf5n+0= 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=bFtsE/kJ; arc=none smtp.client-ip=192.198.163.8 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=1705843792; x=1737379792; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sxYYYs4lyOVZUnzoUjZf9ycyeZ4JTQhXdYqfoan8CJo=; b=bFtsE/kJktGMiznAsMkHlfWxgQv8JAaq+gncI+SwuIbHgZvO3iRYvvJt g+E2GcpGGyE2gpX7kPqXnbDVPFM6AcQIRd6TlTZ2HsbcezA5qqTViQPdw AcKqzvKgyvuErgoQCt0uPK44en0OnRgTjZlTsuVmdnyh5e9sj7o/YZKhr EYFfSYNT4jXHrepaxZ4blyjcnjilu3FQsJUQuUFSLg48K3i8zWqF2DTbO E60/vc/0szzt7zHITxvzfA+a+Bd47nm0vU55216bqu4c8AoykExRMG7sv CoayK1BkuQAE/MhIygZBOfvx7BCgNPAriqSNU7lJu8DW2ap+cW17AezwB g==; X-IronPort-AV: E=McAfee;i="6600,9927,10959"; a="14541413" X-IronPort-AV: E=Sophos;i="6.05,209,1701158400"; d="scan'208";a="14541413" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2024 05:29:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="1116630109" X-IronPort-AV: E=Sophos;i="6.05,209,1701158400"; d="scan'208";a="1116630109" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2024 05:29:49 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rRXoA-0000000FdSz-2EDX; Sun, 21 Jan 2024 15:24:18 +0200 Date: Sun, 21 Jan 2024 15:24:18 +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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Sun, Jan 21, 2024 at 03:23:42PM +0200, Andy Shevchenko wrote: > 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 Sorry, now correct tag. Tested-by: Andy Shevchenko # Intel Merrifield -- With Best Regards, Andy Shevchenko