hyperv/vmbus: Add macro to get channel packet data length.
MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7455
This commit is contained in:
parent
0ea702cd46
commit
99fc691eec
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user