Re: [dpdk-dev] [PATCH] net/mlx5: fix mbufs double free in vectorized MPRQ

2020-12-15 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Alexander Kozyrev > Sent: Thursday, December 10, 2020 5:14 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad > Subject: [PATCH] net/mlx5: fix mbufs double free in vectorized MPRQ > > Wrong index is used to fi

[dpdk-dev] [PATCH] net/mlx5: fix mbufs double free in vectorized MPRQ

2020-12-10 Thread Alexander Kozyrev
Wrong index is used to find mbufs belonging to an application in the rxq_free_elts_sprq() function in the case of vectorized MPRQ. elts_ci points to the last allocated mbuf in this case, not rq_ci. Use this field to avoid double free of mbuf and segmentation fault. Fixes: 0f20acbf5ed ("net/mlx5: i