Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7856e861 authored by dann frazier's avatar dann frazier Committed by David S. Miller
Browse files

hinic: Link the logical network device to the pci device in sysfs



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: default avatardann frazier <dann.frazier@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ecbc42ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -983,6 +983,7 @@ static int nic_dev_init(struct pci_dev *pdev)
	hinic_hwdev_cb_register(nic_dev->hwdev, HINIC_MGMT_MSG_CMD_LINK_STATUS,
				nic_dev, link_status_event_handler);

	SET_NETDEV_DEV(netdev, &pdev->dev);
	err = register_netdev(netdev);
	if (err) {
		dev_err(&pdev->dev, "Failed to register netdev\n");