net/i40e: revert default PF PMD device name
PATCH 1/1 net/i40e: revert default PF PMD device name
Changes introduced by e0cb96204b71 modified the default name generated for the i40e PF PMD, this patch reverts the default name to the original PCI BDBF.
Fixes e0cb96204b71 ("net/i40e: add support for representor ports")
Signed-off-by Declan Doherty <[email protected]>
--- drivers/net/i40e/i40e_ethdev.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/net/i40e/i40e_ethdev.c +3 -5
@@ -630,10 +630,7 @@ eth_i40e_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,return retval; } -/* physical port net_bdf_port */ -snprintf (name,sizeof (name),"net_%s" , pci_dev->device.name); - - retval =rte_eth_dev_create (&pci_dev->device, name, + retval =rte_eth_dev_create (&pci_dev->device, pci_dev->device.name,sizeof (struct i40e_adapter ), eth_dev_pci_specific_init, pci_dev, eth_i40e_dev_init,NULL );
@@ -642,7 +639,8 @@ eth_i40e_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,return retval;/* probe VF representor ports */ -struct rte_eth_dev *pf_ethdev =rte_eth_dev_allocated (name); +struct rte_eth_dev *pf_ethdev =rte_eth_dev_allocated ( + pci_dev->device.name);if (pf_ethdev ==NULL )return -ENODEV ;
Signature · 1 line
2.14.3
Quoted 6 lines · Declan Doherty
Changes introduced by
e0cb96204b71modified the default name generated for the i40e PF PMD, this patch reverts the default name to the original PCI BDBF.Fixes e0cb96204b71 ("net/i40e: add support for representor ports")Signed-off-by Declan Doherty <[email protected]>
Reviewed-by Ferruh Yigit <[email protected]>
Ferruh Yigit
AppliedQuoted 9 lines · Ferruh Yigit
Quoted 6 lines · Declan Doherty
Changes introduced by
e0cb96204b71modified the default name generated for the i40e PF PMD, this patch reverts the default name to the original PCI BDBF.Fixes e0cb96204b71 ("net/i40e: add support for representor ports")Signed-off-by Declan Doherty <[email protected]>Reviewed-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/master, thanks.