[PATCH] memif: memif driver does not crashes when there's different N of TX and RX queues

Ferruh Yigit ferruh.yigit at amd.com
Thu Nov 10 15:20:20 CET 2022


On 11/10/2022 10:02 AM, Huzaifa Rahman wrote:
> Hi,
> 
> Is there any other work/changes required for this patch to be submitted?
> 

Hi Huzaifa,

Patch seems already merged by Andrew and pulled to main repo:
https://git.dpdk.org/dpdk/commit/?id=231435a5e6c7fa915697d8f84a91b44176

So it will in oncoming 22.11 release.

> Thanks
> 
> 
> On Tue, Oct 4, 2022 at 7:53 PM Andrew Rybchenko 
> <andrew.rybchenko at oktetlabs.ru <mailto:andrew.rybchenko at oktetlabs.ru>> 
> wrote:
> 
>     On 8/8/22 13:39, Joyce Kong wrote:
>      > Hi Huzaifa,
>      >
>      > This patch looks good to me.
>      > And would you please help review my memif patches?
>      >
>     https://patches.dpdk.org/project/dpdk/cover/20220701102815.1444223-1-joyce.kong@arm.com/ <https://patches.dpdk.org/project/dpdk/cover/20220701102815.1444223-1-joyce.kong@arm.com/>
>      >
>      > Thanks,
>      > Joyce
>      >
>      >> -----Original Message-----
>      >> From: huzaifa.rahman <huzaifa.rahman at emumba.com
>     <mailto:huzaifa.rahman at emumba.com>>
>      >> Sent: Tuesday, July 26, 2022 6:16 PM
>      >> To: jgrajcia at cisco.com <mailto:jgrajcia at cisco.com>
>      >> Cc: dev at dpdk.org <mailto:dev at dpdk.org>; huzaifa.rahman
>     <huzaifa.rahman at emumba.com <mailto:huzaifa.rahman at emumba.com>>
>      >> Subject: [PATCH] memif: memif driver does not crashes when there's
>      >> different N of TX and RX queues
>      > net/memif: fix memif crash with different Tx Rx queues
>      >
>      >>
>      >> Bugzilla ID: 734
>      >>
>      >> there's a bug in memif_stats_get() function due to confusion
>     between C2S
>      >> (client->server) and S2C (server->client) rings, causing a crash
>     if there's a
>      >> different number of RX and TX queues.
>      >>
>      >> this is fixed by selectiing the correct rings for RX and TX i.e
>     for RX, S2C rings
>      >> are selected and for TX, C2S rings are selected.
>      >>
>      > Fixes: 09c7e63a71f9 ("net/memif: introduce memory interface PMD")
>      > Cc: stable at dpdk.org <mailto:stable at dpdk.org>
>      >
>      >> Signed-off-by: huzaifa.rahman <huzaifa.rahman at emumba.com
>     <mailto:huzaifa.rahman at emumba.com>>
>      > Reviewed-by: Joyce Kong <joyce.kong at arm.com
>     <mailto:joyce.kong at arm.com>>
> 
>     Fixed above on applying.
> 
>     Applied to dpdk-next-net/main, thanks.
> 
> 



More information about the dev mailing list