summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/include/vmbus.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hyperv/include/vmbus.h')
-rw-r--r--sys/dev/hyperv/include/vmbus.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/hyperv/include/vmbus.h b/sys/dev/hyperv/include/vmbus.h
index 8fde588..0a16e6e 100644
--- a/sys/dev/hyperv/include/vmbus.h
+++ b/sys/dev/hyperv/include/vmbus.h
@@ -89,6 +89,11 @@ struct vmbus_chanpkt_hdr {
(const void *)((const uint8_t *)(pkt) + \
VMBUS_CHANPKT_GETLEN((pkt)->cph_hlen))
+/* Include padding */
+#define VMBUS_CHANPKT_DATALEN(pkt) \
+ (VMBUS_CHANPKT_GETLEN((pkt)->cph_tlen) -\
+ VMBUS_CHANPKT_GETLEN((pkt)->cph_hlen))
+
struct vmbus_rxbuf_desc {
uint32_t rb_len;
uint32_t rb_ofs;
OpenPOWER on IntegriCloud