]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/lib/librte_ipsec/misc.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
10 * Contains miscellaneous functions/structures/macros used internally
15 * Move bad (unprocessed) mbufs beyond the good (processed) ones.
16 * bad_idx[] contains the indexes of bad mbufs inside the mb[].
19 move_bad_mbufs(struct rte_mbuf
*mb
[], const uint32_t bad_idx
[], uint32_t nb_mb
,
23 struct rte_mbuf
*drb
[nb_bad
];
28 /* copy bad ones into a temp place */
29 for (i
= 0; i
!= nb_mb
; i
++) {
30 if (j
!= nb_bad
&& i
== bad_idx
[j
])
36 /* copy bad ones after the good ones */
37 for (i
= 0; i
!= nb_bad
; i
++)