Bill Fischofer(Bill-Fischofer-Linaro) replied on github web page:
platform/linux-generic/include/protocols/vxlan.h
line 40
@@ -0,0 +1,56 @@
+/* Copyright (c) 2017, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/**
+ * @file
+ *
+ * ODP VxLAN header
+ */
+
+#ifndef ODP_VXLAN_H_
+#define ODP_VXLAN_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <odp_api.h>
+
+/** @addtogroup odp_header ODP HEADER
+ * @{
+ */
+
+/** VXLAN header length */
+#define _ODP_VXLANHDR_LEN 8
+
+/** VXLAN UDP destination port */
+#define _ODP_UDP_VXLAN_PORT 4789
+
+#define ODPH_VXLAN_VNI(vxlan_vni) ((vxlan_vni & 0xffffff00) >> 8)
+
+#define ODPH_VXLAN_BIT(vxlan_flag) (vxlan_flag & 0x08)
+
+/** UDP header */
+typedef struct ODP_PACKED {
+ uint8_t flags; /**< Vxlan flags */
+ uint8_t reserve1; /**< reserved bits */
+ uint16_t reseve2; /**< reserved bits */
Comment:
Same comments here as for helper version of file.
> Bill Fischofer(Bill-Fischofer-Linaro) wrote:
> Typo: reserve, not reseve? Perhaps better for these to be anonymous bitfields
> if they are truly unreferenced?
https://github.com/Linaro/odp/pull/345#discussion_r157108142
updated_at 2017-12-15 02:13:15