[PATCH 22.11] net/cnxk: fix lock for security session ops
Luca Boccassi
luca.boccassi at gmail.com
Fri Jul 4 03:02:20 CEST 2025
On Thu, 3 Jul 2025 at 12:24, Rahul Bhansali <rbhansali at marvell.com> wrote:
>
> [ upstream commit 9bebc33703df999a405ed7103dc45230d0f1fbda ]
>
> Add fixes to have lock on security session update, write and read to
> prevent corruption.
>
> Fixes: 8efa348e8160 ("net/cnxk: support custom SA index")
>
> Signed-off-by: Rahul Bhansali <rbhansali at marvell.com>
> ---
> drivers/net/cnxk/cn10k_ethdev_sec.c | 107 +++++++++++++++++++++++-----
> 1 file changed, 90 insertions(+), 17 deletions(-)
Thanks for the backport, but unfortunately it doesn't build, please
double check it:
../drivers/net/cnxk/cn10k_ethdev_sec.c: In function ‘rte_pmd_cnxk_hw_sa_read’:
../drivers/net/cnxk/cn10k_ethdev_sec.c:1013:16: error: ‘inb’
undeclared (first use in this function); did you mean ‘int’?
1013 | lock = inb ? &dev->inb.lock : &dev->outb.lock;
| ^~~
| int
../drivers/net/cnxk/cn10k_ethdev_sec.c:1013:16: note: each undeclared
identifier is reported only once for each function it appears in
../drivers/net/cnxk/cn10k_ethdev_sec.c: In function ‘rte_pmd_cnxk_hw_sa_write’:
../drivers/net/cnxk/cn10k_ethdev_sec.c:1057:16: error: ‘inb’
undeclared (first use in this function); did you mean ‘int’?
1057 | lock = inb ? &dev->inb.lock : &dev->outb.lock;
| ^~~
| int
More information about the stable
mailing list