hinic: Link the logical network device to the pci device in sysfs
authordann frazier <dann.frazier@canonical.com>
Mon, 23 Jul 2018 22:55:40 +0000 (16:55 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:30 +0000 (09:26 +0200)
commit2dd2f772257054867543c8051a174b3e1d879c2f
treeb368a12f8a2523e856eca5c9be72f9fa7d6cf594
parentd00c34f8e20516f553a6920921bff239cd479c03
hinic: Link the logical network device to the pci device in sysfs

[ Upstream commit 7856e8616273098dc6c09a6e084afd98a283ff0d ]

Otherwise interfaces get exposed under /sys/devices/virtual, which
doesn't give udev the context it needs for PCI-based predictable
interface names.

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/huawei/hinic/hinic_main.c