Skip to contentSkip to conversation

app/dumpcap: remove unused struct array

PATCH Applied Bruce Richardson 3 participants 3 messages Nov 5, 2024 – Nov 6, 2024

lore
Share & tools
lore
#0 lore raw

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.

Fixes cbb44143be74 ("app/dumpcap: add new packet capture application")
---
 app/dumpcap/main.c | 1 -
 1 file changed, 1 deletion(-)
app/dumpcap/main.c +0 -1
index 4031f48441..3d3c0dbc66 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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 to RTE_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")
#2 lore raw
Quoted 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 to RTE_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")

Applied, thanks.

Signature · 1 line
David Marchand