Re: [dpdk-dev] [PATCH] net/mlx5: fix validation of hash Rx queue pointer

2021-02-04 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Dekel Peled > Sent: Wednesday, February 3, 2021 12:09 PM > To: Matan Azrad ; Shahaf Shuler > ; Slava Ovsiienko > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix validation of ha

[dpdk-dev] [PATCH] net/mlx5: fix validation of hash Rx queue pointer

2021-02-03 Thread Dekel Peled
Implementation of mlx5_hrxq_get() tries to get pointer to a hrxq object, by reusing an existing hrxq, or creating a new one. There is no check of the obtained pointer, so using it might result in error. This patch adds check of the pointer before using it, and return 0 if the pointer is NULL to in