-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[20291] Gather-send implementation #4537
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
2 times, most recently
from
March 11, 2024 14:32
aa6e6cc
to
5de9ef4
Compare
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
from
March 12, 2024 07:12
02e2919
to
af3951c
Compare
7 tasks
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
2 times, most recently
from
March 12, 2024 09:17
376e650
to
261c9a0
Compare
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
from
March 12, 2024 10:18
261c9a0
to
3067287
Compare
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
3 times, most recently
from
March 14, 2024 06:59
86c7d43
to
c3741e5
Compare
JLBuenoLopez
force-pushed
the
3.0.x-devel
branch
from
March 14, 2024 07:55
2de726b
to
4a61143
Compare
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
from
March 14, 2024 08:49
c3741e5
to
6752776
Compare
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
from
March 20, 2024 09:34
6752776
to
9344ae3
Compare
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
from
March 22, 2024 07:39
9344ae3
to
3ff583d
Compare
EduPonz
force-pushed
the
3.0.x-devel
branch
2 times, most recently
from
March 27, 2024 14:54
8193fef
to
a364ed8
Compare
github-actions
bot
force-pushed
the
3.0.x-devel
branch
from
April 3, 2024 00:04
18d8c6e
to
f3b3af6
Compare
JesusPoderoso
force-pushed
the
3.0.x-devel
branch
from
April 12, 2024 05:50
943b988
to
2c47b5e
Compare
github-actions
bot
force-pushed
the
3.0.x-devel
branch
from
April 16, 2024 08:56
2c47b5e
to
c978d52
Compare
EduPonz
force-pushed
the
3.0.x-devel
branch
3 times, most recently
from
April 23, 2024 05:52
5148f5d
to
bd83bb2
Compare
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
Signed-off-by: cferreiragonz <[email protected]>
cferreiragonz
force-pushed
the
poc/gather-send-implementation
branch
from
June 13, 2024 05:58
394adb8
to
8a9eede
Compare
MiguelCompany
requested changes
Jun 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nit that does not require to pass CI again
@richiprosima Please test_3 discovery-server |
Signed-off-by: cferreiragonz <[email protected]>
MiguelCompany
approved these changes
Jun 13, 2024
JesusPoderoso
pushed a commit
that referenced
this pull request
Jun 13, 2024
* Refs #20337: Buffer list in UDP sending function Signed-off-by: cferreiragonz <[email protected]> * Refs #20337: Buffer list in SHM sending function & Copy to shared buffer function Signed-off-by: cferreiragonz <[email protected]> * Refs #20337: Buffer list in TCP sending function Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Add new Buffer structure Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Add new lambda to send buffers into SenderResources Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on UDP transport Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on UDP test_transport Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on TCP Transport Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on TCPChannelResource Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on TCP tests Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on SHM transport & enable copying multiple buffers Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on SHM tests Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Fix mock tests after rebase Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on addSubmessageData/DataFrag Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Add constructor overloads to NetworkBuffers Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Add new attributes and methods to RTPSMessageGroup.h Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on add_data() Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on add_data_frag() Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on insert_submessage() Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on send() Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Minor changes in RTPSMessageGroup Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on RTPSMessageSenderInterface Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on ChaningTransport and ABI compatible send_lambda_ Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on Statistics module Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Add security support Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Minor fixes Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Doxygen Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Delete Sender's Resource deprecated API Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Fix Windows build Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Account for change of namespaces Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Add NetworkBuffer.cpp Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Revision minor changes Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Revision minor changes 2 Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Avoid stats_msg dynamic malloc Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Use vector instead of list Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Refactor RTPSMessageGroup to avoid Mallocs Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Use limited vector to avoid repeated mallocs Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Fix rebase Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Improve doxygen Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Add ResourceLV config into QoS Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: XML - New QoS added Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Get Payload in RTPSMessageGroup Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision - Use RLContainerConfig and minor changes Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision - Get payload after correct RTPSMsg creation Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision - Default values Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Update versions.md & CMakeLists Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision - Headers & versions.md Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Adjust payload_pool test Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Test comment Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR refactors the creation and sending of RTPS Messages by utilizing a list of
NetworkBuffers
(pointers + sizes) as the data transmission object, thereby eliminating an additional data message copy in theRTPSMessageGroup
.This refactor impacts both the Transports and the RTPS Layer, involving updates to the sender resources lambda functions, transport interfaces, statistics module, and the logic implemented in RTPS message creation.
Two extra
ResourceLimitedVectors
have been added toRTPSMessageGroup_t
to act asNetworkBuffers
and to contain the metadata of the payloads used in the creation of the RTPS message. In this way mallocs can be reduced as much as possible during runtime. TCP transport has mallocs during the creation of the TCP message and during the asio write operation.SendBuffersAllocationAttributes
has been extended with a new attribute defining the allocation configuration of theNetworkBuffers
.payload_owner_
Opened as draft:
Contributor Checklist
versions.md
file (if applicable).Related documentation PR: [20291] Gather-send implementation Docs Fast-DDS-docs#724
Reviewer Checklist