dmadev: add domain_id field to access group join API
PATCH 1/1 dmadev: add domain_id field to access group join API
From: Vamsi Attunuru <[email protected]>
Add domain_id field to access group join API, which is required to retrieve handler information associated with the specified domain. This enhancement ensures that domain-specific context is available during group join operations, improving flexibility and traceability in multi-domain environments.
It also aligns the parameters of access group create and join APIs for consistency and clarity.
--- lib/dmadev/rte_dmadev.c | 6 +++--- lib/dmadev/rte_dmadev.h | 10 ++++++---- lib/dmadev/rte_dmadev_pmd.h | 4 ++-- lib/dmadev/rte_dmadev_trace.h | 6 ++++-- 4 files changed, 15 insertions(+), 11 deletions(-)
lib/dmadev/rte_dmadev.c +3 -3
@@ -875,8 +875,8 @@ rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id) RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dma_access_pair_group_join, 25.11)int -rte_dma_access_pair_group_join (int16_t dev_id,int16_t group_id,rte_uuid_t token, -rte_dma_access_pair_group_event_cb_t cb) +rte_dma_access_pair_group_join (int16_t dev_id,rte_uuid_t domain_id,rte_uuid_t token, +int16_t group_id,rte_dma_access_pair_group_event_cb_t cb) {struct rte_dma_info dev_info;struct rte_dma_dev *dev;
@@ -899,7 +899,7 @@ rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id, rte_uuid_t tokeif (*dev->dev_ops->access_pair_group_join ==NULL )return -ENOTSUP ; -return (*dev->dev_ops->access_pair_group_join)(dev, group_id, token, cb); +return (*dev->dev_ops->access_pair_group_join)(dev, domain_id, token, group_id, cb); }RTE_EXPORT_EXPERIMENTAL_SYMBOL (rte_dma_access_pair_group_leave,25.11 )
lib/dmadev/rte_dmadev.h +6 -4
@@ -912,10 +912,12 @@ int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id);* * @param dev_id * Identifier of the DMA device attempting to join the group. -* @param group_id -* ID of the access group to join. +* @param domain_id +* Unique identifier representing the process or OS domain. * @param token * Authentication token used to validate group membership. +* @param group_id +* ID of the access group to join. * @param cb * Callback function to be invoked when the device leaves the group * or when the group is destroyed due to some exception or failure.
@@ -925,8 +927,8 @@ int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id);* negative value on failure indicating the error code. */ __rte_experimental -int rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id, rte_uuid_t token, -rte_dma_access_pair_group_event_cb_t cb); +int rte_dma_access_pair_group_join(int16_t dev_id, rte_uuid_t domain_id, rte_uuid_t token, +int16_t group_id,rte_dma_access_pair_group_event_cb_t cb);/** * Leave an access group, removing the device's entry from the group table
lib/dmadev/rte_dmadev_pmd.h +2 -2
@@ -75,8 +75,8 @@ typedef int (*rte_dma_access_pair_group_destroy_t)(const struct rte_dma_dev *dev int16_t group_id);/** @internal Used to join an access pair group for inter-process or inter-OS DMA transfers. */ -typedef int (*rte_dma_access_pair_group_join_t )(const struct rte_dma_dev *dev,int16_t group_id, -rte_uuid_t token, +typedef int (*rte_dma_access_pair_group_join_t )(const struct rte_dma_dev *dev,rte_uuid_t domain_id, +rte_uuid_t token,int16_t group_id,rte_dma_access_pair_group_event_cb_t cb);/** @internal Used to leave an access pair group, removing the device from the group. */
lib/dmadev/rte_dmadev_trace.h +4 -2
@@ -120,10 +120,12 @@ RTE_TRACE_POINT(RTE_TRACE_POINT ( rte_dma_trace_access_pair_group_join, - RTE_TRACE_POINT_ARGS(int16_t dev_id, int16_t group_id, rte_uuid_t token), + RTE_TRACE_POINT_ARGS(int16_t dev_id, rte_uuid_t domain_id, rte_uuid_t token, + int16_t group_id), rte_trace_point_emit_i16(dev_id); -rte_trace_point_emit_i16 (group_id); +rte_trace_point_emit_u8_ptr (&domain_id[0 ]);rte_trace_point_emit_u8_ptr (&token[0 ]); +rte_trace_point_emit_i16 (group_id); ) RTE_TRACE_POINT(
Signature · 1 line
2.34.1
Quoted 48 lines · Vamsi Krishna
From: Vamsi Attunuru <[email protected]>
Add
domain_idfield to access group join API, which is required to retrieve handler information associated with the specified domain. This enhancement ensures that domain-specific context is available during group join operations, improving flexibility and traceability in multi-domain environments.It also aligns the parameters of access group create and join APIs for consistency and clarity.
Signed-off-by Vamsi Attunuru <[email protected]>--- lib/dmadev/rte_dmadev.c | 6 +++--- lib/dmadev/rte_dmadev.h | 10 ++++++---- lib/dmadev/rte_dmadev_pmd.h | 4 ++-- lib/dmadev/rte_dmadev_trace.h | 6 ++++-- 4 files changed, 15 insertions(+), 11 deletions(-)lib/dmadev/rte_dmadev.c +3
-3@@ -875,8 +875,8 @@ rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id) RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dma_access_pair_group_join, 25.11)int -rte_dma_access_pair_group_join (int16_t dev_id,int16_t group_id,rte_uuid_t token, -rte_dma_access_pair_group_event_cb_t cb) +rte_dma_access_pair_group_join (int16_t dev_id,rte_uuid_t domain_id,rte_uuid_t token, +int16_t group_id,rte_dma_access_pair_group_event_cb_t cb) {struct rte_dma_info dev_info;struct rte_dma_dev *dev;@@ -899,7 +899,7 @@ rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id, rte_uuid_t tokeif (*dev->dev_ops->access_pair_group_join ==NULL )return -ENOTSUP ; -return (*dev->dev_ops->access_pair_group_join)(dev, group_id, token, cb); +return (*dev->dev_ops->access_pair_group_join)(dev, domain_id, token, group_id, cb); }RTE_EXPORT_EXPERIMENTAL_SYMBOL (rte_dma_access_pair_group_leave,25.11 )lib/dmadev/rte_dmadev.h +0
-0
lib/dmadev/rte_dmadev.h int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id); · line 916
Quoted 7 lines
lib/dmadev/rte_dmadev.h +2
-2@@ -912,10 +912,12 @@ int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id);* * @param dev_id * Identifier of the DMA device attempting to join the group. -* @param group_id -* ID of the access group to join. +* @param domain_id +* Unique identifier representing the process or OS domain.
This domain_id should be local process or OS domain, so how bout: Unique identifier representing my process or OS domain.
And please change the rte_dma_access_pair_group_create 's comment about the domain_id.
Quoted 40 lines
lib/dmadev/rte_dmadev.h +4
-2* @param token * Authentication token used to validate group membership. +* @param group_id +* ID of the access group to join. * @param cb * Callback function to be invoked when the device leaves the group * or when the group is destroyed due to some exception or failure. @@ -925,8 +927,8 @@ int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id);* negative value on failure indicating the error code. */ __rte_experimental -int rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id, rte_uuid_t token, -rte_dma_access_pair_group_event_cb_t cb); +int rte_dma_access_pair_group_join(int16_t dev_id, rte_uuid_t domain_id, rte_uuid_t token, +int16_t group_id,rte_dma_access_pair_group_event_cb_t cb);/** * Leave an access group, removing the device's entry from the group table lib/dmadev/rte_dmadev_pmd.h +2
-2@@ -75,8 +75,8 @@ typedef int (*rte_dma_access_pair_group_destroy_t)(const struct rte_dma_dev *dev int16_t group_id);/** @internal Used to join an access pair group for inter-process or inter-OS DMA transfers. */ -typedef int (*rte_dma_access_pair_group_join_t )(const struct rte_dma_dev *dev,int16_t group_id, -rte_uuid_t token, +typedef int (*rte_dma_access_pair_group_join_t )(const struct rte_dma_dev *dev,rte_uuid_t domain_id, +rte_uuid_t token,int16_t group_id,rte_dma_access_pair_group_event_cb_t cb);/** @internal Used to leave an access pair group, removing the device from the group. */ lib/dmadev/rte_dmadev_trace.h +0
-0@@ -120,10 +120,12 @@ RTE_TRACE_POINT( RTE_TRACE_POINT(
lib/dmadev/rte_dmadev_trace.h RTE_TRACE_POINT( · line 129
Quoted 10 lines
lib/dmadev/rte_dmadev_trace.h +4
-2rte_dma_trace_access_pair_group_join, - RTE_TRACE_POINT_ARGS(int16_t dev_id, int16_t group_id, rte_uuid_t token), +RTE_TRACE_POINT_ARGS (int16_t dev_id,rte_uuid_t domain_id,rte_uuid_t token, +int16_t group_id),rte_trace_point_emit_i16 (dev_id ); -rte_trace_point_emit_i16 (group_id); +rte_trace_point_emit_u8_ptr (&domain_id[0 ]);rte_trace_point_emit_u8_ptr (&token[0 ]); +rte_trace_point_emit_i16 (group_id); )
There are one detail missing:
1. every process could generate one unique domain_id
2. process A create the access group, and share it's domain_id, the access group token, group_id to process B
3. process B join the access group, which verify by token and group id obtained in step 2
4. both process use rte_dma_access_pair_group_handler_get() API to get each other's domain.
This is the detail missing: how process A know the process B's domain_id??? ---by extra communication channel???
Please add such detail on dmadev.rst
Thanks
Quoted 2 lines
lib/dmadev/rte_dmadev_trace.h +0
-0RTE_TRACE_POINT(
Quoted 70 lines
ZjQcmQRYFpfptBannerEnd
lib/dmadev/rte_dmadev.c rte_dma_access_pair_group_destroy(int16_t
Quoted 24 lines · Vamsi Krishna
From: Vamsi Attunuru <[email protected]>
Add
domain_idfield to access group join API, which is required to retrieve handler information associated with the specified domain. This enhancement ensures that domain-specific context is available during group join operations, improving flexibility and traceability in multi-domain environments.It also aligns the parameters of access group create and join APIs for consistency and clarity.
Signed-off-by Vamsi Attunuru <[email protected]>--- lib/dmadev/rte_dmadev.c | 6 +++--- lib/dmadev/rte_dmadev.h | 10 ++++++---- lib/dmadev/rte_dmadev_pmd.h | 4 ++-- lib/dmadev/rte_dmadev_trace.h | 6 ++++-- 4 files changed, 15 insertions(+), 11 deletions(-)lib/dmadev/rte_dmadev.c index renamed from lib/dmadev/rte_dmadev.c +0
-0
c008e829db..b75b4f9bd1100644lib/dmadev/rte_dmadev.c +0
-0@@ -875,8 +875,8 @@ rte_dma_access_pair_group_destroy(int16_t
dev_id,lib/dmadev/rte_dmadev.c rte_dma_access_pair_group_destroy(int16_t · line 877
Quoted 3 lines
lib/dmadev/rte_dmadev.c +0
-0int16_t group_id) RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dma_access_pair_group_join,25.11)
lib/dmadev/rte_dmadev.c rte_dma_access_pair_group_destroy(int16_t · line 880
Quoted 4 lines
lib/dmadev/rte_dmadev.c +1
-1int -rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id, rte_uuid_t token, -rte_dma_access_pair_group_event_cb_t cb) +rte_dma_access_pair_group_join(int16_t dev_id, rte_uuid_t domain_id,
rte_uuid_ttoken,lib/dmadev/rte_dmadev.c rte_dma_access_pair_group_destroy(int16_t · line 881
Quoted 1 line
lib/dmadev/rte_dmadev.c +1
-0+ int16_t group_id,
rte_dma_access_pair_group_event_cb_tcb)lib/dmadev/rte_dmadev.c rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id, rte_uuid_t toke
Quoted 9 lines
lib/dmadev/rte_dmadev.c +0
-0{struct rte_dma_info dev_info;struct rte_dma_dev *dev;@@ -899,7 +899,7 @@ rte_dma_access_pair_group_join(int16_t dev_id,
int16_tgroup_id,rte_uuid_ttokelib/dmadev/rte_dmadev.c +0
-1if (*dev->dev_ops->access_pair_group_join ==NULL )return -ENOTSUP ; - return (*dev->dev_ops->access_pair_group_join)(dev, group_id,token, cb);
lib/dmadev/rte_dmadev.c
Quoted 5 lines
lib/dmadev/rte_dmadev.c +2
-0+return (*dev->dev_ops->access_pair_group_join)(dev, domain_id, +token, group_id, cb); }RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dma_access_pair_group_leave,
lib/dmadev/rte_dmadev.h int rte_dma_access_pair_group_destroy(int16_t
Quoted 5 lines
25.11) diff --git
a/lib/dmadev/rte_dmadev.hb/lib/dmadev/rte_dmadev.hindex0f4f10ec12..5287b0f32d100644lib/dmadev/rte_dmadev.h +0
-0@@ -912,10 +912,12 @@ int rte_dma_access_pair_group_destroy(int16_t
dev_id,int16_tgroup_id);lib/dmadev/rte_dmadev.h int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id); · line 916
Quoted 7 lines
lib/dmadev/rte_dmadev.h +2
-2* * @param dev_id * Identifier of the DMA device attempting to join the group. -* @param group_id -* ID of the access group to join. +* @param domain_id +* Unique identifier representing the process or OS domain.
Quoted 6 lines
This
domain_idshould be local process or OS domain, so how bout: Unique identifier representing my process or OS domain.And please change the
rte_dma_access_pair_group_create's comment about thedomain_id.
Ack, will update both the comments.
Quoted 73 lines
lib/dmadev/rte_dmadev.h int rte_dma_access_pair_group_destroy(int16_t
Quoted 8 lines
lib/dmadev/rte_dmadev.h +2
-0* @param token * Authentication token used to validate group membership. +* @param group_id +* ID of the access group to join. * @param cb * Callback function to be invoked when the device leaves the group * or when the group is destroyed due to some exception or failure. @@ -925,8 +927,8 @@ int rte_dma_access_pair_group_destroy(int16_t
dev_id,int16_tgroup_id);lib/dmadev/rte_dmadev.h int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id);
Quoted 4 lines
lib/dmadev/rte_dmadev.h +0
-1* negative value on failure indicating the error code. */ __rte_experimental -int rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id,
rte_uuid_ttoken,lib/dmadev/rte_dmadev.h int rte_dma_access_pair_group_destroy(int16_t · line 929
Quoted 1 line
lib/dmadev/rte_dmadev.h +0
-1- rte_dma_access_pair_group_event_cb_tcb);
lib/dmadev/rte_dmadev.h int rte_dma_access_pair_group_destroy(int16_t · line 930
Quoted 1 line
lib/dmadev/rte_dmadev.h +1
-0+int rte_dma_access_pair_group_join(int16_t dev_id, rte_uuid_t
domain_id,rte_uuid_ttoken,lib/dmadev/rte_dmadev.h int rte_dma_access_pair_group_destroy(int16_t · line 931
Quoted 1 line
lib/dmadev/rte_dmadev.h +1
-0+ int16_t group_id,
rte_dma_access_pair_group_event_cb_tcb);lib/dmadev/rte_dmadev_pmd.h typedef int
Quoted 8 lines
lib/dmadev/rte_dmadev.h +0
-0/** * Leave an access group, removing the device's entry from the group table diff --git
a/lib/dmadev/rte_dmadev_pmd.hb/lib/dmadev/rte_dmadev_pmd.hindex16fd625c2d..8a6b0a9c98100644lib/dmadev/rte_dmadev_pmd.h +0
-0@@ -75,8 +75,8 @@ typedef int(*rte_dma_access_pair_group_destroy_t)(const struct
rte_dma_dev*devQuoted 4 lines
lib/dmadev/rte_dmadev_pmd.h +0
-0int16_t group_id);/** @internal Used to join an access pair group for inter-process or inter-OS DMA transfers. */ -typedef int
(*rte_dma_access_pair_group_join_t)(const struct
rte_dma_dev*dev,int16_tgroup_id,lib/dmadev/rte_dmadev_pmd.h
Quoted 2 lines
lib/dmadev/rte_dmadev_pmd.h +1
-1- rte_uuid_t token, +typedef int (*rte_dma_access_pair_group_join_t)(const struct
rte_dma_dev*dev,rte_uuid_tdomain_id,lib/dmadev/rte_dmadev_pmd.h
Quoted 1 line
lib/dmadev/rte_dmadev_pmd.h +1
-0+rte_uuid_t token, int16_t
group_id,Quoted 1 line
rte_dma_access_pair_group_event_cb_t cb);lib/dmadev/rte_dmadev_trace.h RTE_TRACE_POINT( · line 123
Quoted 11 lines
/** @internal Used to leave an access pair group, removing the device
from the group. */ diff --gita/lib/dmadev/rte_dmadev_trace.hb/lib/dmadev/rte_dmadev_trace.hindexda80a8cb50..7ad00b5bfa100644lib/dmadev/rte_dmadev_trace.h +0
-1@@ -120,10 +120,12 @@ RTE_TRACE_POINT( RTE_TRACE_POINT( rte_dma_trace_access_pair_group_join, - RTE_TRACE_POINT_ARGS(int16_t dev_id, int16_t group_id,
rte_uuid_ttoken),lib/dmadev/rte_dmadev_trace.h RTE_TRACE_POINT( · line 123
Quoted 1 line
lib/dmadev/rte_dmadev_trace.h +1
-0+ RTE_TRACE_POINT_ARGS(int16_t dev_id, rte_uuid_t domain_id,
rte_uuid_ttoken,lib/dmadev/rte_dmadev_trace.h RTE_TRACE_POINT( · line 129
Quoted 7 lines
lib/dmadev/rte_dmadev_trace.h +3
-1+ int16_t group_id),rte_trace_point_emit_i16 (dev_id ); -rte_trace_point_emit_i16 (group_id); +rte_trace_point_emit_u8_ptr (&domain_id[0 ]);rte_trace_point_emit_u8_ptr (&token[0 ]); +rte_trace_point_emit_i16 (group_id); )There are one detail missing:
1. every process could generate one uniquedomain_id2. process A create the access group, and share it'sdomain_id, the access group token,group_idto process B 3. process B join the access group, which verify by token and group id obtained in step 2 4. both process userte_dma_access_pair_group_handler_get()API to get each other's domain. This is the detail missing: how process A know the process B'sdomain_id???
---by extra communication channel???
Quoted 1 line
Please add such detail on
dmadev.rst
ack, will add more details in v2.
Quoted 4 lines
Thanks
Quoted 2 lines
lib/dmadev/rte_dmadev_trace.h +0
-0RTE_TRACE_POINT(
PATCH v2 1/1 dmadev: add domain_id field to access group join API
In reply to Vamsi KrishnaFrom: Vamsi Attunuru <[email protected]>
Add domain_id field to access group join API, which is required to retrieve handler information associated with the specified domain. This enhancement ensures that domain-specific context is available during group join operations, improving flexibility and traceability in multi-domain environments.
Patch aligns the parameters of access group create and join APIs for consistency and clarity, also updates the dmadev.rst file with detailed steps.
---
V2 changes:
* Updated domain_id field description.
* Added more detailed steps in dmadev.rst file.
doc/guides/prog_guide/dmadev.rst | 43 +++++++++++++++++++++----------- lib/dmadev/rte_dmadev.c | 6 ++--- lib/dmadev/rte_dmadev.h | 12 +++++---- lib/dmadev/rte_dmadev_pmd.h | 4 +-- lib/dmadev/rte_dmadev_trace.h | 6 +++-- 5 files changed, 44 insertions(+), 27 deletions(-)
doc/guides/prog_guide/dmadev.rst +28 -15
@@ -177,7 +177,7 @@ the :doc:`../howto/telemetry`. Inter-domain DMA Transfers -~~~~~~~~~~~~~~~~~~~~~~~~~~ +-------------------------- The inter-domain DMA feature enables DMA devices to perform data transfers across different processes and OS domains.
@@ -201,32 +201,45 @@ can perform DMA transfers across processes or OS domains. Below is the API usage flow for setting up the access pair group for DMA between process#1 and process#2. +Each process must generate a unique ``domain_id`` to represent its identity +(e.g., a process-specific or OS-specific domain identifier). + Process#1 (Group Creator) -^^^^^^^^^^^^^^^^^^^^^^^^^ +~~~~~~~~~~~~~~~~~~~~~~~~~ + +* Generates a unique ``token`` that will be used to secure the access pair group. + +* Calls ``rte_dma_access_pair_group_create`` to establish a new access pair group. -Calls ``rte_dma_access_pair_group_create`` to establish a new access pair group, -then shares the ``group_id``, ``token`` and ``domain_id`` with Process#2 via IPC. +* Shares the ``group_id``, ``token`` and its ``domain_id`` details with Process#2 + via IPC or sideband communication channel. Process#2 (Group Joiner) -^^^^^^^^^^^^^^^^^^^^^^^^ +~~~~~~~~~~~~~~~~~~~~~~~~ -Receives the ``group_id`` and ``token`` from Process#1 -and calls ``rte_dma_access_pair_group_join`` to join the group. +* Receives the ``group_id``, ``token`` and Process#1's ``domain_id``. + +* Passes ``group_id``, ``token`` and its own ``domain_id`` to ``rte_dma_access_pair_group_join`` + to join the access group. + +* Shares its ``domain_id`` details with Process#1 via IPC or sideband communication channel. Both Processes -^^^^^^^^^^^^^^ +~~~~~~~~~~~~~~ + +* Each process retrieves the ``handler`` information associated with its own or the peer's + ``domain_id`` using ``rte_dma_access_pair_group_handler_get``. -Use ``rte_dma_access_pair_group_handler_get`` to obtain ``handler`` information -for domains in the group. +* Use these ``handler`` details to setup the virtual channel configuration. -Perform inter-domain DMA transfers as required. +* Perform the inter-domain DMA transfers as required. Process#2 (when finished) -^^^^^^^^^^^^^^^^^^^^^^^^^ +~~~~~~~~~~~~~~~~~~~~~~~~~ -Calls ``rte_dma_access_pair_group_leave`` to exit the group. +* Calls ``rte_dma_access_pair_group_leave`` to exit the group. Process#1 (final cleanup) -^^^^^^^^^^^^^^^^^^^^^^^^^ +~~~~~~~~~~~~~~~~~~~~~~~~~ -Calls ``rte_dma_access_pair_group_destroy`` to destroy the group. +* Calls ``rte_dma_access_pair_group_destroy`` to destroy the group.
lib/dmadev/rte_dmadev.c +3 -3
@@ -875,8 +875,8 @@ rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id) RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_dma_access_pair_group_join, 25.11)int -rte_dma_access_pair_group_join (int16_t dev_id,int16_t group_id,rte_uuid_t token, -rte_dma_access_pair_group_event_cb_t cb) +rte_dma_access_pair_group_join (int16_t dev_id,rte_uuid_t domain_id,rte_uuid_t token, +int16_t group_id,rte_dma_access_pair_group_event_cb_t cb) {struct rte_dma_info dev_info;struct rte_dma_dev *dev;
@@ -899,7 +899,7 @@ rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id, rte_uuid_t tokeif (*dev->dev_ops->access_pair_group_join ==NULL )return -ENOTSUP ; -return (*dev->dev_ops->access_pair_group_join)(dev, group_id, token, cb); +return (*dev->dev_ops->access_pair_group_join)(dev, domain_id, token, group_id, cb); }RTE_EXPORT_EXPERIMENTAL_SYMBOL (rte_dma_access_pair_group_leave,25.11 )
lib/dmadev/rte_dmadev.h +7 -5
@@ -867,7 +867,7 @@ typedef void (*rte_dma_access_pair_group_event_cb_t)(int16_t dev_id,* @param dev_id * Identifier of the DMA device initiating the group. * @param domain_id -* Unique identifier representing the process or OS domain. +* Unique identifier representing the current process or OS domain. * @param token * Authentication token used to establish the access group. * @param[out] group_id
@@ -912,10 +912,12 @@ int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id);* * @param dev_id * Identifier of the DMA device attempting to join the group. -* @param group_id -* ID of the access group to join. +* @param domain_id +* Unique identifier representing the current process or OS domain. * @param token * Authentication token used to validate group membership. +* @param group_id +* ID of the access group to join. * @param cb * Callback function to be invoked when the device leaves the group * or when the group is destroyed due to some exception or failure.
@@ -925,8 +927,8 @@ int rte_dma_access_pair_group_destroy(int16_t dev_id, int16_t group_id);* negative value on failure indicating the error code. */ __rte_experimental -int rte_dma_access_pair_group_join(int16_t dev_id, int16_t group_id, rte_uuid_t token, -rte_dma_access_pair_group_event_cb_t cb); +int rte_dma_access_pair_group_join(int16_t dev_id, rte_uuid_t domain_id, rte_uuid_t token, +int16_t group_id,rte_dma_access_pair_group_event_cb_t cb);/** * Leave an access group, removing the device's entry from the group table
lib/dmadev/rte_dmadev_pmd.h +2 -2
@@ -75,8 +75,8 @@ typedef int (*rte_dma_access_pair_group_destroy_t)(const struct rte_dma_dev *dev int16_t group_id);/** @internal Used to join an access pair group for inter-process or inter-OS DMA transfers. */ -typedef int (*rte_dma_access_pair_group_join_t )(const struct rte_dma_dev *dev,int16_t group_id, -rte_uuid_t token, +typedef int (*rte_dma_access_pair_group_join_t )(const struct rte_dma_dev *dev,rte_uuid_t domain_id, +rte_uuid_t token,int16_t group_id,rte_dma_access_pair_group_event_cb_t cb);/** @internal Used to leave an access pair group, removing the device from the group. */
lib/dmadev/rte_dmadev_trace.h +4 -2
@@ -120,10 +120,12 @@ RTE_TRACE_POINT(RTE_TRACE_POINT ( rte_dma_trace_access_pair_group_join, - RTE_TRACE_POINT_ARGS(int16_t dev_id, int16_t group_id, rte_uuid_t token), + RTE_TRACE_POINT_ARGS(int16_t dev_id, rte_uuid_t domain_id, rte_uuid_t token, + int16_t group_id), rte_trace_point_emit_i16(dev_id); -rte_trace_point_emit_i16 (group_id); +rte_trace_point_emit_u8_ptr (&domain_id[0 ]);rte_trace_point_emit_u8_ptr (&token[0 ]); +rte_trace_point_emit_i16 (group_id); ) RTE_TRACE_POINT(
Signature · 1 line
2.34.1
Quoted 13 lines · Vamsi Krishna
From: Vamsi Attunuru <[email protected]>
Add
domain_idfield to access group join API, which is required to retrieve handler information associated with the specified domain. This enhancement ensures that domain-specific context is available during group join operations, improving flexibility and traceability in multi-domain environments.Patch aligns the parameters of access group create and join APIs for consistency and clarity, also updates the
dmadev.rstfile with detailed steps.Signed-off-by Vamsi Attunuru <[email protected]>
Hi Thomas,
Gentle ping for merge.
Regards
Vamsi
Quoted 37 lines
-----Original Message-----
From: fengchengwen <[email protected]>
Sent: Tuesday, November 4, 2025 11:36 AM
To: Vamsi Krishna Attunuru <[email protected]>; [email protected]
Cc: [email protected]
Subject: [EXTERNAL] Re: [PATCH v2 1/1] dmadev: adddomain_idfield to access group join APISigned-off-by Chengwen Feng <fengchengwen@ huawei. com> On11/4/2025 1: 21 PM, Vamsi Krishna wrote: > From: Vamsi Attunuru <vattunuru@ marvell. com> > > Add
domain_idfield to access group join API, which is required > to ZjQcmQRYFpfptBannerStart Prioritize security for external emails:
Confirm sender and content safety before clicking links or opening attachments <https://us-phishalarm-
ewt.proofpoint.com/EWT/v1/CRVmXkqW!tg3ZdN80AjTwNAwdmXxwLa- etC2CV_lbTBNEBP8hf8TBxPjQSqqCRRJOiHyyb13qTkXEm5TxzdiZxiXJu3u- Kk1yQl6F9JefmIs$>
Report SuspiciousZjQcmQRYFpfptBannerEnd
Signed-off-by Chengwen Feng <[email protected]>Quoted 13 lines · Vamsi Krishna
From: Vamsi Attunuru <[email protected]>
Add
domain_idfield to access group join API, which is required to retrieve handler information associated with the specified domain. This enhancement ensures that domain-specific context is available during group join operations, improving flexibility and traceability in multi-domain environments.Patch aligns the parameters of access group create and join APIs for consistency and clarity, also updates the
dmadev.rstfile with detailed steps.Signed-off-by Vamsi Attunuru <[email protected]>
Thomas Monjalon
AppliedQuoted 6 lines
Quoted 6 lines
Add
domain_idfield to access group join API, which is required to retrieve handler information associated with the specified domain. This enhancement ensures that domain-specific context is available during group join operations, improving flexibility and traceability in multi-domain environments.
Quoted 6 lines
Quoted 5 lines
Patch aligns the parameters of access group create and join APIs for consistency and clarity, also updates the
dmadev.rstfile with detailed steps.Signed-off-by Vamsi Attunuru <[email protected]>Signed-off-by Chengwen Feng <[email protected]>
Applied, thanks.