Skip to contentSkip to conversation

attach/detach on secondary process

dpdk-users Thomas Monjalon 2 participants 3 messages Dec 13, 2017 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20171213090952.495bfb1b@xeon-e3

#3 lore raw

13/12/2017 18:09, Stephen Hemminger:

Quoted 3 lines

Many DPDK drivers require that setup and initialization be done by the primary process. This is mostly to avoid dealing with concurrency since there can be multiple secondary processes.

I think we should consider this limitation as a bug. We must allow a secondary process to initialize a device. The race in device creation must be fixed.

#4 lore raw
Quoted 9 lines · On Wed, 13 Dec 2017 22:00:48 +0100 Thomas Monjalon <[email protected]> wrote:

13/12/2017 18:09, Stephen Hemminger:

Quoted 3 lines

Many DPDK drivers require that setup and initialization be done by the primary process. This is mostly to avoid dealing with concurrency since there can be multiple secondary processes.

I think we should consider this limitation as a bug. We must allow a secondary process to initialize a device. The race in device creation must be fixed.

Secondary processes should be able to do setup.
But it is up to the application not to do it concurrently from multiple processes.

#5 lore raw

13/12/2017 22:10, Stephen Hemminger:

Quoted 8 lines
Quoted 5 lines · On Wed, 13 Dec 2017 22:00:48 +0100 Thomas Monjalon <[email protected]> wrote:

13/12/2017 18:09, Stephen Hemminger:

Quoted 3 lines

Many DPDK drivers require that setup and initialization be done by the primary process. This is mostly to avoid dealing with concurrency since there can be multiple secondary processes.

Quoted 8 lines
Quoted 4 lines

I think we should consider this limitation as a bug. We must allow a secondary process to initialize a device. The race in device creation must be fixed.

Secondary processes should be able to do setup.
But it is up to the application not to do it concurrently from multiple processes.

Yes there can be synchronization between processes.
But I think it is safer to fix the device creation race in ethdev. Note that I am not talking about configuration concurrency, but just race in probing.