On Thu, May 4, 2017 at 7:45 AM, Tomas Brännström < tomas.a.brannst...@tieto.com> wrote:
> Hello > > Is there something specific that must be done to get VPP running in a KVM > VM? > I'm sorry --- I can't really speak to KVM specific issues. > 2) I have made a tiny client where I want to test sending a message to a > loaded plugin. I've been following the guide on the wiki ( > https://wiki.fd.io/view/VPP/How_To_Use_The_C_API) > As they say in the surprised void, "Oh wow!" ... :-) > as well as looking at other test clients code. The problem I'm having is > that when trying to get the message id base VPP prints > "*msg_handler_internal:429: > no handler for msg id 11*" and returns ~0. > So, you are trying to use message id 11. 429 is the source code line number issuing the error message. > The `vl_client_connect_to_vlib' call seems to work OK so (I think) I have > a connection to vpp. > > Maybe I'm misunderstanding something with how this actually works. Is it > supposed to be possible to run separate applications that "connects" to the > running VPP instance to send message etc., or is this only possible to do > from a plugin? > The VPE base is not considered a plugin. However, there are other pieces (SNAT, ACL, etc) that are plugins. If your message is from VPE, it's not a plugin, and the "base message id" is 0 in this case. Are you using something close to the top-of-tree code? Or is this some point-release? The reason I ask is I think message id 11 is VL_API_GET_FIRST_MSG_ID_REPLY from vlibmemory/memclnt.api.h. So you are not registering to handle that message, and I think that message should be coming in semi-automatically if you have all of the parts lined up and loading correctly. (And furthermore, you should not be registering for that message reply.) Are you sure you are using the VPE module? You need to. HTH, jdl
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev