Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1823469imm; Mon, 3 Sep 2018 10:21:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbD0UVxZtW98VjPNPbuIkT4Fhnj88dUvvgwetjOLAEydU5GRSNhge7IqXbqVB6tVe+u4ou9 X-Received: by 2002:a62:2483:: with SMTP id k3-v6mr30912511pfk.195.1535995298102; Mon, 03 Sep 2018 10:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995298; cv=none; d=google.com; s=arc-20160816; b=jyjbpQP0PGH0JjDlHqohC6EAF4YJX90KAI3Z5ylb22OuqoGS5wAMLO9dEgLvs0k4Gu pmmljH5p9M4zI1JTWCdWL/PIfhJW74Itw6QgklP8Wb0dHWsIcoHZ4i1L1x7x55XLcGJu QJGJ9W2oT9g8Z+OdbQr9W/QLch3kxtQPSxPrsIO5joXZtioncZG7ZzlbQ04Yy8DsEMC8 85+r73bTN/u66K4gTOg5K57+9mJmP666sBwTrV2QaWx75UB6wyC+yY6fP/2gssQuO3gb 2w+y8yQ/v7lZUY5mY6bfGagJMFN7WaDXx7eDdNL1Vc3RAL7otU1s32bt9bHXZl1o9LeQ E+VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BzUOsOw92U6XObR4d81LuI9kScR+Pf190veuzBzv0uA=; b=KMJ5uCTy1qQi67/3oINfgH+26Qr9bvSY4bgxX41d49q0ft+sTh3RMGa0FOOY7Dhu3X S1RmUclFb0SjTQcyr4SNStkU5gzF6tM7GOc9IH9Nwmhbc0ydREaAtDpVMOXgv+AKP3Kx 7lS30HHqxEbADhBqeFW5Qe1gBFXVklQ8YWys1zw4OuLnAKmSL+azbgqXZSsuK0JqNKsp LqXufZ5CK5xBoTE9auwzzEJ9VpwzvzBbwFD+7AEyk74NVYaQlLFUPS0T0O3rfKpWr4IL w/fW/YULxGKnLMMy3ZkC+6u5ZYvZtNUWB4J0aE8IUC7sezZ9ZG4ebbg4QQS3Q8CZtS5Q V1/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18-v6si18588755pgm.102.2018.09.03.10.21.23; Mon, 03 Sep 2018 10:21:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730283AbeICVjL (ORCPT + 99 others); Mon, 3 Sep 2018 17:39:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42976 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728154AbeICVjK (ORCPT ); Mon, 3 Sep 2018 17:39:10 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1A69AD09; Mon, 3 Sep 2018 17:18:04 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, dann frazier , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 055/165] hinic: Link the logical network device to the pci device in sysfs Date: Mon, 3 Sep 2018 18:55:41 +0200 Message-Id: <20180903165657.898610125@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: dann frazier [ 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/huawei/hinic/hinic_main.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_main.c @@ -981,6 +981,7 @@ static int nic_dev_init(struct pci_dev * 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");