> -----Original Message-----
> From: Matan Azrad [mailto:[email protected]]
> Sent: Thursday, January 18, 2018 4:35 PM
> To: Thomas Monjalon <[email protected]>; Gaetan Rivet 
> <[email protected]>; Wu, Jingjing <[email protected]>
> Cc: [email protected]; Neil Horman <[email protected]>; Richardson, Bruce 
> <[email protected]>; Ananyev, Konstantin
> <[email protected]>
> Subject: [PATCH v3 4/7] ethdev: synchronize port allocation
> 
> Ethernet port allocation was not thread safe, means 2 threads which tried
> to allocate a new port at the same time might get an identical port
> identifier and caused to memory overwrite.
> Actually, all the port configurations were not thread safe from ethdev
> point of view.
> 
> The port ownership mechanism added to the ethdev is a good point to
> redefine the synchronization rules in ethdev:
> 
> 1. The port allocation and port release synchronization will be
>    managed by ethdev.
> 2. The port usage synchronization will be managed by the port owner.
> 3. The port ownership synchronization will be managed by ethdev.
> 
> Add port allocation synchronization to complete the new rules.
> 
> Signed-off-by: Matan Azrad <[email protected]>
> ---

Acked-by: Konstantin Ananyev <[email protected]>

Reply via email to