ipmid: channel: add max transfer size property
Each channel can have a different maximum transfer size. This should be
exposed so that it is easier to tell how many bytes it is possible to
send or receive on a given channel.
Change-Id: Ie277eb7a802edc1deeefe201a7560d371920f519
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/user_channel/channel_layer.cpp b/user_channel/channel_layer.cpp
index d173208..4cab58f 100644
--- a/user_channel/channel_layer.cpp
+++ b/user_channel/channel_layer.cpp
@@ -79,6 +79,11 @@
return getChannelConfigObject().getChannelActiveSessions(chNum);
}
+size_t getChannelMaxTransferSize(uint8_t chNum)
+{
+ return getChannelConfigObject().getChannelMaxTransferSize(chNum);
+}
+
ipmi_ret_t ipmiChannelInit()
{
getChannelConfigObject();