mbuf: fix doxygen for distributor metadata
PATCH 1/1 mbuf: fix doxygen for distributor metadata
/**< is for post annotations.
--- lib/mbuf/rte_mbuf_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/mbuf/rte_mbuf_core.h +1 -1
@@ -584,8 +584,8 @@ struct rte_mbuf {* @see rte_event_eth_tx_adapter_txq_set() */ } txadapter;/**< Eventdev ethdev Tx adapter */ -/**< User defined tags. See rte_distributor_process() */ uint32_t usr; +/**< User defined tags. See rte_distributor_process() */ } hash;/**< hash information */ };
Signature · 1 line
2.40.1
Quoted 15 lines · David Marchand
/**< is for post annotations.
Fixes 839b20be0e9b ("ethdev: support metadata as flow rule criteria")Signed-off-by David Marchand <[email protected]>--- lib/mbuf/rte_mbuf_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/mbuf/rte_mbuf_core.h +0
-0
lib/mbuf/rte_mbuf_core.h struct rte_mbuf { · line 588
Quoted 6 lines
lib/mbuf/rte_mbuf_core.h +1
-1@@ -584,8 +584,8 @@ struct rte_mbuf {* @see rte_event_eth_tx_adapter_txq_set() */ } txadapter;/**< Eventdev ethdev Tx adapter */ -/**< User defined tags. See rte_distributor_process() */ uint32_t usr; +/**< User defined tags. See rte_distributor_process() */
Yes, this fixes the issue, but...
I dislike having the comment on the line under the item in question. I think the post-annotation comments should only be used for comments on the same line. If the comment is to be on a different line, I think it should go on the previous line to the item. I also think this tends to be the style used throughout DPDK generally.
/Bruce
Quoted 6 lines
lib/mbuf/rte_mbuf_core.h +0
-0} hash;/**< hash information */ };Signature · 1 line
2.40.1
Quoted 22 lines · Bruce Richardson
Quoted 20 lines · David Marchand
/**< is for post annotations.
Fixes 839b20be0e9b ("ethdev: support metadata as flow rule criteria")Signed-off-by David Marchand <[email protected]>--- lib/mbuf/rte_mbuf_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/mbuf/rte_mbuf_core.h +0
-1@@ -584,8 +584,8 @@ struct rte_mbuf {* @see rte_event_eth_tx_adapter_txq_set() */ } txadapter;/**< Eventdev ethdev Tx adapter */ -/**< User defined tags. See rte_distributor_process() */ uint32_t usr;
Quoted 8 lines
lib/mbuf/rte_mbuf_core.h struct rte_mbuf { · line 588
Quoted 1 line
lib/mbuf/rte_mbuf_core.h +1
-0+/**< User defined tags. See rte_distributor_process() */ Yes, this fixes the issue, but...
I dislike having the comment on the line under the item in question. I think the post-annotation comments should only be used for comments on the same line. If the comment is to be on a different line, I think it should go on the previous line to the item. I also think this tends to be the style used throughout DPDK generally.
I dislike post annotations (regardless of being on the same line or not) as it is easy to mix the description of fields in a structure. But this file has many other usages of this form and, in doubt, I aligned to them.
I can send a followup cleanup if you want, is that ok for you?
Signature · 1 line
David Marchand
Bruce Richardson
Acked-byQuoted 33 lines · David Marchand
Quoted 22 lines · Bruce Richardson
Quoted 20 lines · David Marchand
/**< is for post annotations.
Fixes 839b20be0e9b ("ethdev: support metadata as flow rule criteria")Signed-off-by David Marchand <[email protected]>--- lib/mbuf/rte_mbuf_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/mbuf/rte_mbuf_core.h +0
-1@@ -584,8 +584,8 @@ struct rte_mbuf {* @see rte_event_eth_tx_adapter_txq_set() */ } txadapter;/**< Eventdev ethdev Tx adapter */ -/**< User defined tags. See rte_distributor_process() */ uint32_t usr;Quoted 8 lines
lib/mbuf/rte_mbuf_core.h struct rte_mbuf { · line 588
Quoted 1 line
lib/mbuf/rte_mbuf_core.h +1
-0+/**< User defined tags. See rte_distributor_process() */ Yes, this fixes the issue, but...
I dislike having the comment on the line under the item in question. I think the post-annotation comments should only be used for comments on the same line. If the comment is to be on a different line, I think it should go on the previous line to the item. I also think this tends to be the style used throughout DPDK generally.
Quoted 7 lines
I dislike post annotations (regardless of being on the same line or not) as it is easy to mix the description of fields in a structure. But this file has many other usages of this form and, in doubt, I aligned to them.
I can send a followup cleanup if you want, is that ok for you?
If this is consistent with what is already done in the file, then I'm ok with it as a fix. Follow-up cleanup is obviously welcome, but doesn't have to be you doing it.
Thomas Monjalon
Applied19/06/2023 16:19, Bruce Richardson:
Quoted 39 lines · David Marchand
Quoted 38 lines
Quoted 22 lines · Bruce Richardson
Quoted 20 lines · David Marchand
/**< is for post annotations.
Fixes 839b20be0e9b ("ethdev: support metadata as flow rule criteria")Signed-off-by David Marchand <[email protected]>--- lib/mbuf/rte_mbuf_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/mbuf/rte_mbuf_core.h +0
-1@@ -584,8 +584,8 @@ struct rte_mbuf {* @see rte_event_eth_tx_adapter_txq_set() */ } txadapter;/**< Eventdev ethdev Tx adapter */ -/**< User defined tags. See rte_distributor_process() */ uint32_t usr;Quoted 8 lines
lib/mbuf/rte_mbuf_core.h struct rte_mbuf { · line 588
Quoted 1 line
lib/mbuf/rte_mbuf_core.h +1
-0+/**< User defined tags. See rte_distributor_process() */ Yes, this fixes the issue, but...
I dislike having the comment on the line under the item in question. I think the post-annotation comments should only be used for comments on the same line. If the comment is to be on a different line, I think it should go on the previous line to the item. I also think this tends to be the style used throughout DPDK generally.I dislike post annotations (regardless of being on the same line or not) as it is easy to mix the description of fields in a structure. But this file has many other usages of this form and, in doubt, I aligned to them.
Quoted 8 lines
Quoted 2 lines
I can send a followup cleanup if you want, is that ok for you?
If this is consistent with what is already done in the file, then I'm ok with it as a fix. Follow-up cleanup is obviously welcome, but doesn't have to be you doing it.
Acked-by Bruce Richardson <[email protected]>
Applied, thanks.