summaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_iavf/virtchnl_funcs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dev_iavf/virtchnl_funcs.h')
-rw-r--r--src/plugins/dev_iavf/virtchnl_funcs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/dev_iavf/virtchnl_funcs.h b/src/plugins/dev_iavf/virtchnl_funcs.h
index e7f3901e0ee..0d4ab2835f4 100644
--- a/src/plugins/dev_iavf/virtchnl_funcs.h
+++ b/src/plugins/dev_iavf/virtchnl_funcs.h
@@ -9,6 +9,10 @@
#include <vnet/dev/dev.h>
#include <dev_iavf/iavf.h>
+/* The "+ 1" fakes a trailing element, but the driver requires that.
+ * Using this "wrong" macro is the easiest solution, as long as
+ * port.c uses buffer sized by the same macro as the functions here.
+ */
#define VIRTCHNL_MSG_SZ(s, e, n) STRUCT_OFFSET_OF (s, e[(n) + 1])
typedef struct