Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2026 11:04:07 +0000
From:      Kevin Bowling <kbowling@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        Dan Nowlin <dan.nowlin@intel.com>
Subject:   git: e45178957d3a - main - ixgbe: copy ACI buffer before command retry
Message-ID:  <6a6c8127.3c345.2116ff8b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by kbowling:

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

commit e45178957d3a25a162279687d82ce791d8253f97
Author:     Dan Nowlin <dan.nowlin@intel.com>
AuthorDate: 2026-07-28 11:07:01 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-07-31 11:01:49 +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: 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
---
 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));
 	}


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a6c8127.3c345.2116ff8b>