path: root/drivers/net/i40e
diff options
authorThomas Monjalon <>2018-09-25 22:55:27 +0200
committerThomas Monjalon <>2018-10-17 10:26:59 +0200
commit391797f04208aec3a75efd01bfa368899b2f37db (patch)
tree63105172165dc6e010341bacf920329da21b444b /drivers/net/i40e
parent9fca82045935147838d59154c3dada582b7c7fe4 (diff)
drivers/bus: move driver assignment to end of probing
The PCI mapping requires to know the PCI driver to use, even before the probing is done. That's why the PCI driver is referenced early inside the PCI device structure. See commit 1d20a073fa5e ("bus/pci: reference driver structure before mapping") However the rte_driver does not need to be referenced in rte_device before the device probing is done. By moving back this assignment at the end of the device probing, it becomes possible to make clear the status of a rte_device. Signed-off-by: Thomas Monjalon <> Reviewed-by: Andrew Rybchenko <> Tested-by: Andrew Rybchenko <> Reviewed-by: Rosen Xu <>
Diffstat (limited to 'drivers/net/i40e')
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/i40e/i40e_vf_representor.c b/drivers/net/i40e/i40e_vf_representor.c
index 0bfbb4f..24751d1 100644
--- a/drivers/net/i40e/i40e_vf_representor.c
+++ b/drivers/net/i40e/i40e_vf_representor.c
@@ -487,9 +487,6 @@ i40e_vf_representor_init(struct rte_eth_dev *ethdev, void *init_params)
if (representor->vf_id >= pf->vf_num)
return -ENODEV;
- /** representor shares the same driver as it's PF device */
- ethdev->device->driver = representor->adapter->eth_dev->device->driver;
/* Set representor device ops */
ethdev->dev_ops = &i40e_representor_dev_ops;