Skip to content

Conversation

@pavel-kirienko
Copy link
Member

I want to merge this into main even though it is not yet stable.

serges147 and others added 4 commits November 29, 2024 11:43
- `udpardTxPeek` now returns mutable item - needed for payload ownership
transfer.
- `udpardTxPop` now accepts mutable item
- eliminated private `TxItem`

Also:
- fixed Sonar warning: property 'sonar.cfamily.build-wrapper-output' is
deprecated
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces LibUDPard v2.0 alpha, a major version update that refactors the TX pipeline memory management system. The primary change splits single-allocation TX items into a two-allocation pattern, separating fragment metadata from payload data. This enables better memory control, zero-fragmentation block allocation strategies, and payload ownership transfer capabilities.

  • TX memory allocation refactored from 1 to 2 allocations per datagram (fragment + payload)
  • New UdpardTxMemoryResources structure with separate memory resources for fragments and payloads
  • Mutable datagram_payload field in UdpardTxItem to support payload ownership transfer
  • Comprehensive test updates to reflect doubled allocation counts and new memory patterns

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
libudpard/udpard.h Defines new UdpardTxMemoryResources structure, updates API signatures, adds priority field to UdpardTxItem, changes major version to 2
libudpard/udpard.c Implements two-allocation pattern in txNewItem, updates udpardTxFree to deallocate both fragment and payload, adds memory validation
tests/src/test_tx.cpp Updates tests to use UdpardTxMemoryResources, changes allocation count assertions from N to N*2
tests/src/test_intrusive_tx.c Adapts tests for new memory structure, updates udpardTxFree usage, removes manual memFree calls
tests/src/test_intrusive_rx.c Formatting updates for consistent compound literal spacing
tests/src/test_e2e.cpp Updates end-to-end tests with new memory resources and allocation expectations
tools/run_sonar.sh Switches from build-wrapper to compile-commands for SonarQube analysis
tests/.clang-tidy Disables boost-use-ranges and modernize-use-ranges checks
.clang-tidy Disables boost-use-ranges check
.github/workflows/main.yml Updates LLVM version to 19, container to ts24.4.3, clang-format-lint-action to v0.20
README.md Adds v2.0 section referencing migration guide
MIGRATION_v1.x_to_v2.0.md New comprehensive migration guide with code examples and step-by-step instructions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

@pavel-kirienko pavel-kirienko enabled auto-merge (squash) November 25, 2025 19:17
@pavel-kirienko pavel-kirienko merged commit b6fbd4c into main Nov 25, 2025
24 checks passed
@pavel-kirienko pavel-kirienko deleted the v2 branch November 25, 2025 19:17
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.

3 participants