git: 6b23a23c14ec - stable/14 - ixgbe: copy ACI buffer before command retry

Kevin Bowling <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a767bd4.4025d.7f4f0c2e__26975.8856900566$1786149917$gmane$org@gitrepo.freebsd.org>
The branch stable/14 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=6b23a23c14ec01e6fb87ae981a711a6ffb5b3ed4

commit 6b23a23c14ec01e6fb87ae981a711a6ffb5b3ed4
Author:     Dan Nowlin <[email protected]>
AuthorDate: 2026-07-28 11:07:01 +0000
Commit:     Kevin Bowling <[email protected]>
CommitDate: 2026-08-08 00:41:11 +0000

    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: [email protected]
    
    Signed-off-by: Dan Nowlin <[email protected]>
    Signed-off-by: Yuan Wang <[email protected]>
    Acked-by: Bruce Richardson <[email protected]>
    
    Obtained from:  DPDK (37239792b0)
    
    (cherry picked from commit e45178957d3a25a162279687d82ce791d8253f97)
---
 sys/dev/ixgbe/ixgbe_e610.c | 1 +
 1 file changed, 1 insertion(+)

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));
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.