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?
[x] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Tests
[ ] Other
Check list
[ ] Code follows the style de facto guidelines of this project
[ ] Comments have been inserted in hard to understand places
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