Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1066521rdb; Sun, 7 Jan 2024 01:56:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGeCsg1IWUf9NWxEu9r+GFVM1uFFBFFCu+ygmxR9nWf6CCKi1p+Rdjm2LXS5HhGrIrPFNeu X-Received: by 2002:a17:906:831a:b0:a28:a910:dd32 with SMTP id j26-20020a170906831a00b00a28a910dd32mr459710ejx.207.1704621398330; Sun, 07 Jan 2024 01:56:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704621398; cv=none; d=google.com; s=arc-20160816; b=EFuA46brClP40Ags5Po2YF0jD7BKqjY8rW9U1kj7nS4Z/fK+VBwfZe7jsHJXgIlUF1 VUaXGK/LFNOP+iUEEUYdzfyBgT8mBde+KnNIaUwfndKaWhzoOOYmS2v/J48GZjv622QR dK6jkjowo3pmnkyDiZuYUi5CTsjvSdHd8y3eJPnmqu7NgWUa20jFxy+hUwPyP+FfF4iE ZhocrxuIW1UUNNdWZPcSGHWFgh9tTHBP03/Ie7KLNkg0oPWgVT/tJ+R9Ehbp9dHkFIaB vHKZxgOk6QSj+YeS8UyL+byOO22CZK7z2PbAKmzq8V3wS9WZvuXF3+V0wwGfnwpcNTaK ZMdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:reply-to:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=QkqHDHzeLuwGpaoETsyQTmOp0hhQcDQRdFU0iRmGceE=; fh=vyPYz5H7SfJ/hgcfJZy0bLFROwMENbSIVO0I2kkZwrY=; b=ykUNJIeCezwq9izqwdhX5hxAoBTZOQi1R/g1erb+E8f2b30f5Oj2CNE2Jj7TYNnQ/T FCTggk18cNKVQfLfAW8qaZUy8Av7Tl+bibcytOiJAsL6wCTa4hWKCWgNA23xK4qccMSo 0NR0y1JdNCupaXjNVqAKXO1Xk3nPNfV5FYmSJxhSb+j9nCv70Wvx1451/54PfQaac151 Jc/zoLKvdB1Scg60HmtwHLMRHMNBy+e02aCe64tmwf/V0hjyUkNSs9voWF+QLgZuUw6W 3eZCTTgg3hxS9uZXwe48fsAy8IO4O6o7Y2vkn3HjaAEJYJyhuV9t49Ea0LvRvNsZbJHL TS+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18826-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lo25-20020a170906fa1900b00a273adc9aadsi2107861ejb.333.2024.01.07.01.56.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 01:56:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18826-linux.lists.archive=gmail.com@vger.kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0E7781F2162C for ; Sun, 7 Jan 2024 09:56:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 227D312B8D; Sun, 7 Jan 2024 09:56:28 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (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 8BEF712B78; Sun, 7 Jan 2024 09:56:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1rMPtH-0005kk-7T; Sun, 07 Jan 2024 10:56:23 +0100 Message-ID: <9e7cb70d-1eff-4240-841f-e08a91ca995c@leemhuis.info> Date: Sun, 7 Jan 2024 10:56:22 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: Linux regressions mailing list Subject: Re: [PATCH] usb: gadget: u_ether: Re-attach netif device to mirror detachment Content-Language: en-US, de-DE To: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Linux kernel regressions list References: <20231218164532.411125-2-mailingradian@gmail.com> From: "Linux regression tracking (Thorsten Leemhuis)" In-Reply-To: <20231218164532.411125-2-mailingradian@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1704621385;e512b629; X-HE-SMSGID: 1rMPtH-0005kk-7T On 18.12.23 17:45, 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. > > Link: https://gitlab.com/postmarketOS/pmaports/-/tree/6002e51b7090aeeb42947e0ca7ec22278d7227d0/main/postmarketos-base-ui/rootfs-usr-lib-NetworkManager-dispatcher.d-50-tethering.sh > Fixes: f49449fbc21e ("usb: gadget: u_ether: Replace netif_stop_queue with netif_device_detach") > Signed-off-by: Richard Acayan Thanks for the report. To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot: #regzbot ^introduced f49449fbc21e #regzbot title usb: gadget: u_ether: network gadgets don't work #regzbot fix: usb: gadget: u_ether: Re-attach netif device to mirror detachment #regzbot ignore-activity Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you.