diff options
author | Dave Barach <dave@barachs.net> | 2016-02-24 11:29:06 -0500 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-02-24 11:30:44 -0500 |
commit | 1f49ed666af8b9cb889f9ea61f084341d0b6c4f4 (patch) | |
tree | 0e951e3cc6a21f7320084a6b5f0e213f1852b634 /vnet/vnet/ethernet/init.c | |
parent | 9f50b0b5b12c0e1b01f36cf84070549911197584 (diff) |
Link the vpp application against libvnet.so, not libvnet.a
Turn of srp, mainly as an example of how to restructure a featurette
for selective disablement.
Change-Id: Id3364c58a8711b103939f4434adfa67177380f67
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vnet/vnet/ethernet/init.c')
-rw-r--r-- | vnet/vnet/ethernet/init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vnet/vnet/ethernet/init.c b/vnet/vnet/ethernet/init.c index 4ac14e208be..42788f02c27 100644 --- a/vnet/vnet/ethernet/init.c +++ b/vnet/vnet/ethernet/init.c @@ -66,6 +66,13 @@ static clib_error_t * ethernet_init (vlib_main_t * vm) ethernet_main_t * em = ðernet_main; clib_error_t * error; + /* + * Set up the L2 path now, or we'll wipe out the L2 ARP + * registration set up by ethernet_arp_init. + */ + if ((error = vlib_call_init_function(vm, l2_init))) + return error; + em->vlib_main = vm; em->type_info_by_name = hash_create_string (0, sizeof (uword)); |