DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/i40e: revert default PF PMD device name
@ 2018-04-30 15:30 Declan Doherty
  2018-05-01 15:41 ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Declan Doherty @ 2018-04-30 15:30 UTC (permalink / raw)
  To: dev; +Cc: Declan Doherty

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 <declan.doherty@intel.com>
---
 drivers/net/i40e/i40e_ethdev.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index d869add95..284e9cb64 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -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;
-- 
2.14.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] net/i40e: revert default PF PMD device name
  2018-04-30 15:30 [dpdk-dev] [PATCH] net/i40e: revert default PF PMD device name Declan Doherty
@ 2018-05-01 15:41 ` Ferruh Yigit
  2018-05-01 15:42   ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2018-05-01 15:41 UTC (permalink / raw)
  To: Declan Doherty, dev

On 4/30/2018 4:30 PM, Declan Doherty wrote:
> 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 <declan.doherty@intel.com>

Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] net/i40e: revert default PF PMD device name
  2018-05-01 15:41 ` Ferruh Yigit
@ 2018-05-01 15:42   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2018-05-01 15:42 UTC (permalink / raw)
  To: Declan Doherty, dev

On 5/1/2018 4:41 PM, Ferruh Yigit wrote:
> On 4/30/2018 4:30 PM, Declan Doherty wrote:
>> 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 <declan.doherty@intel.com>
> 
> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-01 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-30 15:30 [dpdk-dev] [PATCH] net/i40e: revert default PF PMD device name Declan Doherty
2018-05-01 15:41 ` Ferruh Yigit
2018-05-01 15:42   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).