]> git.droids-corp.org - dpdk.git/commitdiff
power: add send channel msg function to map file
authorDavid Hunt <david.hunt@intel.com>
Wed, 11 Oct 2017 16:18:53 +0000 (17:18 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 11 Oct 2017 23:46:11 +0000 (00:46 +0100)
Adding new wrapper function to existing private (but unused 'till now)
function with an rte_power_ prefix.

The plan is to clean up all the header files in the next release so
that only the intended public functions are in the map file and only
the relevant headers have the rte_ prefix so that only they are
included in the documentation.

Signed-off-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_power/guest_channel.c
lib/librte_power/guest_channel.h
lib/librte_power/rte_power_version.map

index 85c92fab9d459035387b702eeef4074ef2d98bfe..fa5de0f53a3038da5a3ae0bf57d6f781827a97e7 100644 (file)
@@ -148,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)
 {
index 9e18af523d34fa49ebbbcf48dae77e04918ace8d..741339ca07f485c8d72510ddd8d733db75dbfcdd 100644 (file)
@@ -81,6 +81,21 @@ void guest_channel_host_disconnect(unsigned lcore_id);
  */
 int guest_channel_send_msg(struct channel_packet *pkt, unsigned lcore_id);
 
+/**
+ * Send a message contained in pkt over the Virtio-Serial to the host endpoint.
+ *
+ * @param pkt
+ *  Pointer to a populated struct channel_packet
+ *
+ * @param lcore_id
+ *  lcore_id.
+ *
+ * @return
+ *  - 0 on success.
+ *  - Negative on error.
+ */
+int rte_power_guest_channel_send_msg(struct channel_packet *pkt,
+                       unsigned int lcore_id);
 
 #ifdef __cplusplus
 }
index 9ae0627fc38d4f0fcf1d95012b952c866f354563..96dc42ec884da2829ccdeb0ee1252b11db4b38d4 100644 (file)
@@ -20,6 +20,7 @@ DPDK_2.0 {
 DPDK_17.11 {
        global:
 
+       rte_power_guest_channel_send_msg;
        rte_power_freq_disable_turbo;
        rte_power_freq_enable_turbo;
        rte_power_turbo_status;