[ovs-dev] [PATCH] openvswitch.h: OVS_KEY_ATTR_PACKET_TYPE is userspace-only.
Ben Pfaff
blp at ovn.org
Mon Jun 19 23:30:41 UTC 2017
This wasn't clear before.
Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2017-June/334271.html
Signed-off-by: Ben Pfaff <blp at ovn.org>
---
datapath/linux/compat/include/linux/openvswitch.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/datapath/linux/compat/include/linux/openvswitch.h b/datapath/linux/compat/include/linux/openvswitch.h
index 4c88de1d610d..d41b7770790c 100644
--- a/datapath/linux/compat/include/linux/openvswitch.h
+++ b/datapath/linux/compat/include/linux/openvswitch.h
@@ -365,7 +365,11 @@ enum ovs_key_attr {
OVS_KEY_ATTR_TUNNEL_INFO, /* struct ovs_tunnel_info */
#endif
+#ifndef __KERNEL__
+ /* Only used within userspace data path. */
OVS_KEY_ATTR_PACKET_TYPE, /* be32 packet type */
+#endif
+
__OVS_KEY_ATTR_MAX
};
--
2.10.2
More information about the dev
mailing list