summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJiawen Wu <jiawenwu@trustnetic.com>2025-11-04 14:23:21 +0800
committerJakub Kicinski <kuba@kernel.org>2025-11-05 17:52:13 -0800
commita04ea57aae375bdda1cb57034d8bcbb351e1f973 (patch)
tree0f6525367bd5ad486635c0979938eb29d9d9fa48 /net/unix/af_unix.c
parentb1d9154878ce310d46dde5a8545366d807179b28 (diff)
net: libwx: fix device bus LAN ID
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: stable@vger.kernel.org Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/B60A670C1F52CB8E+20251104062321.40059-1-jiawenwu@trustnetic.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions