Thread (178 messages) 178 messages, 7 authors, 2021-11-04

Re: [dpdk-dev] [RFC PATCH v3 1/3] sched: add PIE based congestion management

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-06-21 18:18:05

On Mon, 21 Jun 2021 08:35:04 +0100
"Liguzinski, WojciechX" [off-list ref] wrote:
+/**
+ * @brief Initialises run-time data
+ *
+ * @param pie [in,out] data pointer to PIE runtime data
+ *
+ * @return Operation status
+ * @retval 0 success
+ * @retval !0 error
+ */
+int
+rte_pie_rt_data_init(struct rte_pie *pie);
All the new code needs to be marked experimental.
Why return an error on the init() function, then you are going to
make application check the result and lead to lots more code.

Other places in DPDK use void for init functions.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help