]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/lib/librte_node/null.c
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / lib / librte_node / null.c
diff --git a/ceph/src/spdk/dpdk/lib/librte_node/null.c b/ceph/src/spdk/dpdk/lib/librte_node/null.c
new file mode 100644 (file)
index 0000000..c7cd8b6
--- /dev/null
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(C) 2020 Marvell International Ltd.
+ */
+
+#include <rte_graph.h>
+
+static uint16_t
+null(struct rte_graph *graph, struct rte_node *node, void **objs,
+       uint16_t nb_objs)
+{
+       RTE_SET_USED(node);
+       RTE_SET_USED(objs);
+       RTE_SET_USED(graph);
+
+       return nb_objs;
+}
+
+static struct rte_node_register null_node = {
+       .name = "null",
+       .process = null,
+};
+
+RTE_NODE_REGISTER(null_node);