DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] eventdev/eth_rx: fix queue config get API
@ 2022-02-09  5:09 Naga Harish K S V
  2022-02-14 15:28 ` Jerin Jacob
  2022-02-14 17:10 ` [PATCH v2] eventdev/eth_rx: fix queue config get logic Naga Harish K S V
  0 siblings, 2 replies; 7+ messages in thread
From: Naga Harish K S V @ 2022-02-09  5:09 UTC (permalink / raw)
  To: jay.jayatheerthan, jerinj; +Cc: dev

the memcpy size used in queue config get function is more than
the source size. Use correct size to avoid copy of unnecessary
data.

Fixes: da781e6488 ("eventdev/eth_rx: support Rx queue config get")

Signed-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>
---
 lib/eventdev/rte_event_eth_rx_adapter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c
index ae1e260c08..e44499e887 100644
--- a/lib/eventdev/rte_event_eth_rx_adapter.c
+++ b/lib/eventdev/rte_event_eth_rx_adapter.c
@@ -3238,7 +3238,7 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t id,
 			RTE_EVENT_ETH_RX_ADAPTER_QUEUE_FLOW_ID_VALID;
 	queue_conf->servicing_weight = queue_info->wt;
 
-	memcpy(&queue_conf->ev, qi_ev, sizeof(*qi_ev));
+	memcpy(&queue_conf->ev, qi_ev, sizeof(queue_info->event));
 
 	dev = &rte_eventdevs[rx_adapter->eventdev_id];
 	if (dev->dev_ops->eth_rx_adapter_queue_conf_get != NULL) {
-- 
2.23.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-18 13:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09  5:09 [PATCH] eventdev/eth_rx: fix queue config get API Naga Harish K S V
2022-02-14 15:28 ` Jerin Jacob
2022-02-14 17:09   ` Jayatheerthan, Jay
2022-02-14 17:13     ` Naga Harish K, S V
2022-02-14 17:10 ` [PATCH v2] eventdev/eth_rx: fix queue config get logic Naga Harish K S V
2022-02-15 16:54   ` Jayatheerthan, Jay
2022-02-18 13:57     ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).