Mellanox / libxlio

Other
32 stars 18 forks source link

issue: 3854806 Fixing TX buffers return order in TCP socket destruction #132

Closed AlexanderGrissik closed 4 months ago

AlexanderGrissik commented 5 months ago

Description

When TCP socket is destroyed it frees the preallocated buffers after dst_entry is deleted. This returns the buffers to the global pool directly and breaks m_tx_num_bufs,m_zc_num_bufs ring counters.

What
  1. Move the preallocated buffers cleanup before dst_entry destruction.
  2. Add ring stats for m_tx_num_bufs and m_zc_num_bufs.
Why ?

Functionality

Change type

What kind of change does this PR introduce?

Check list

galnoam commented 4 months ago

@AlexanderGrissik , move to fixed.