]> git.droids-corp.org - dpdk.git/commit
net/ena/base: make IO memzone unique per port
authorMichal Krawczyk <mk@semihalf.com>
Wed, 23 Feb 2022 12:19:35 +0000 (13:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Feb 2022 18:01:03 +0000 (19:01 +0100)
commit850e1bb1c72b3d1163b2857ab7a02af11ba29c40
treeff14ec2086bca232f91ceeb7b7967bf50638a03a
parent3aa3fa851f58873457bdc5c387d0e5956f812322
net/ena/base: make IO memzone unique per port

Originally, the ena_com memzone counter was shared by ports, which
caused the memzones to be harder to identify and could potentially
lead to race and because of that the counter had to be atomic.

This atomic counter was global variable and it couldn't work in the
multiprocess implementation.

The memzone is now being identified by the local to port memzone counter
and the port ID - both of those information can be found in the shared
data, so it can be probed easily.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Dawid Gorecki <dgr@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
doc/guides/nics/features/ena.ini
drivers/net/ena/base/ena_plat_dpdk.h
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h