On 2/17/2023 4:00 PM, Ed Czeck wrote:
From: John Miller <john.mil...@atomicrules.com>
disable device configuration for secondary processes
Signed-off-by: John Miller <john.mil...@atomicrules.com>
---
drivers/net/ark/ark_ethdev.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c
index b2995427c8..f96722551e 100644
--- a/drivers/net/ark/ark_ethdev.c
+++ b/drivers/net/ark/ark_ethdev.c
@@ -147,6 +147,9 @@ eth_ark_pci_probe(struct rte_pci_driver *pci_drv
__rte_unused,
struct rte_eth_dev *eth_dev;
int ret;
+ if (rte_eal_process_type() == RTE_PROC_SECONDARY)
+ fprintf(stderr, "ARK probed by secondary process\n");
Why is this printing directly to stderr? IMO this should be RTE_LOG(ERR,
...)
--
Thanks,
Anatoly