Mellanox / libvma

Linux user space library for network socket acceleration based on RDMA compatible network adaptors
https://www.mellanox.com/products/software/accelerator-software/vma?mtag=vma
Other
557 stars 152 forks source link

issue: 3591039 Fix ref count for mem_buf chains #1041

Closed iftahl closed 10 months ago

iftahl commented 10 months ago

Chain of pbufs can contain some pbufs with ref count >=1 like in ooo or flow tag flows. While processing Rx packets we may split buffer chains and we increment ref count for the new head of the chain after the split. It will cause a wrong ref count, and the buffer won't be reclaimed. Therefore we reset ref count 0 for chained mem_buf_desc in m_rx_pkt_ready_list except for the head. Related to issue 3231710.

Change type

What kind of change does this PR introduce?

Check list