nfp: fix PCI device info retrieval
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 23 Mar 2016 15:51:36 +0000 (08:51 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 13:37:18 +0000 (15:37 +0200)
commit79c4319c1a5d66c656b0997d7ea8fc3a42d91cae
treece70bad8c90f786341e62299e7a4fb5762821fd8
parentda04298a11969587f68970b3433e73a768a4c1d9
nfp: fix PCI device info retrieval

The NFP driver (unlike other PCI devices) was not copying the pci info
from the pci_dev to the eth_dev.  This would make the driver_name be
null (and other unset fields) when application uses dev_info_get.

This was found by code review; do not have the hardware.

Fixes: d4a27a3b092a ("nfp: add basic features")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c