🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7920

Re: MAC Privacy Protection Protocol Driver Announcement

#7920
From: Andrew Lunn
Date: Tue, 27 Oct 2026 13:15
56 lines
11665 bytes
On Mon, Oct 26, 2026 at 10:54:34PM +0000, Smith, Cameron T wrote:
> On Fri, Oct 23, 2026 at 03:00:23AM +0200 Andrew Lunn wrote:
> > So if you use it without MACSEC, you preappend a new header, and send
> > it out. Isn't the inner header than in plain text, making it somewhat
> > pointless?
> 
> Yes. In practice if MAC Privacy data is not encrypted, the changes 
> it's made to traffic can be trivially observed and reversed. However,
> the standard doesn't require encryption or mandate how encryption
> should take place.

What happens in practice? Just because the standard allows you to do
something does not mean we actually need to support it, especially if
it gives a sense of privacy when in fact it does not.

From an architecture perspective, i'm wondering if it should be a thin
sublayer in drivers/net/macsec.c. That then forces you to use it in
the correct way, it does actually give you privacy.

> This flexibility allows the use case where mac
> privacy encryption takes place on another device, such as an 
> Ethernet Data Encryptor. (See 802.1AEdk-2023 Section 21.8)

Does linux support this? And since this is 802.1AE, i assume it is an
extension to MACSEC? So would it be implemented in
drivers/net/macsec.c ?

> > For the timing part, how does this interact with TSN, sk_buff->tstamp
> > TAPRIO and ETF Qdisc? Clearly you want to reuse as much of that as
> > possible.
> 
> I definitely want to reuse as much as possible. MAC Privacy can use
> VLAN tags to indicate priority (See 802.1AEdk-2023 Figure 17-2), but
> I will need to look more closely at this topic.

I suspect this work will split into two parts. You will need TC and
some form of Qdisc, maybe extensions to the existing one, or maybe a
new one. And you need a layer somewhere to do the packet manipulation.

> Adding a MAC Privacy link to an existing Ethernet link named eth0
> without macsec might look like this:
> 
> ip link add link eth0 name macpriv0 type macpriv
> 
> Adding a MAC Privacy link to an existing macsec link named macsec0
> might look like this:
> 
> ip link add link macsec0 name macpriv0 type macpriv

As you can see above, i'm not yet convinced it should be a new device
stacked on top of macsec. Please explore what it would mean if the
packet manipulation part was inside the existing macsec driver. And
the packet scheduling is done via a Qdisc.

    Andrew
Technical Details
Message-ID: <364891b2-88ee-45d0-899a-cb2e919eae6c@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352453-linux-kernel-netdev=dewy.ru
References: <PH0PR09MB114568347F3E0622F9102AF628A662@PH0PR09MB11456.namprd09.prod.outlook.com> <c9f7ba83-ab92-4b2a-915a-1513c90a49a4@lunn.ch> <B0D3346C-ACAD-4938-8B3A-501F9CD52C64@pnnl.gov> <8546582a-e5be-471f-87e5-5eb68433083f@lunn.ch> <8D2A251F-C6BB-49AE-84DB-459FD7532306@pnnl.gov>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352453-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: MAC Privacy Protection Protocol Driver Announcement
Date: Tue, 27 Oct 2026 14:15:50 +0100
Organization: Usenet Network
Message-ID: <364891b2-88ee-45d0-899a-cb2e919eae6c@lunn.ch>
References: <PH0PR09MB114568347F3E0622F9102AF628A662@PH0PR09MB11456.namprd09.prod.outlook.com>
 <c9f7ba83-ab92-4b2a-915a-1513c90a49a4@lunn.ch>
 <B0D3346C-ACAD-4938-8B3A-501F9CD52C64@pnnl.gov>
 <8546582a-e5be-471f-87e5-5eb68433083f@lunn.ch>
 <8D2A251F-C6BB-49AE-84DB-459FD7532306@pnnl.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1544089"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:U5yPeozem4O4RmjBxZlTeJ+RhKs= sha256:wv6B0ejGJRFiPVm8BvXgVRdagTXcIn4R6pSIeqJrnak=
	sha1:SIOMKvlhYqRhbQwPWv4AHQr1rlk= sha256:Wab/K6PpI8javGHyx/1KrT1OoU2ibrpngWd20DbpBxY=
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 C3413125BFC; Tue, 27 Oct 2026 16:19:10 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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.25,
	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 4j5Mshs5CAQQ;
	Tue, 27 Oct 2026 16:19:06 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-352453-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 9220A125BF9; Tue, 27 Oct 2026 16:18:58 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id D24DA2C334; Tue, 27 Oct 2026 13:15:57 +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=1793106957;
	b=AQS0bmw7aVAalYDXU0y1Gj9O7mxWPNwkx6OHAjtirk2QDsrvd19bL3Di7hu6G2YzPOGN
	 kAU35Z2Ea30JdZT0ieDiFTkYX5YYXkCZVuV54kCtAYqO6GRIEBCloDptSbK69JCETCUPs
	 wrZv+ijRKvQFe9fFH8mwbiqdJkmfGXx+1O3O5GgaZjibDhZxVSoAQ9VT4XyOLNsKq3OYy
	 Eo0C/9sIG55LsGMMCMdtxODriphZaoKJOYKg65693+SDnHdTjWUWz8DiNZYNrJkX1PjX7
	 /Kw0tJdIeVjSDyZflKK/0bEe04GBB95tz6OuaYWxctoHLgXZ351Leaxt8DrzVfE+w2g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793106957;
	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=gVfhc1iFGlBjeBwbUagMKY2t326g1zG8dwVh7cILbtc=;
	b=SbYX6oLSOVMrT7uRJsAbs066NQ9GMQtDC0dH1EK++9ctpdxavOnikKW/gzAty7T/AJbS
	 FzCZvQ+E4Q/e6PwsBgUTjZ3rLiiaMdmqG0iqC5rXAjhT4jzWoPKOTueY352gAJSj2WSGt
	 RxOeof3iVP+r9ACMQ1gXJ8DkqVrLRrZb8s7+ajURbyxxJLtNkynhzqYDmCyrk7/IOkF6a
	 CN+5QryTzuSU9v/UyQzHJoXbjvuerMrciwHE0d+pfwZf6cUmknyHotZw9IdoVAPSoAdTD
	 x7tJv3rBl0YRK8CpWNGkgAKeezka2gI1wpOlpDjJrJp2oosbV0E6FQGeIXtv6JIFY8w==
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="EvRH6/rB";
	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 8267C606A324;
	Tue, 27 Oct 2026 13:15:57 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=EvRH6/rB
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=1793106956;
	b=dYqotMkO3u6ArPSyYtclZVFoSP5Wy38UtXJMDsQBAbFyIJfYtEpGHpUt9aMbhj9wdLrn
	 1slCrDnt+ZudGnUeRStT4W0MYDmLvXZ9N6LGNyfM7snHLmmkR1rNuxBu/3xcQBKq/QBkb
	 38/i5pcYDtRBpU8IB7dBNE2t8dn7wqaaY7RSpQ6Z9GWFSw1vf1YRuxhwOADQ9D1gUr5uQ
	 /O0oShk+75nZXNcJsjlgGiTy1FBe597irTNruwD9ixpitOFYOdPNP3GEBerBNZo/jeouN
	 /fMz2lGd9ejqPc75YNUrqYAxuURgNp1wb4diM5KgF0X8mBY01RRlUwBiuSYcAVf7qsQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793106956;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=gVfhc1iFGlBjeBwbUagMKY2t326g1zG8dwVh7cILbtc=;
	b=yxynURn4MH1cAckuZURuBJ3Ly1Q01y7ibeRgT+nMky6ZcAdQqYacrscS3Rh4OS4L0LhO
	 izP4GvJ15EZKnZJJNElYR601ZgOyXC8RM6ut5I+/ZxooUKkL9opEiz1OZ3wlKyl8H55Hu
	 efSSPkMUtKB82EPxYSLOG0GgWqoSHvwil8go9ovndwHUV+Fy5WiWEFo8Gg3a/3ZcjbfqQ
	 WvsKWgvfa8Il7DDkoH7wXnpOBqGHSfrL0ZCqU3TggmsIiJRmlNXRuw+GX/ccJeX3Ux2nu
	 wuAuWg7mTs1sdJjjGJVvT+owfpTrY1fMhPlOtt+Wqy9wHJR1I4vDNHleakr1SkkoE7w==
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="EvRH6/rB";
	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 17C08606A326
	for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 13:15:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 17C08606A326
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=gVfhc1iFGlBjeBwbUagMKY2t326g1zG8dwVh7cILbtc=; b=EvRH6/rBxxqStWlH3tyuUmrttn
	A+h/OkLWvbuTwe1VmT4ffHIcEcRPTBtA614C5dO66XAUUFa4o/vVRend92esOA9dwhnouLxTLKUGj
	/xX+oY7oJhbj5EmFJfuyRZsJXS3ZG9BIDN2v8D6vYPXsH6c1lEsZUTN+6Z7f29ae0LB8=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xLh1q-00CwLC-Qm; Tue, 27 Oct 2026 14:15:50 +0100
X-Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"edumazet@google.com" <edumazet@google.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"horms@kernel.org" <horms@kernel.org>,
	"ojeda@kernel.org" <ojeda@kernel.org>,
	"boqun@kernel.org" <boqun@kernel.org>,
	"gary@garyguo.net" <gary@garyguo.net>,
	"bjorn3_gh@protonmail.com" <bjorn3_gh@protonmail.com>,
	"lossin@kernel.org" <lossin@kernel.org>,
	"a.hindborg@kernel.org" <a.hindborg@kernel.org>,
	"aliceryhl@google.com" <aliceryhl@google.com>,
	"tmgross@umich.edu" <tmgross@umich.edu>,
	"dakr@kernel.org" <dakr@kernel.org>,
	"daniel.almeida@collabora.com" <daniel.almeida@collabora.com>,
	"tamird@kernel.org" <tamird@kernel.org>,
	"acourbot@nvidia.com" <acourbot@nvidia.com>,
	"work@onurozkan.dev" <work@onurozkan.dev>,
	Sabrina Dubroca <sd@queasysnail.net>,
	"Griswold, Richard L" <richard.griswold@pnnl.gov>,
	"Phillips, Aaron R" <Aaron.Phillips@pnnl.gov>
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: <8D2A251F-C6BB-49AE-84DB-459FD7532306@pnnl.gov>