Re: [PATCH net-next v12 01/13] net: pse-pd: Introduce attached_phydev to pse control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le Sat, 24 May 2025 12:56:03 +0200,
Kory Maincent <kory.maincent@xxxxxxxxxxx> a écrit :

> From: Kory Maincent (Dent Project) <kory.maincent@xxxxxxxxxxx>
> 
> In preparation for reporting PSE events via ethtool notifications,
> introduce an attached_phydev field in the pse_control structure.
> This field stores the phy_device associated with the PSE PI,
> ensuring that notifications are sent to the correct network
> interface.
> 
> The attached_phydev pointer is directly tied to the PHY lifecycle. It
> is set when the PHY is registered and cleared when the PHY is removed.
> There is no need to use a refcount, as doing so could interfere with
> the PHY removal process.
> 
> Signed-off-by: Kory Maincent <kory.maincent@xxxxxxxxxxx>

Forgot to add:
Reviewed-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>

-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux