Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4421984rdb; Fri, 29 Dec 2023 00:44:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFb4NMi7J+SUQSWHH9YnRQBq1A4XOXfrGy9/UnzfFFdUP1ly7V7OzEuxWpSRDH9u+jBEttW X-Received: by 2002:a05:6830:e0b:b0:6db:fd40:daf0 with SMTP id do11-20020a0568300e0b00b006dbfd40daf0mr4829028otb.67.1703839473781; Fri, 29 Dec 2023 00:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703839473; cv=none; d=google.com; s=arc-20160816; b=07lTVPqlDlYUeIaVU5CQv6VW6lH+jrLzF0OMVLHS4Fecaq5kK/dtD0sgEzFBQc56F0 Py0kxOzvARVvtxr1CJRdr9S5A7i96GRH/N31cczQDf7VPaDs9zOxuyuhHXYZTy1uRJ5c Oli68IOd1GGJGg0+S7EKwSDn2rWSpsnlWEmk81IVWusq8lTjg8XRVd8OQ2uSOYt8K189 /qe2AcqzJxarrxpPu2cEAtGgAphznVjCuFTb+bT8lcikKzTUKjMP65/PWmG7nqUQHWXt LQNATI2Ftx/qzPi45EFP6vEICDqNeWWORghzxiQcPwFZPtcnyo8RxwYWhjFQENPTtgIO 6AuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=FTJQs9mJy7pyMrhyTvIdgCJnjTRDMSlc5q9nM2syJVM=; fh=XqpEWpd5GwXgOGN3ti/BENruNKbwlIUbZYdb3iQ2X3Y=; b=XrDjKxH+FvujbxQ3ARpb9CXfoXNW9BIIKR2/zdXYAWw7uuKzj1CA9WujT28s6vyr4S Zrd81RupDNQPRX0jm+3RUEWf6K1KR1QfhQyzuYAsoVB9ELUlF+R1devvd88iWyu89rQo 1RyPM3dPn5kgfjc5e4o/LrRl/pzcZ0xEn4Jxg5y3si9nAaOIdj9T4SLYmGXRvVa33TEi HwYi7ygRnD8BZol0afmShB/P4jfN7MTUt6yqO934LtqAQuYXk58YNZO3XKhEKGKBymYq OBTunBrIfz4NN2NdckO0gL3dQyHYcsFHQ/Nk9ySnyhbzHTUdXuG2w6X/qTDsvBQroy2i 3CPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vbZfQ7s9; spf=pass (google.com: domain of linux-kernel+bounces-12999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f28-20020a63511c000000b005c660a37af2si14388698pgb.255.2023.12.29.00.44.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 00:44:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vbZfQ7s9; spf=pass (google.com: domain of linux-kernel+bounces-12999-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6927A283658 for ; Fri, 29 Dec 2023 08:44:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9C4C849C; Fri, 29 Dec 2023 08:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vbZfQ7s9" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 93E2979DF; Fri, 29 Dec 2023 08:44:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF00AC433C8; Fri, 29 Dec 2023 08:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1703839461; bh=BKbW0iQ7EYDzIsWyVqNMV+YR/FLupt8q7knhPlO6dmU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vbZfQ7s9y3e7sbS5nrDW81XzEHi6PiCRF9aNHDJ9MNhnFeYM5bzkf1r9lcWj7l7UP X2XVrOiIsNrnkvw/CRFaOB1H5/x1Tm36ptZemKYgJtB4lmtOrztS5/uPDPymTXGbtx DXJn/WCmeaq7qT8r/7kQDHTG3KMkiuOYIPqbUfbo= Date: Fri, 29 Dec 2023 08:44:18 +0000 From: Greg Kroah-Hartman To: Luca Weiss Cc: Hardik Gajjar , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Acayan , Thorsten Leemhuis , Caleb Connolly Subject: Re: [PATCH] usb: gadget: u_ether: Re-attach netif device to mirror detachment Message-ID: <2023122900-commence-agenda-db2c@gregkh> References: <20231218164532.411125-2-mailingradian@gmail.com> <4713072.LvFx2qVVIh@z3ntu.xyz> 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: <4713072.LvFx2qVVIh@z3ntu.xyz> On Thu, Dec 28, 2023 at 10:59:59PM +0100, Luca Weiss wrote: > On Montag, 18. Dezember 2023 17:45:33 CET 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. > > (+Cc Thorsten Leemhuis) > > This appears to fix the regression on a 6.7-rc5-based build for > qcom-msm8974pro-fairphone-fp2, that the NCM network gadget doesn't work. > I've also heard reports from qcom-sdm845 and a PXA1908-based phone (if > I see this correctly) about issues on 6.7. > > In postmarketOS on the device side the usb0 interface doesn't get the IP > address assigned correctly it seems, but it seems to behave a bit > inconsistently - but always broken. > > Anyways, with this patch everything looks good again. I hope this makes > it for 6.7 final still. It will have to wait until 6.8-rc1, sorry.