Subject: Re: [PATCH net] net: libwx: fix device bus LAN ID

From: Simon Horman <[email-masked]>
Date: Wed, 5 Nov 2025 09:58:50 +0000

On Tue, Nov 04, 2025 at 02:23:21PM +0800, Jiawen Wu wrote:
> The device bus LAN ID was obtained from PCI_FUNC(), but when a PF
> port is passthrough to a virtual machine, the function number may not
> match the actual port index on the device. This could cause the driver
> to perform operations such as LAN reset on the wrong port.
> 
> Fix this by reading the LAN ID from port status register.
> 
> Fixes: a34b3e6ed8fb ("net: txgbe: Store PCI info")
> Cc: [email-masked]
> Signed-off-by: Jiawen Wu <[email-masked]>

Hi Jiawen Wu,

I am wondering if these devises also support port swapping (maybe LAN
Function Select bit of FACTPS). And if so, does it need to be taken into
account here?

...