|WARNING| pw156092-156091 [PATCH v7 1/3] mbuf: de-inline sanity checking a reinitialized mbuf

qemudev at loongson.cn qemudev at loongson.cn
Sat Aug 23 01:22:18 CEST 2025


Test-Label: loongarch-compilation
Test-Status: WARNING
http://dpdk.org/patch/156092

_apply patch failure_

Submitter: Morten Brørup <mb at smartsharesystems.com>
Date: Fri, 22 Aug 2025 23:45:13 +0000
DPDK git baseline: Repo:dpdk
  Branch: main
  CommitID: 38543d33bd47fc0ee21f59db80a8763620741879

Apply patch set 156092-156091 failed:

Checking patch lib/mbuf/rte_mbuf.h...
error: while searching for:
static inline int rte_pktmbuf_alloc_bulk(struct rte_mempool *pool,
	 struct rte_mbuf **mbufs, unsigned count)
{
	unsigned idx = 0;
	int rc;

	rc = rte_mbuf_raw_alloc_bulk(pool, (void **)mbufs, count);
	if (unlikely(rc))
		return rc;

	/* To understand duff's device on loop unwinding optimization, see
	 * https://en.wikipedia.org/wiki/Duff's_device.
	 * Here while() loop is used rather than do() while{} to avoid extra
	 * check if count is zero.
	 */
	switch (count % 4) {
	case 0:
		while (idx != count) {
			rte_pktmbuf_reset(mbufs[idx]);
			idx++;
			/* fall-through */
	case 3:
			rte_pktmbuf_reset(mbufs[idx]);
			idx++;
			/* fall-through */
	case 2:
			rte_pktmbuf_reset(mbufs[idx]);
			idx++;
			/* fall-through */
	case 1:
			rte_pktmbuf_reset(mbufs[idx]);
			idx++;
			/* fall-through */
		}
	}
	return 0;
}


error: patch failed: lib/mbuf/rte_mbuf.h:1018
error: lib/mbuf/rte_mbuf.h: patch does not apply



More information about the test-report mailing list