public inbox for dev@dpdk.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] net/iavf: fix incorrect struct in status get
@ 2026-02-20 10:01 Anatoly Burakov
  2026-02-20 10:14 ` Radu Nicolau
  0 siblings, 1 reply; 3+ messages in thread
From: Anatoly Burakov @ 2026-02-20 10:01 UTC (permalink / raw)
  To: dev, Vladimir Medvedkin, Qi Zhang, Radu Nicolau

Current code for getting crypto status is using sizeof() of cap struct
instead of status structure. This is not a big problem because cap struct
is a lot bigger, but the code is misleading. Fix it to use the correct
struct.

Fixes: 3940cd9b8cb3 ("net/iavf: fix device initialization without inline crypto")
Cc: radu.nicolau@intel.com
Cc: stable@dpdk.org

Reported-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
 drivers/net/intel/iavf/iavf_ipsec_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/intel/iavf/iavf_ipsec_crypto.c b/drivers/net/intel/iavf/iavf_ipsec_crypto.c
index 6d41b1744e..ab41b1973e 100644
--- a/drivers/net/intel/iavf/iavf_ipsec_crypto.c
+++ b/drivers/net/intel/iavf/iavf_ipsec_crypto.c
@@ -1600,7 +1600,7 @@ iavf_ipsec_crypto_status_get(struct iavf_adapter *adapter,
 	}
 
 	response_len = sizeof(struct inline_ipsec_msg) +
-			sizeof(struct virtchnl_ipsec_cap);
+			sizeof(struct virtchnl_ipsec_status);
 	response = rte_malloc("iavf-device-status-response",
 			response_len, 0);
 	if (response == NULL) {
-- 
2.47.3


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

end of thread, other threads:[~2026-02-20 10:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 10:01 [PATCH v1 1/1] net/iavf: fix incorrect struct in status get Anatoly Burakov
2026-02-20 10:14 ` Radu Nicolau
2026-02-20 10:39   ` Bruce Richardson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox