testpmd: remove unused member from lcore structure
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.
Signed-off-by Kathleen Capella <[email protected]>
Reviewed-by Honnappa Nagarahalli <[email protected]>
--- app/test-pmd/testpmd.h | 1 - 1 file changed, 1 deletion(-)
app/test-pmd/testpmd.h +0 -1
@@ -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
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_queuemember of thefwd_lcorestruct is unused as it is already part of thefwd_streamstructure. Deleting helps improve code readability.Signed-off-by Kathleen Capella <[email protected]>Reviewed-by Honnappa Nagarahalli <[email protected]>
Acked-by Thomas Monjalon <[email protected]>
Thanks for looking at cleaning up.