Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | /* |
| 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 Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 17 | * |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 18 | * 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 Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 29 | #if DPDK > 0 |
| 30 | #define foreach_dpdk_plugin_reference \ |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 31 | _(rte_calloc) \ |
| 32 | _(rte_free) \ |
| 33 | _(rte_malloc) \ |
Josh Gahm | 3640d53 | 2016-02-10 18:03:08 -0500 | [diff] [blame] | 34 | _(rte_zmalloc) \ |
| 35 | _(rte_malloc_virt2phy) \ |
Todd Foggoa | 4ea4ecd | 2016-03-17 14:22:34 -0400 | [diff] [blame] | 36 | _(rte_eal_get_configuration) |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 37 | #else |
| 38 | #define foreach_dpdk_plugin_reference |
| 39 | #endif |
| 40 | |
| 41 | #define _(a) void a (void); |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 42 | foreach_dpdk_plugin_reference |
| 43 | #undef _ |
| 44 | |
| 45 | void *vnet_library_plugin_references[] = |
| 46 | { |
| 47 | #define _(a) &a, |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 48 | foreach_dpdk_plugin_reference |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 49 | #undef _ |
| 50 | }; |
| 51 | |
| 52 | void vnet_library_plugin_reference(void) { } |