Home
last modified time | relevance | path

Searched refs:ovrp (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/io/overlay/
H A Doverlay_plugin.c91 overlay_plugin_register_t *ovrp; in overlay_plugin_alloc() local
96 ovrp = kmem_zalloc(sizeof (overlay_plugin_register_t), KM_SLEEP); in overlay_plugin_alloc()
97 ovrp->ovep_version = version; in overlay_plugin_alloc()
98 return (ovrp); in overlay_plugin_alloc()
102 overlay_plugin_free(overlay_plugin_register_t *ovrp) in overlay_plugin_free() argument
104 kmem_free(ovrp, sizeof (overlay_plugin_register_t)); in overlay_plugin_free()
108 overlay_plugin_register(overlay_plugin_register_t *ovrp) in overlay_plugin_register() argument
113 if (ovrp->ovep_version != OVEP_VERSION_ONE) in overlay_plugin_register()
116 if (ovrp->ovep_name == NULL || ovrp->ovep_ops == NULL) in overlay_plugin_register()
119 if ((ovrp->ovep_flags & ~(OVEP_F_VLAN_TAG)) != 0) in overlay_plugin_register()
[all …]
/illumos-gate/usr/src/uts/common/io/overlay/plugins/
H A Doverlay_vxlan.c358 overlay_plugin_register_t *ovrp; in _init() local
360 ovrp = overlay_plugin_alloc(OVEP_VERSION); in _init()
361 if (ovrp == NULL) in _init()
363 ovrp->ovep_name = vxlan_ident; in _init()
364 ovrp->ovep_ops = &vxlan_o_ops; in _init()
365 ovrp->ovep_id_size = VXLAN_ID_LEN; in _init()
366 ovrp->ovep_flags = OVEP_F_VLAN_TAG; in _init()
367 ovrp->ovep_dest = OVERLAY_PLUGIN_D_IP | OVERLAY_PLUGIN_D_PORT; in _init()
368 ovrp->ovep_props = vxlan_props; in _init()
370 if ((err = overlay_plugin_register(ovrp)) == 0) { in _init()
[all …]