[PATCH] crypto/ipsec_mb: fix getting process ID per job

Ji, Kai kai.ji at intel.com
Thu Nov 23 18:11:45 CET 2023


Acked-by: Kai Ji <kai.ji at intel.com>

________________________________
From: Power, Ciara <ciara.power at intel.com>
Sent: 23 November 2023 17:07
To: dev at dpdk.org <dev at dpdk.org>
Cc: thomas at monjalon.net <thomas at monjalon.net>; Ji, Kai <kai.ji at intel.com>; De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>; Power, Ciara <ciara.power at intel.com>; stable at dpdk.org <stable at dpdk.org>
Subject: [PATCH] crypto/ipsec_mb: fix getting process ID per job

Currently, when using IPsec-mb 1.4+, the process ID is obtained for each
job in a burst with a call to getpid().
This system call uses too many CPU cycles, and is unnecessary per job.

Instead, set the process ID value per lcore.
This is read when processing the burst, instead of per job.

Fixes: 9593d83e5d88 ("crypto/ipsec_mb: fix aesni_mb multi-process session ID")
Cc: stable at dpdk.org

Signed-off-by: Ciara Power <ciara.power at intel.com>
---

--
2.25.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/stable/attachments/20231123/e617a602/attachment.htm>


More information about the stable mailing list