API: Fix shared memory only action handlers. 85/18785/2
authorOle Troan <ot@cisco.com>
Wed, 10 Apr 2019 07:44:23 +0000 (09:44 +0200)
committerDave Wallace <dwallacelf@gmail.com>
Wed, 10 Apr 2019 13:06:45 +0000 (13:06 +0000)
commit2e1c8967faf4e9f7b45471df02e4e5b07fbb520a
tree172579d8d04927851d1781262bd2483fa9bf8643
parent13464f323a8bbd530bd85256de1c033781e098a7
API: Fix shared memory only action handlers.

Some API action handlers called vl_msg_ai_send_shmem()
directly. That breaks Unix domain socket API transport.

A couple (bond / vhost) also tried to send a sw_interface_event
directly, but did not send the message to all that had
registred interest. That scheme never worked correctly.
Refactored and improved the interface event code.

Change-Id: Idb90edfd8703c6ae593b36b4eeb4d3ed7da5c808
Signed-off-by: Ole Troan <ot@cisco.com>
18 files changed:
src/plugins/abf/abf_api.c
src/plugins/acl/acl.c
src/plugins/igmp/igmp_api.c
src/plugins/ioam/lib-trace/trace_api.c
src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_api.c
src/plugins/nat/nat_api.c
src/plugins/nsh/nsh_api.c
src/plugins/svs/svs_api.c
src/vlibmemory/memory_client.c
src/vlibmemory/memory_shared.h
src/vnet/bonding/bond_api.c
src/vnet/devices/tap/tapv2_api.c
src/vnet/devices/virtio/vhost_user_api.c
src/vnet/devices/virtio/virtio_api.c
src/vnet/interface_api.c
src/vnet/ip/ip_api.c
test/framework.py
test/test_vhost.py