Re: [PATCH 1/2] lib/ipsec: compile ipsec on Windows

2025-01-13 Thread Andre Muezerie
On Thu, Jan 09, 2025 at 05:27:11PM +, Konstantin Ananyev wrote: > > > > Removed VLA for compatibility with MSVC (which does not support VLAs). > > Used alloca when a constant fixed length that can be used instead is > > not known. > > > ... > > > Signed-off-by: Andre Muezerie > > --- > >

RE: [PATCH 1/2] lib/ipsec: compile ipsec on Windows

2025-01-09 Thread Konstantin Ananyev
> Removed VLA for compatibility with MSVC (which does not support VLAs). > Used alloca when a constant fixed length that can be used instead is > not known. > ... > Signed-off-by: Andre Muezerie > --- ... > diff --git a/lib/ipsec/esp_inb.c b/lib/ipsec/esp_inb.c > index f159bf7460..305ac48d

RE: [PATCH 1/2] lib/ipsec: compile ipsec on Windows

2025-01-09 Thread Konstantin Ananyev
> Removed VLA for compatibility with MSVC (which does not support VLAs). > Used alloca when a constant fixed length that can be used instead is > not known. > > Implementation for rte_ipsec_pkt_crypto_group and > rte_ipsec_ses_from_crypto was moved to new file > lib\ipsec\ipsec_group.c because

[PATCH 1/2] lib/ipsec: compile ipsec on Windows

2025-01-06 Thread Andre Muezerie
Removed VLA for compatibility with MSVC (which does not support VLAs). Used alloca when a constant fixed length that can be used instead is not known. Implementation for rte_ipsec_pkt_crypto_group and rte_ipsec_ses_from_crypto was moved to new file lib\ipsec\ipsec_group.c because these functions g