aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nowlin <dan.nowlin@intel.com>2026-07-28 11:07:01 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2026-07-31 11:01:49 +0000
commite45178957d3a25a162279687d82ce791d8253f97 (patch)
tree0ab530516b6d06d4f99ec2faaee50efdcaa795c6
parent6020de5ad154d54c8b9a838f28612c2182330c67 (diff)
ixgbe: copy ACI buffer before command retry
DPDK commit message net/ixgbe/base: add missing buffer copy for ACI Add the missing buffer copy in ixgbe_aci_send_cmd(). The retry path saves the original descriptor and allocates storage for the command buffer so both can be restored before another attempt. It did not copy the original command buffer into that storage. Fixes: 25b48e569f2f Cc: stable@dpdk.org Signed-off-by: Dan Nowlin <dan.nowlin@intel.com> Signed-off-by: Yuan Wang <yuanx.wang@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Obtained from: DPDK (37239792b0) MFC after: 1 week
-rw-r--r--sys/dev/ixgbe/ixgbe_e610.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ixgbe/ixgbe_e610.c b/sys/dev/ixgbe/ixgbe_e610.c
index 21066f95a16e..68ec9d8816de 100644
--- a/sys/dev/ixgbe/ixgbe_e610.c
+++ b/sys/dev/ixgbe/ixgbe_e610.c
@@ -311,6 +311,7 @@ s32 ixgbe_aci_send_cmd(struct ixgbe_hw *hw, struct ixgbe_aci_desc *desc,
buf_cpy = (u8 *)ixgbe_malloc(hw, buf_size);
if (!buf_cpy)
return IXGBE_ERR_OUT_OF_MEM;
+ memcpy(buf_cpy, buf, buf_size);
}
memcpy(&desc_cpy, desc, sizeof(desc_cpy));
}