Re: [dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix negative argument passing

2020-05-06 Thread Lukasz Wojciechowski
; Ananyev, Konstantin > > Subject: Re: [dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix negative > argument passing > > > W dniu 06.05.2020 o 12:37, Praveen Shetty pisze: >> Function create_ipsec_esp_flow returns a negative number in case of >> any failure and w

Re: [dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix negative argument passing

2020-05-06 Thread Shetty, Praveen
-Original Message- From: Lukasz Wojciechowski Sent: Wednesday, May 6, 2020 4:20 PM To: Shetty, Praveen ; dev@dpdk.org; Doherty, Declan ; akhil.go...@nxp.com; ano...@marvell.com Cc: Iremonger, Bernard ; Ananyev, Konstantin Subject: Re: [dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix

Re: [dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix negative argument passing

2020-05-06 Thread Lukasz Wojciechowski
W dniu 06.05.2020 o 12:37, Praveen Shetty pisze: > Function create_ipsec_esp_flow returns a negative number in case of any > failure and we are passing this to strerror to dsiplay the error message. typo dsiplay -> display > But strerror()'s argument cannot be negative. > In case of failure, disp

[dpdk-dev] [PATCH v2] examples/ipsec-secgw: fix negative argument passing

2020-05-06 Thread Praveen Shetty
Function create_ipsec_esp_flow returns a negative number in case of any failure and we are passing this to strerror to dsiplay the error message. But strerror()'s argument cannot be negative. In case of failure, displaying exact error message to console is handled in create_ipsec_esp_flow function.