Article View: linux.kernel.netdev
Article #26643Re: [PATCH net-next 1/4] igc: Support ACPI-based MAC passthrough
From: Andrew Lunn
Date: Fri, 04 Dec 2026 01:28
Date: Fri, 04 Dec 2026 01:28
44 lines
10043 bytes
10043 bytes
> igc: Support ACPI-based MAC passthrough
>
> With this patch, igc_probe() looks for a system MAC address in the ACPI
> \_SB.AMAC or \MACA objects when the I225/I226 controller is
> Thunderbolt-attached. If it finds a valid "_AUXMAC_#...#" MAC, that MAC
> replaces the NVM MAC and the netdev is marked NET_ADDR_STOLEN.
MAC passthrough is a big can of worms with all sorts of corner cases
breaking systems. In general, don't do it. If you do do it, expect it
to get reverted at least once, maybe more times. That is what history
shows.
> > + if (pci_is_thunderbolt_attached(pdev) &&
> > + igc_get_acpi_mac_passthru(hw->mac.addr)) {
>
> [Severity: Medium]
> Can more than one interface end up with the same MAC address here?
>
> igc_get_acpi_mac_passthru() evaluates a global ACPI object with a NULL
> handle:
>
> status = acpi_evaluate_object(NULL, (char *)sources[i].name,
> NULL, &buffer);
>
> So every caller gets the same 6 bytes.
>
> Nothing in igc_probe() ties the NIC to a specific dock. Nothing records
> that the MAC has already been claimed, and there is no way to opt out.
>
> Every probe that passes pci_is_thunderbolt_attached() gets the same
> dev_addr. igc_reset()->igc_init_rx_addrs()->rar_set() then programs that
> address into RAR[0] on each device.
>
> Some setups where this would happen:
>
> - both ports of a dual-port I225/I226 card in a Thunderbolt PCIe enclosure
> - a generic Thunderbolt-attached I225/I226 adapter that is not an OEM dock
> - daisy-chained docks that each contain an I225/I226
> - an igc dock NIC next to an r8152 dock that also does passthrough
See the worms wriggling in the can...
Andrew
Technical Details
Message-ID:
<671f03a5-8708-42fd-8ee1-2b63ed36d4a4@lunn.ch>Path:
mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376950-linux-kernel-netdev=dewy.ruReferences:
<20261203005042.348952-2-anthony.l.nguyen@intel.com> <179634646953.3146.945938889144604548@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376950-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 1/4] igc: Support ACPI-based MAC passthrough Date: Fri, 4 Dec 2026 02:28:18 +0100 Organization: Usenet Network Message-ID: <671f03a5-8708-42fd-8ee1-2b63ed36d4a4@lunn.ch> References: <20261203005042.348952-2-anthony.l.nguyen@intel.com> <179634646953.3146.945938889144604548@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2647259"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:zryvmCUPit7SyrnCdVj1WWL368E= sha256:p24vYhp66jx4TGmwpz/26MsNPFh+1P5f37rkAYyKftk= sha1:8o9DGD1s0cDFMoOPzC/9/Su0gwQ= sha256:qjxCUpgkAIPPSSXk5HqgKwBdE7Bv2QLcVF1hMFTxJbs= 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 788C1117A9D; Fri, 4 Dec 2026 04:28:47 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.398 X-Spam-Status: No, score=-3.398 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, 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 q0o1OIpHfY4k; Fri, 4 Dec 2026 04:28:43 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-376950-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 583C5116D9F; Fri, 4 Dec 2026 04:28:34 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 8E5E6601727; Fri, 4 Dec 2026 01:28:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796347711; b=BoMxXmOHUQmXOyJcOTFY+okLPBNChLC9UDK7D8CYzLRXg4H+KT9JZ72lAA8e+7Xk+4Y9 QbrV0kEhPgao10rXFjPWuswHhBGEZ75mkieF3cGSVtZohG8dnna2JXY7sBTfK45j3XPUC SSk8uZKHrI75gOWOKki+FbSf9QXJqYAgeg6QU+CIxIzDHZtlLyt3bB3o6LiE09kcx/qyP w70OaiTjLCE5uGcO2ZIR4gar5WBpXEHilEbqw+/E9XNL/nNwnmol8E2uMzfSwjMtm1k5R rOTzFFuIE0JK7RrXucX5QtZYCNdTCQ2HrlygZdDBU4bOViqCa9a4+59R70rv7lt2I1A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796347711; 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=skkQchjBfkFhXWkNWTOKoaCmpJ+4rcg1FQ6ZHHa7E4k=; b=1qqHOxh4qVXpgfS3Y+aRUwgCD3bNdcWoqSO1mJNk1aELytocRH3NBqI9cwuhmxVpkBZ7 3GtvYsJm8dJt8lF943LJxOYwI1x0G/l4JpGPHxKW7tLe1FrYQ9x+XwSP+ucd7nyIjSZ5y hSqwh0/pb1rHlosqIrAMdjZEJ/NyaR5Jh9dE7fwId5IZjW+CETcLcL9eTlMEsgfXTi2FV jg48GPvqgrVpc/zdk+Z4ncyg1Etowz0/vsSgVUdl7re2Y0zcZu1S1OQUJaxYM6M1JJBlP KoclwVnew83RA2UM5AVlVFIhLTT+61QSg1ToyfIqf0Aidi660dkBQrDtcrHxzfKWi7g== 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=XVerN4l3; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 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 3771E606A334; Fri, 4 Dec 2026 01:28:31 +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=XVerN4l3 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=1796347710; b=oW8aE8mGcTUDT/nuOLmbcL8AvxvJDIDztMHQjNnzFbhE2r857axwXIjBNcHT9P5EH2wH C9HGxm47wQLKud+5/F/dYQuxuABAqwwOxtoYFINDBhmq+b7ciq/V3mj7aNSX06E0cI/jQ czClYWSskdNLZZFmHcFdhOjnlFiz6m4KuZj8/F3umhz9TKk4r1qXmupCfFc0tuF800CyV wUXmSJ6i7gX73R84861FO95TmN4m+0za2wOuW4Q8OGfA6ClhdalQaBRNM2aa7LlpMJyLb zZ4YpQeK1ehb0TccyVtutntIio8D1gDGrc4SQqjLAGroYwJNwU3M7PvEzZznrwmHNVw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796347710; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=skkQchjBfkFhXWkNWTOKoaCmpJ+4rcg1FQ6ZHHa7E4k=; b=df/fJ9t+fMDAT5kAMTy/gikvweCbxMYvcrnXYY6vFC9IzTaoAn5EFUJVf1TlalIyJbjQ UAqd3ZcwqlkQOcR+gS8iwWTCaTBHpuwYYySHT38rnbaV25McQYbtJR80YmXnVmiZmxlLH uksCcWgPNvc3CSKjRxBkIGU6ThaRDL1Hjk+KpyiqJ6Teqz7uUHdpkpvYsJm6VzrDRHLp1 OA4iWPz/KJFtXuSwvsb8Hs5FnGDwOuagtLNLolq+yfFOK6zo+cuk2wAPnKrnAqQqMiB7s ICU+DFKL3HsmLM8Gh3yg5HtRvhndsJRK9xVO2gwNAM/F6mCVd86uNjKlPoEyr4P52fQ== 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=XVerN4l3; 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 15A0D606A322 for <netdev@vger.kernel.org>; Fri, 4 Dec 2026 01:28:29 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 15A0D606A322 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=skkQchjBfkFhXWkNWTOKoaCmpJ+4rcg1FQ6ZHHa7E4k=; b=XVerN4l3eYz0/Z9WggXAMM483e To8wU15rjcj/sDD4Od8LxxX+0mja1v+WrrdJUiV8LWfhOIFddiRsWGCKtRu48kmRQpL50MtyLlcy1 vF16D6zDy/JSlfVP3hnJoSbTFCJ1lS7spHS5JW7IqQVmSuvG1j/GrZafYOdAYiUB8aD8=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xZI5y-0038I7-TP; Fri, 04 Dec 2026 02:28:18 +0100 X-Cc: anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, andrew+netdev@lunn.ch, willemb@google.com, netdev@vger.kernel.org, paweldembicki@gmail.com, dima.ruinskiy@intel.com, pavankumaryalagada@gmail.com, sx.rinitha@intel.com 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: <179634646953.3146.945938889144604548@kernel.org> X-Received-Bytes: 9731