libmctp: Clarify BTU-related symbols
DSP0236 defines a Baseline Transmission Unit (BTU), which dictates the
minimum supported packet payload size. The packet size is the BTU + the
packet header. The maximum (payload) transport unit size for a given
binding may be larger than the BTU.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I2c4013531efd572d95c5a61e4d59309490505a8f
diff --git a/libmctp.h b/libmctp.h
index b36a943..69ec46a 100644
--- a/libmctp.h
+++ b/libmctp.h
@@ -31,9 +31,9 @@
#define MCTP_HDR_TAG_SHIFT (0)
#define MCTP_HDR_TAG_MASK (0x7)
-/* Baseline maximum size of a MCTP packet */
-#define MCTP_BMTU_PAYLOAD 64
-#define MCTP_BMTU (MCTP_BMTU_PAYLOAD + sizeof(struct mctp_hdr))
+/* Baseline Transmission Unit and packet size */
+#define MCTP_BTU 64
+#define MCTP_PACKET_SIZE(unit) ((unit) + sizeof(struct mctp_hdr))
/* packet buffers */