RE: [PATCH] net/mlx5/hws: fix possible negative return on sq create

2022-11-08 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Alex Vesker > Sent: Thursday, November 3, 2022 2:52 PM > To: Alex Vesker ; Slava Ovsiienko > ; NBU-Contact-Thomas Monjalon (EXTERNAL) > ; Suanming Mou ; > Matan Azrad > Cc: dev@dpdk.org; Ori Kam > Subject: [PATCH] net/mlx5

[PATCH] net/mlx5/hws: fix possible negative return on sq create

2022-11-07 Thread Alex Vesker
The sysconf call can return a negative value (-1) on failure this will lead to posix_memalign to fail. This is not a realistic case which was found by the static checkers. Coverity issue: 381674 Fixes: 3eb7488 ("net/mlx5/hws: add send layer") Signed-off-by: Alex Vesker Reviewed-by: Erez Shitrit

RE: [PATCH] net/mlx5/hws: fix possible negative return on sq create

2022-11-03 Thread Alex Vesker
c: dev@dpdk.org; Ori Kam > Subject: [PATCH] net/mlx5/hws: fix possible negative return on sq create > > The sysconf call can return a negative value (-1) on failure this will lead to > posix_memalign to fail. This is not a realistic case which was found by the > static checkers. >

[PATCH] net/mlx5/hws: fix possible negative return on sq create

2022-11-03 Thread Alex Vesker
The sysconf call can return a negative value (-1) on failure this will lead to posix_memalign to fail. This is not a realistic case which was found by the static checkers. Fixes: 3eb7488 ("net/mlx5/hws: add send layer") Signed-off-by: Alex Vesker Reviewed-by: Erez Shitrit --- drivers/net/mlx5/h