Skip to contentSkip to conversation

failsafe : support secondary process to attach to vdev created by primary process

PATCH In review Kumara Parameshwaran 2 participants 2 messages Oct 27, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 failsafe : support secondary process to attach to vdev created by primary process

---
 drivers/net/failsafe/failsafe.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/failsafe/failsafe.c +1 -2
index 8216063..1adccaf 100644
@@ -329,8 +329,7 @@ rte_pmd_failsafe_probe(struct rte_vdev_device *vdev)
 	INFO("Initializing " FAILSAFE_DRIVER_NAME " for %s",
 			name);
 
-	if (rte_eal_process_type() == RTE_PROC_SECONDARY &&
-	    strlen(rte_vdev_device_args(vdev)) == 0) {
+	if (rte_eal_process_type() == RTE_PROC_SECONDARY) {
 		eth_dev = rte_eth_dev_attach_secondary(name);
 		if (!eth_dev) {
 			ERROR("Failed to probe %s", name);
Signature · 1 line
2.7.4
#1 lore raw
Quoted 1 line · Kumara Parameshwaran

Hi Kumara,

Can you please provide more detail in the commit log?

Quoted 19 lines
---
  drivers/net/failsafe/failsafe.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/failsafe/failsafe.c +1 -2
index 8216063..1adccaf 100644
@@ -329,8 +329,7 @@ rte_pmd_failsafe_probe(struct rte_vdev_device *vdev)
  	INFO("Initializing " FAILSAFE_DRIVER_NAME " for %s",
  			name);
 
-	if (rte_eal_process_type() == RTE_PROC_SECONDARY &&
-	    strlen(rte_vdev_device_args(vdev)) == 0) {
+	if (rte_eal_process_type() == RTE_PROC_SECONDARY) {
  		eth_dev = rte_eth_dev_attach_secondary(name);
  		if (!eth_dev) {
  			ERROR("Failed to probe %s", name);