diff options
author | Keith Burns (alagalah) <alagalah@gmail.com> | 2016-05-02 13:13:46 -0700 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2016-05-02 21:17:56 +0000 |
commit | 21c33bb3078d323893834fe9897ea8ec1fbcbe59 (patch) | |
tree | 482e23c3dfbb45e0fd83d1c4703aec7101dfcfc0 /vnet/vnet/sr/sr_replicate.c | |
parent | d85036fd6bf25bb11a6f3fdfccf4425428834f28 (diff) |
VPP-30 sr_replicate requires DPDK
- added fix to disable functionality when no DPDK
- may extend to support non-DPDK case in future.
Change-Id: Ic8ad4eeb91c4866f3f102dd4a718898eb0419dee
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Diffstat (limited to 'vnet/vnet/sr/sr_replicate.c')
-rw-r--r-- | vnet/vnet/sr/sr_replicate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vnet/vnet/sr/sr_replicate.c b/vnet/vnet/sr/sr_replicate.c index e60b95624e1..7486d7c60a1 100644 --- a/vnet/vnet/sr/sr_replicate.c +++ b/vnet/vnet/sr/sr_replicate.c @@ -15,6 +15,7 @@ * limitations under the License. */ +#if DPDK > 0 /* Cannot run replicate without DPDK */ #include <vlib/vlib.h> #include <vnet/vnet.h> #include <vnet/pg/pg.h> @@ -364,3 +365,5 @@ clib_error_t *sr_replicate_init (vlib_main_t *vm) } VLIB_INIT_FUNCTION(sr_replicate_init); + +#endif /* DPDK */ |