Skip to content

Fix according review#2650

Closed
EvgeniiMekhanik wants to merge 4 commits into
masterfrom
MekhanikEvgenii/fix-1715
Closed

Fix according review#2650
EvgeniiMekhanik wants to merge 4 commits into
masterfrom
MekhanikEvgenii/fix-1715

Conversation

@EvgeniiMekhanik
Copy link
Copy Markdown
Contributor

  • Rename client_mem_cache to tfw_client_mem_cache.
  • Change in_free_list from struct list_head to pointer to save 8 bytes.
  • Implement 1GB mem limit by default.

@EvgeniiMekhanik EvgeniiMekhanik marked this pull request as draft May 3, 2026 08:40
- Rename `client_mem_cache` to `tfw_client_mem_cache`.
- Change `in_free_list` from struct list_head to pointer
  to save 8 bytes.
- Implement 1GB mem limit by default.
- Remove zeroing `skb->dev` from `ss_skb_init_for_xmit`. We already
  zero `skb->dev` at the beginning of processing skb and we don't need
  to do it at the end, because we don't use it.
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/fix-1715 branch from 3d3b1b7 to 546a3b5 Compare May 3, 2026 08:51
Add extra sanity checks:
Warn in `cli_mem_release` if client memory is not
zero at release time.
Warn in `ss_skb_dflt_destructor` if skb memory counter is
not fully decremented.
These checks help detect memory accounting leaks earlier.
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/fix-1715 branch from 5bd28a5 to 3e1125c Compare May 4, 2026 11:11
- Add comments for new implemented BUG_ONs
- Remove BUG_ON from `tfw_h2_stream_send_postponed`.
  There is a possible case when conn->write_queue is
  not empty.
- Remove http2 `ctx` from tfw_h2_entail_stream_skb`
  arguments.
@EvgeniiMekhanik EvgeniiMekhanik force-pushed the MekhanikEvgenii/fix-1715 branch from 3e1125c to 54c2d3d Compare May 4, 2026 12:00
@EvgeniiMekhanik
Copy link
Copy Markdown
Contributor Author

Create new branch with the same commits #2651

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant