Skip to contentSkip to conversation

eventdev: clarify nb_unlinks description

PATCH Superseded Gage Eads 3 participants 5 messages Feb 10, 2017 – Feb 16, 2017

lore
Share & tools
lore

Gage Eads

author
#0 lore raw

PATCH 1/1 eventdev: clarify nb_unlinks description

This commit clarifies the usage of nb_unlinks when passing a NULL pointer as the queues argument.

---
 lib/librte_eventdev/rte_eventdev.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/librte_eventdev/rte_eventdev.h +2 -1
index c2f9310..7b64532 100644
@@ -1336,7 +1336,8 @@ rte_event_port_link(uint8_t dev_id, uint8_t port_id,
  *   event queue(s) from the event port *port_id*.
  *
  * @param nb_unlinks
- *   The number of unlinks to establish
+ *   The number of unlinks to establish. This parameter is ignored if queues is
+ *   NULL.
  *
  * @return
  * The number of unlinks actually established. The return value can be less
Signature · 1 line
2.7.4
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Gage Eads

This commit clarifies the usage of nb_unlinks when passing a NULL pointer as the queues argument.

---
 lib/librte_eventdev/rte_eventdev.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
lib/librte_eventdev/rte_eventdev.h +0 -0
index c2f9310..7b64532 100644

lib/librte_eventdev/rte_eventdev.h rte_event_port_link(uint8_t dev_id, uint8_t port_id, · line 1340

Quoted 6 lines
lib/librte_eventdev/rte_eventdev.h +2 -1
@@ -1336,7 +1336,8 @@ rte_event_port_link(uint8_t dev_id, uint8_t port_id,
  *   event queue(s) from the event port *port_id*.
  *
  * @param nb_unlinks
- *   The number of unlinks to establish
+ *   The number of unlinks to establish. This parameter is ignored if queues is
+ *   NULL.

Add similar description to rte_event_port_link too, With that,

Quoted 6 lines
lib/librte_eventdev/rte_eventdev.h +0 -0
  *
  * @return
  * The number of unlinks actually established. The return value can be less
Signature · 1 line
2.7.4
author
#2 lore raw

PATCH v2 1/1 eventdev: clarify nb_links and nb_unlinks description

In reply to Gage Eads

This commit clarifies the usage of nb_links and nb_unlinks when passing a NULL pointer as the queues argument.

---
Changes for v2:
- Clarify nb_links as well

 lib/librte_eventdev/rte_eventdev.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
lib/librte_eventdev/rte_eventdev.h +4 -2
index c2f9310..eaf9dc6 100644
@@ -1291,7 +1291,8 @@ rte_event_dequeue_burst(uint8_t dev_id, uint8_t port_id, struct rte_event ev[],
  *   with RTE_EVENT_DEV_PRIORITY_NORMAL servicing priority
  *
  * @param nb_links
- *   The number of links to establish
+ *   The number of links to establish. This parameter is ignored if queues is
+ *   NULL.
  *
  * @return
  * The number of links actually established. The return value can be less than
@@ -1336,7 +1337,8 @@ rte_event_port_link(uint8_t dev_id, uint8_t port_id,
  *   event queue(s) from the event port *port_id*.
  *
  * @param nb_unlinks
- *   The number of unlinks to establish
+ *   The number of unlinks to establish. This parameter is ignored if queues is
+ *   NULL.
  *
  * @return
  * The number of unlinks actually established. The return value can be less
Signature · 1 line
2.7.4
Acked-by on v2 1/1
#3 lore raw

Re: [PATCH v2] eventdev: clarify nb_links and nb_unlinks description

Quoted 4 lines · Gage Eads

This commit clarifies the usage of nb_links and nb_unlinks when passing a NULL pointer as the queues argument.

Quoted 34 lines

---
Changes for v2:
- Clarify nb_links as well

 lib/librte_eventdev/rte_eventdev.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
lib/librte_eventdev/rte_eventdev.h +4 -2
index c2f9310..eaf9dc6 100644
@@ -1291,7 +1291,8 @@ rte_event_dequeue_burst(uint8_t dev_id, uint8_t port_id, struct rte_event ev[],
  *   with RTE_EVENT_DEV_PRIORITY_NORMAL servicing priority
  *
  * @param nb_links
- *   The number of links to establish
+ *   The number of links to establish. This parameter is ignored if queues is
+ *   NULL.
  *
  * @return
  * The number of links actually established. The return value can be less than
@@ -1336,7 +1337,8 @@ rte_event_port_link(uint8_t dev_id, uint8_t port_id,
  *   event queue(s) from the event port *port_id*.
  *
  * @param nb_unlinks
- *   The number of unlinks to establish
+ *   The number of unlinks to establish. This parameter is ignored if queues is
+ *   NULL.
  *
  * @return
  * The number of unlinks actually established. The return value can be less
Signature · 1 line
2.7.4