Re: [PATCH v1 2/2] ethdev: fix some APIs can be used in the new event

2025-01-16 Thread lihuisong (C)
在 2025/1/16 17:09, Thomas Monjalon 写道: 16/01/2025 07:14, lihuisong (C): 在 2025/1/15 19:36, Thomas Monjalon 写道: 15/01/2025 04:41, Huisong Li: The rte_eth_dev_socket_id() and rte_eth_dev_owner_*() can be used after allocating an ethdev. So this patch relaxes the conditions for using them. You

Re: [PATCH v1 2/2] ethdev: fix some APIs can be used in the new event

2025-01-16 Thread Thomas Monjalon
16/01/2025 07:14, lihuisong (C): > 在 2025/1/15 19:36, Thomas Monjalon 写道: > > 15/01/2025 04:41, Huisong Li: > >> The rte_eth_dev_socket_id() and rte_eth_dev_owner_*() can be used after > >> allocating an ethdev. So this patch relaxes the conditions for using them. > > You should be more explicit: >

Re: [PATCH v1 2/2] ethdev: fix some APIs can be used in the new event

2025-01-15 Thread lihuisong (C)
在 2025/1/15 19:36, Thomas Monjalon 写道: 15/01/2025 04:41, Huisong Li: The rte_eth_dev_socket_id() and rte_eth_dev_owner_*() can be used after allocating an ethdev. So this patch relaxes the conditions for using them. You should be more explicit: "during probing, before it becomes generally ava

Re: [PATCH v1 2/2] ethdev: fix some APIs can be used in the new event

2025-01-15 Thread Thomas Monjalon
15/01/2025 04:41, Huisong Li: > The rte_eth_dev_socket_id() and rte_eth_dev_owner_*() can be used after > allocating an ethdev. So this patch relaxes the conditions for using them. You should be more explicit: "during probing, before it becomes generally available and considered as valid". Should

[PATCH v1 2/2] ethdev: fix some APIs can be used in the new event

2025-01-14 Thread Huisong Li
The rte_eth_dev_socket_id() and rte_eth_dev_owner_*() can be used after allocating an ethdev. So this patch relaxes the conditions for using them. Fixes: 7dcd73e37965 ("drivers/bus: set device NUMA node to unknown by default") Fixes: 53ef1b34776b ("ethdev: add sanity checks in control APIs") Cc: s