1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016 Cavium, Inc
9 #include <rte_malloc.h>
11 #include "base/nicvf_bsvf.h"
13 #include "nicvf_svf.h"
16 nicvf_svf_push(struct nicvf *vf)
18 struct svf_entry *entry = NULL;
22 entry = rte_zmalloc("nicvf", sizeof(*entry), RTE_CACHE_LINE_SIZE);
24 rte_panic("Cannoc allocate memory for svf_entry\n");
28 nicvf_bsvf_push(entry);
35 struct svf_entry *entry;
37 entry = nicvf_bsvf_pop();
49 return nicvf_bsvf_empty();