From: Rasesh Mody Date: Fri, 23 Dec 2016 00:49:57 +0000 (-0800) Subject: net/qede: add vendor/device id info X-Git-Tag: spdx-start~4922 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fb58ad9ea019ff6e85f745df8b160325603c395e;p=dpdk.git net/qede: add vendor/device id info The vendor_id and device_id are used to determine device type. If you don't have them, then check for determining device type fails and is always set to default device type. Fixes: ec94dbc57362 ("qede: add base driver") Signed-off-by: Rasesh Mody --- diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 258c599fb0..8a62f3b6e1 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -2075,6 +2075,10 @@ static int qede_common_dev_init(struct rte_eth_dev *eth_dev, bool is_vf) rte_eth_copy_pci_info(eth_dev, pci_dev); + /* @DPDK */ + edev->vendor_id = pci_dev->id.vendor_id; + edev->device_id = pci_dev->id.device_id; + qed_ops = qed_get_eth_ops(); if (!qed_ops) { DP_ERR(edev, "Failed to get qed_eth_ops_pass\n");