Skip to contentSkip to conversation

testpmd: remove unused member from lcore structure

PATCH In review Kathleen Capella 2 participants 2 messages Feb 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 testpmd: remove unused member from lcore structure

The tx_queue member of the fwd_lcore struct is unused as it is already part of the fwd_stream structure. Deleting helps improve code readability.

---
 app/test-pmd/testpmd.h | 1 -
 1 file changed, 1 deletion(-)
app/test-pmd/testpmd.h +0 -1
index 5f2316210..f805f1b4d 100644
@@ -247,7 +247,6 @@ struct fwd_lcore {
 	streamid_t stream_idx;   /**< index of 1st stream in "fwd_streams" */
 	streamid_t stream_nb;    /**< number of streams in "fwd_streams" */
 	lcoreid_t  cpuid_idx;    /**< index of logical core in CPU id table */
-	queueid_t  tx_queue;     /**< TX queue to send forwarded packets */
 	volatile char stopped;   /**< stop forwarding when set */
 };
 
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw

About the title:
- the prefix should be app/testpmd
- it is not exactly an lcore structure
I would propose: app/testpmd: remove unused struct member

05/02/2021 20:08, Kathleen Capella:

Quoted 5 lines

The tx_queue member of the fwd_lcore struct is unused as it is already part of the fwd_stream structure. Deleting helps improve code readability.

Thanks for looking at cleaning up.