app/dumpcap: remove unused struct array
PATCH 1/1 app/dumpcap: remove unused struct array
The callbacks(rx_cb) member of struct interface was unused inside dumpcap, but was taking up a lot of memory space, since it was scaled according to RTE_MAX_QUEUES_PER_PORT, which is 1k by default. Save memory by removing the whole array.
--- app/dumpcap/main.c | 1 - 1 file changed, 1 deletion(-)
app/dumpcap/main.c +0 -1
@@ -96,7 +96,6 @@ struct interface {struct rte_bpf_prm *bpf_prm;char name[RTE_ETH_NAME_MAX_LEN ]; -struct rte_rxtx_callback *rx_cb[RTE_MAX_QUEUES_PER_PORT ];const char *ifname;const char *ifdescr; };
Signature · 1 line
2.43.0
Quoted 10 lines · On Tue, 5 Nov 2024 11:27:21 +0000 Bruce Richardson…
The
callbacks(rx_cb)member of struct interface was unused inside dumpcap, but was taking up a lot of memory space, since it was scaled according toRTE_MAX_QUEUES_PER_PORT, which is 1k by default. Save memory by removing the whole array.Fixes cbb44143be74 ("app/dumpcap: add new packet capture application")Suggested-by Stephen Hemminger <[email protected]>Signed-off-by Bruce Richardson <[email protected]>
David Marchand
AppliedQuoted 9 lines · Stephen Hemminger
Quoted 5 lines · On Tue, 5 Nov 2024 11:27:21 +0000 Bruce Richardson…
The
callbacks(rx_cb)member of struct interface was unused inside dumpcap, but was taking up a lot of memory space, since it was scaled according toRTE_MAX_QUEUES_PER_PORT, which is 1k by default. Save memory by removing the whole array.
Quoted 6 lines
Quoted 5 lines
Fixes cbb44143be74 ("app/dumpcap: add new packet capture application")Suggested-by Stephen Hemminger <[email protected]>Signed-off-by Bruce Richardson <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand