Hi

I will push this on Friday if there are no comments.

Thanks
Gary

----- Message from Gary Lee <[email protected]> ---------
   Date: Fri, 23 Jun 2017 11:48:14 +1000
   From: Gary Lee <[email protected]>
Subject: [PATCH 1/1] amfd: increase msg priority for node ups [#2510]
To: [email protected], [email protected], [email protected], praveen malviya <[email protected]> Cc: [email protected], Gary Lee <[email protected]>


---
 src/amf/amfd/ndmsg.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/amf/amfd/ndmsg.cc b/src/amf/amfd/ndmsg.cc
index 11bc8ac35..9bfab6fd8 100644
--- a/src/amf/amfd/ndmsg.cc
+++ b/src/amf/amfd/ndmsg.cc
@@ -371,7 +371,12 @@ uint32_t avd_n2d_msg_rcv(AVD_DND_MSG *rcv_msg, NODE_ID node_id,

   evt->info.avnd_msg = rcv_msg;

-  if (m_NCS_IPC_SEND(&cb->avd_mbx, evt, NCS_IPC_PRIORITY_HIGH) !=
+  NCS_IPC_PRIORITY priority = NCS_IPC_PRIORITY_HIGH;
+  if (evt->rcv_evt == AVD_EVT_NODE_UP_MSG) {
+    priority = NCS_IPC_PRIORITY_VERY_HIGH;
+  }
+
+  if (m_NCS_IPC_SEND(&cb->avd_mbx, evt, priority) !=
       NCSCC_RC_SUCCESS) {
     LOG_ER("%s: ncs_ipc_send failed", __FUNCTION__);
     avsv_dnd_msg_free(rcv_msg);
--
2.11.0


----- End message from Gary Lee <[email protected]> -----



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to