[dpdk-dev] [PATCH v3 4/7] ethdev: synchronize port allocation
Ananyev, Konstantin
konstantin.ananyev at intel.com
Fri Jan 19 13:47:26 CET 2018
> -----Original Message-----
> From: Matan Azrad [mailto:matan at mellanox.com]
> Sent: Thursday, January 18, 2018 4:35 PM
> To: Thomas Monjalon <thomas at monjalon.net>; Gaetan Rivet <gaetan.rivet at 6wind.com>; Wu, Jingjing <jingjing.wu at intel.com>
> Cc: dev at dpdk.org; Neil Horman <nhorman at tuxdriver.com>; Richardson, Bruce <bruce.richardson at intel.com>; Ananyev, Konstantin
> <konstantin.ananyev at intel.com>
> 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 <matan at mellanox.com>
> ---
Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
More information about the dev
mailing list