blob: 3102eccea3987f8577f84c442ad2628eed9144fa [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001/*
2 * Copyright (c) 2015 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15/*
16 * This file and in fact the entire directory shouldn't even exist.
Todd Foggoa4ea4ecd2016-03-17 14:22:34 -040017 *
Ed Warnickecb9cada2015-12-08 15:45:58 -070018 * Unfortunately, various things malfunction when we try to go there.
19 * Plugin DLL's end up with their own copies of critical
20 * data structures. No one of these problems would be tough to fix,
21 * but there are quite a number of them.
22 */
23
24/*
25 * Make certain that plugin .dll's which reference the following functions
26 * can find them...
27 */
28
Ed Warnickecb9cada2015-12-08 15:45:58 -070029#if DPDK > 0
30#define foreach_dpdk_plugin_reference \
Ed Warnickecb9cada2015-12-08 15:45:58 -070031_(rte_calloc) \
32_(rte_free) \
33_(rte_malloc) \
Josh Gahm3640d532016-02-10 18:03:08 -050034_(rte_zmalloc) \
35_(rte_malloc_virt2phy) \
Todd Foggoa4ea4ecd2016-03-17 14:22:34 -040036_(rte_eal_get_configuration)
Ed Warnickecb9cada2015-12-08 15:45:58 -070037#else
38#define foreach_dpdk_plugin_reference
39#endif
40
41#define _(a) void a (void);
Ed Warnickecb9cada2015-12-08 15:45:58 -070042foreach_dpdk_plugin_reference
43#undef _
44
45void *vnet_library_plugin_references[] =
46 {
47#define _(a) &a,
Ed Warnickecb9cada2015-12-08 15:45:58 -070048 foreach_dpdk_plugin_reference
Ed Warnickecb9cada2015-12-08 15:45:58 -070049#undef _
50 };
51
52void vnet_library_plugin_reference(void) { }