net/ixgbe: fix IPsec Rx with SSE
[dpdk.git] / lib / librte_power / guest_channel.c
index 2295665..fa5de0f 100644 (file)
@@ -42,7 +42,6 @@
 
 
 #include <rte_log.h>
-#include <rte_config.h>
 
 #include "guest_channel.h"
 #include "channel_commands.h"
@@ -104,8 +103,10 @@ guest_channel_host_connect(const char *path, unsigned lcore_id)
        global_fds[lcore_id] = fd;
        ret = guest_channel_send_msg(&pkt, lcore_id);
        if (ret != 0) {
-               RTE_LOG(ERR, GUEST_CHANNEL, "Error on channel '%s' communications "
-                               "test: %s\n", fd_path, strerror(ret));
+               RTE_LOG(ERR, GUEST_CHANNEL,
+                               "Error on channel '%s' communications test: %s\n",
+                               fd_path, ret > 0 ? strerror(ret) :
+                               "channel not connected");
                goto error;
        }
        RTE_LOG(INFO, GUEST_CHANNEL, "Channel '%s' is now connected\n", fd_path);
@@ -147,6 +148,13 @@ guest_channel_send_msg(struct channel_packet *pkt, unsigned lcore_id)
        return 0;
 }
 
+int rte_power_guest_channel_send_msg(struct channel_packet *pkt,
+                       unsigned int lcore_id)
+{
+       return guest_channel_send_msg(pkt, lcore_id);
+}
+
+
 void
 guest_channel_host_disconnect(unsigned lcore_id)
 {