Article View: linux.kernel.netdev
Article #24892Re: [PATCH] net: ravb: Honor the promsicuous mode state on device re-init
From: Andrew Lunn
Date: Tue, 01 Dec 2026 01:39
Date: Tue, 01 Dec 2026 01:39
24 lines
9185 bytes
9185 bytes
On Mon, Nov 30, 2026 at 08:28:55AM +0100, David Oberhollenzer wrote: > When the device is initialized via ravb_emac_init, called from > the ndo_open implementation, the ECMR register is initialized > with a configuration that has the promiscuous mode bit cleared. > > While this may be desireable for the default case, this device > (re-)initialization is also performed e.g. when changing the MTU > on a running device. An interface that has been set into > promiscuous mode (e.g because it has previously been attached to a > bridge), now silently drops out of promiscuous mode, but with the > IFF_PROMISC flag still set (leaving the bridge to no longer forward > frames correctly). > > Make sure we honor the state of the IFF_PROMISC flag from the netdev > when initializing the ECMR. > > Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at> You are missing a Fixes: tag indicating where the problem started. https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html Andrew
Technical Details
Message-ID:
<c5ecd118-e175-47d1-a885-0ac2690cc2f8@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374613-linux-kernel-netdev=dewy.ruReferences:
<20261130072856.16909-1-david.oberhollenzer@sigma-star.at>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374613-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] net: ravb: Honor the promsicuous mode state on device re-init Date: Tue, 1 Dec 2026 02:39:16 +0100 Organization: Usenet Network Message-ID: <c5ecd118-e175-47d1-a885-0ac2690cc2f8@lunn.ch> References: <20261130072856.16909-1-david.oberhollenzer@sigma-star.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1585517"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3qL3roW+m4PnAjaT9sL1c18ZuXY= sha256:mfPEW+BxV8zyidtNKZ/UkHI7u5SFADn5t325N8UEqI0= sha1:kJED9tQ7jJClvM2hXB6Bekgh5UE= sha256:SDtafjDbQyor/n/VEaqEN1ONy2nhXBQ6tFYjbgvBybU= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 5510F1171ED; Tue, 1 Dec 2026 04:39:46 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l3SEUFFXCA2K; Tue, 1 Dec 2026 04:39:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-374613-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 256541169D7; Tue, 1 Dec 2026 04:39:32 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 9F916240C2; Tue, 1 Dec 2026 01:39:29 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1796089166; b=v7pFXl0lLD+j+JuU9Ae3sDNQF6SKdUKmkm8X/njqaBVRYBkYCEKPegEiPOnNlwt1uhAo 6Cs53FMhnKQyqGHdXXjXArn2SWmSQjZmrnG+bEs9HmPK7x0cuuwOdQ83FlQCl/JAg/xFe 7udCPV5lPixaxYUUbKQJqlgDA39jmoRZ8prWVSAO2JzMk676USXTq44KDKjgTfk21sgNC A5TimB/QzN/w67DPFLPGsrVNlkAQjGoqFsmSNLEdScruQ2V9UjfH3SJRa832pXVEchX+I hD8gsWgE47y9o1QZxuslPY5IMwtuRe3LNq+OmGrUVFU2/fof/3ga2f8AMX6t3NNGrdw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796089166; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=TXYspqiBkpgUNZoMzvxebuWhl7kOOkOnDukO825CM6g=; b=zLHGgIOXH1Uis7vNgfcxwZnwxFfm9S33Fnx/v0zHlbghEcSsW+POEWi9xwkkwWhb8+HG KhDCvndzpNrrXjvHRqm8rnndZyaOP3eLK2CpT/79HdTet/D3IHYgvOsYSWE58Zjf0yZfN 3yV3hRq6wEuEKQ5mfVCoYatZeGJ05gDwSoHA6pTeR/z+SS2mT0ZEQFKedqP4hX5RrkIfd LKj+LsscYDQfa2HQgXXRwsO0ayLPgseHr8D3C/oK8g9gKoW2QDSejBJi3rV8PoQ7AlM5f kADyLqwuX/qrwtfs6umEbherkc/85iIkJ8tTpOeBVxnkCgfDtj9nCe7dUu9kajAYCpg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=rwfNLNCc; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=fail smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BFED606A332; Tue, 1 Dec 2026 01:39:26 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=rwfNLNCc X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796089165; b=QfOM5C5skFSdwhWxb36rtDAH5w3kK3reDe9I3sqp3fNcgTikOKvbLGD9UFNhKEYeS3Xr OKcp4uxgUxjzUxvXB68Pfg3bE4GQHD+sqA57+mRBC8ynoOgolPcpEYGoWyZpu9Muyvx76 acskoQbZCm6i/IC2N+pmkXk4WAxGs6rvYXOQ9O49fd3lrmzK+3JBkDFSTyd3H2W+TeOEa avgsbmilznQGfsuiFvenz5u/49oAkcVTkL3Akb/9gh6QClTYi9RCfvYvhIyRfeZyLqi+m FTYlJjJBYCj01OFf1SP72q77w0W44hv6upPmDwCX6JhUdDdMVJn1ZSjlzHjlHIlU20g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796089165; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=TXYspqiBkpgUNZoMzvxebuWhl7kOOkOnDukO825CM6g=; b=t+k8txEJjaT1t20Bk3oi65AZrEdIZ1HrMKnI+lGnlwdVKUWYAaRjKHrXtx2qz+OpJYEx 2n2DhA9dVXdG8fXSjj9lK/6O3kYsvcded9JogV0+gW3TonzY4b5sf9QMXbgQRxmGPU8eh IGDsZKuo0DJPdjp+8vj2f3gixC35IuEuVISzWk14kUTcXMIr0hmcuiQN+r4zM8AAHAjop q0YsglVV5oFsv8afbS5lz6k+8V2eNrh7kr6INi5EALn4VpgfNHHydwFp204Mg7LI1CI6m A/3KpirvZScWWntZW3MTqPp1XM4CJCoDuBtuFySsqT8AhlXVacGknHoqgD1kHWSysUw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=rwfNLNCc; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42F98606A31A; Tue, 1 Dec 2026 01:39:25 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 42F98606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=TXYspqiBkpgUNZoMzvxebuWhl7kOOkOnDukO825CM6g=; b=rwfNLNCccyetgydkLyPQGMNXqP aGNDV2ozc7w3EnT9O3ScWpIVOPMtEb82y2ga+9GgffxMEq/OUOgxUKYOdQv7XHSAtUsjg6NPdq2xA 0s4gQkwU1WFaWt83xItWHcXgyD8pJeR+OvwBHkgOFJNjD7Qc92Vyourhq5GcwudFe2vk=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xYCpw-002UBd-7h; Tue, 01 Dec 2026 02:39:16 +0100 X-Cc: paul@pbarker.dev, niklas.soderlund@ragnatech.se, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, upstream+netdev@sigma-star.at X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261130072856.16909-1-david.oberhollenzer@sigma-star.at>