2013-10-17 01:09:24 +02:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _UAPI__LINUX_OPENVSWITCH_H
|
|
|
|
#define _UAPI__LINUX_OPENVSWITCH_H 1
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/if_ether.h>
|
|
|
|
struct ovs_header {
|
2015-01-28 19:07:51 +01:00
|
|
|
int dp_ifindex;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
|
|
|
#define OVS_DATAPATH_FAMILY "ovs_datapath"
|
|
|
|
#define OVS_DATAPATH_MCGROUP "ovs_datapath"
|
2014-07-10 00:33:25 +02:00
|
|
|
#define OVS_DATAPATH_VERSION 2
|
|
|
|
#define OVS_DP_VER_FEATURES 2
|
2013-10-17 01:09:24 +02:00
|
|
|
enum ovs_datapath_cmd {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_DP_CMD_UNSPEC,
|
|
|
|
OVS_DP_CMD_NEW,
|
|
|
|
OVS_DP_CMD_DEL,
|
|
|
|
OVS_DP_CMD_GET,
|
|
|
|
OVS_DP_CMD_SET
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
|
|
|
enum ovs_datapath_attr {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_DP_ATTR_UNSPEC,
|
|
|
|
OVS_DP_ATTR_NAME,
|
|
|
|
OVS_DP_ATTR_UPCALL_PID,
|
|
|
|
OVS_DP_ATTR_STATS,
|
|
|
|
OVS_DP_ATTR_MEGAFLOW_STATS,
|
|
|
|
OVS_DP_ATTR_USER_FEATURES,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_DP_ATTR_PAD,
|
2015-01-28 19:07:51 +01:00
|
|
|
__OVS_DP_ATTR_MAX
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2016-08-24 21:15:38 +02:00
|
|
|
#define OVS_DP_ATTR_MAX (__OVS_DP_ATTR_MAX - 1)
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_dp_stats {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u64 n_hit;
|
|
|
|
__u64 n_missed;
|
2016-08-24 21:15:38 +02:00
|
|
|
__u64 n_lost;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u64 n_flows;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2014-07-10 00:33:25 +02:00
|
|
|
struct ovs_dp_megaflow_stats {
|
2016-08-24 21:15:38 +02:00
|
|
|
__u64 n_mask_hit;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u32 n_masks;
|
|
|
|
__u32 pad0;
|
|
|
|
__u64 pad1;
|
2016-08-24 21:15:38 +02:00
|
|
|
__u64 pad2;
|
2014-07-10 00:33:25 +02:00
|
|
|
};
|
|
|
|
struct ovs_vport_stats {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u64 rx_packets;
|
2016-08-24 21:15:38 +02:00
|
|
|
__u64 tx_packets;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u64 rx_bytes;
|
|
|
|
__u64 tx_bytes;
|
|
|
|
__u64 rx_errors;
|
2016-08-24 21:15:38 +02:00
|
|
|
__u64 tx_errors;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u64 rx_dropped;
|
|
|
|
__u64 tx_dropped;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2016-08-24 21:15:38 +02:00
|
|
|
#define OVS_DP_F_UNALIGNED (1 << 0)
|
2015-01-26 19:57:07 +01:00
|
|
|
#define OVS_DP_F_VPORT_PIDS (1 << 1)
|
2015-01-28 19:07:51 +01:00
|
|
|
#define OVSP_LOCAL ((__u32) 0)
|
2013-10-17 01:09:24 +02:00
|
|
|
#define OVS_PACKET_FAMILY "ovs_packet"
|
2016-08-24 21:15:38 +02:00
|
|
|
#define OVS_PACKET_VERSION 0x1
|
2015-01-26 19:57:07 +01:00
|
|
|
enum ovs_packet_cmd {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_PACKET_CMD_UNSPEC,
|
|
|
|
OVS_PACKET_CMD_MISS,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_PACKET_CMD_ACTION,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_PACKET_CMD_EXECUTE
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
|
|
|
enum ovs_packet_attr {
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_PACKET_ATTR_UNSPEC,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_PACKET_ATTR_PACKET,
|
|
|
|
OVS_PACKET_ATTR_KEY,
|
|
|
|
OVS_PACKET_ATTR_ACTIONS,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_PACKET_ATTR_USERDATA,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_PACKET_ATTR_EGRESS_TUN_KEY,
|
|
|
|
OVS_PACKET_ATTR_UNUSED1,
|
|
|
|
OVS_PACKET_ATTR_UNUSED2,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_PACKET_ATTR_PROBE,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_PACKET_ATTR_MRU,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_PACKET_ATTR_LEN,
|
2015-01-28 19:07:51 +01:00
|
|
|
__OVS_PACKET_ATTR_MAX
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2016-08-24 21:15:38 +02:00
|
|
|
#define OVS_PACKET_ATTR_MAX (__OVS_PACKET_ATTR_MAX - 1)
|
2016-02-04 22:16:38 +01:00
|
|
|
#define OVS_VPORT_FAMILY "ovs_vport"
|
2015-01-26 19:57:07 +01:00
|
|
|
#define OVS_VPORT_MCGROUP "ovs_vport"
|
2016-12-12 23:55:36 +01:00
|
|
|
#define OVS_VPORT_VERSION 0x1
|
2016-08-24 21:15:38 +02:00
|
|
|
enum ovs_vport_cmd {
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_VPORT_CMD_UNSPEC,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_VPORT_CMD_NEW,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_VPORT_CMD_DEL,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_VPORT_CMD_GET,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_VPORT_CMD_SET
|
2015-01-26 19:57:07 +01:00
|
|
|
};
|
2016-12-12 23:55:36 +01:00
|
|
|
enum ovs_vport_type {
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_VPORT_TYPE_UNSPEC,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_VPORT_TYPE_NETDEV,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_VPORT_TYPE_INTERNAL,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_VPORT_TYPE_GRE,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_VPORT_TYPE_VXLAN,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_VPORT_TYPE_GENEVE,
|
2015-01-28 19:07:51 +01:00
|
|
|
__OVS_VPORT_TYPE_MAX
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2016-08-24 21:15:38 +02:00
|
|
|
#define OVS_VPORT_TYPE_MAX (__OVS_VPORT_TYPE_MAX - 1)
|
2016-02-04 22:16:38 +01:00
|
|
|
enum ovs_vport_attr {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_VPORT_ATTR_UNSPEC,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_VPORT_ATTR_PORT_NO,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_VPORT_ATTR_TYPE,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_VPORT_ATTR_NAME,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_VPORT_ATTR_OPTIONS,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_VPORT_ATTR_UPCALL_PID,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_VPORT_ATTR_STATS,
|
|
|
|
OVS_VPORT_ATTR_PAD,
|
2016-02-04 22:16:38 +01:00
|
|
|
__OVS_VPORT_ATTR_MAX
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
#define OVS_VPORT_ATTR_MAX (__OVS_VPORT_ATTR_MAX - 1)
|
2014-07-10 00:33:25 +02:00
|
|
|
enum {
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_VXLAN_EXT_UNSPEC,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_VXLAN_EXT_GBP,
|
2016-02-04 22:16:38 +01:00
|
|
|
__OVS_VXLAN_EXT_MAX,
|
|
|
|
};
|
|
|
|
#define OVS_VXLAN_EXT_MAX (__OVS_VXLAN_EXT_MAX - 1)
|
2016-12-12 23:55:36 +01:00
|
|
|
enum {
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_TUNNEL_ATTR_UNSPEC,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_TUNNEL_ATTR_DST_PORT,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_TUNNEL_ATTR_EXTENSION,
|
2016-12-12 23:55:36 +01:00
|
|
|
__OVS_TUNNEL_ATTR_MAX
|
2014-07-10 00:33:25 +02:00
|
|
|
};
|
|
|
|
#define OVS_TUNNEL_ATTR_MAX (__OVS_TUNNEL_ATTR_MAX - 1)
|
|
|
|
#define OVS_FLOW_FAMILY "ovs_flow"
|
2016-12-12 23:55:36 +01:00
|
|
|
#define OVS_FLOW_MCGROUP "ovs_flow"
|
2013-10-17 01:09:24 +02:00
|
|
|
#define OVS_FLOW_VERSION 0x1
|
|
|
|
enum ovs_flow_cmd {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_FLOW_CMD_UNSPEC,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_FLOW_CMD_NEW,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_FLOW_CMD_DEL,
|
|
|
|
OVS_FLOW_CMD_GET,
|
|
|
|
OVS_FLOW_CMD_SET
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_flow_stats {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u64 n_packets;
|
|
|
|
__u64 n_bytes;
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
enum ovs_key_attr {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_KEY_ATTR_UNSPEC,
|
|
|
|
OVS_KEY_ATTR_ENCAP,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_KEY_ATTR_PRIORITY,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_KEY_ATTR_IN_PORT,
|
|
|
|
OVS_KEY_ATTR_ETHERNET,
|
|
|
|
OVS_KEY_ATTR_VLAN,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_KEY_ATTR_ETHERTYPE,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_KEY_ATTR_IPV4,
|
|
|
|
OVS_KEY_ATTR_IPV6,
|
|
|
|
OVS_KEY_ATTR_TCP,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_KEY_ATTR_UDP,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_KEY_ATTR_ICMP,
|
|
|
|
OVS_KEY_ATTR_ICMPV6,
|
|
|
|
OVS_KEY_ATTR_ARP,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_KEY_ATTR_ND,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_KEY_ATTR_SKB_MARK,
|
|
|
|
OVS_KEY_ATTR_TUNNEL,
|
|
|
|
OVS_KEY_ATTR_SCTP,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_KEY_ATTR_TCP_FLAGS,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_KEY_ATTR_DP_HASH,
|
|
|
|
OVS_KEY_ATTR_RECIRC_ID,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_KEY_ATTR_MPLS,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_KEY_ATTR_CT_STATE,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_KEY_ATTR_CT_ZONE,
|
|
|
|
OVS_KEY_ATTR_CT_MARK,
|
|
|
|
OVS_KEY_ATTR_CT_LABELS,
|
2016-12-12 23:55:36 +01:00
|
|
|
__OVS_KEY_ATTR_MAX
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2013-11-21 22:43:23 +01:00
|
|
|
#define OVS_KEY_ATTR_MAX (__OVS_KEY_ATTR_MAX - 1)
|
2016-02-04 22:16:38 +01:00
|
|
|
enum ovs_tunnel_key_attr {
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_ID,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_IPV4_SRC,
|
|
|
|
OVS_TUNNEL_KEY_ATTR_IPV4_DST,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_TOS,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_TTL,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_DONT_FRAGMENT,
|
|
|
|
OVS_TUNNEL_KEY_ATTR_CSUM,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_OAM,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_GENEVE_OPTS,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_TP_SRC,
|
|
|
|
OVS_TUNNEL_KEY_ATTR_TP_DST,
|
|
|
|
OVS_TUNNEL_KEY_ATTR_VXLAN_OPTS,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_IPV6_SRC,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_TUNNEL_KEY_ATTR_IPV6_DST,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_TUNNEL_KEY_ATTR_PAD,
|
2015-01-28 19:07:51 +01:00
|
|
|
__OVS_TUNNEL_KEY_ATTR_MAX
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2014-07-10 00:33:25 +02:00
|
|
|
#define OVS_TUNNEL_KEY_ATTR_MAX (__OVS_TUNNEL_KEY_ATTR_MAX - 1)
|
2013-10-17 01:09:24 +02:00
|
|
|
enum ovs_frag_type {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_FRAG_TYPE_NONE,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_FRAG_TYPE_FIRST,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_FRAG_TYPE_LATER,
|
|
|
|
__OVS_FRAG_TYPE_MAX
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2016-12-12 23:55:36 +01:00
|
|
|
#define OVS_FRAG_TYPE_MAX (__OVS_FRAG_TYPE_MAX - 1)
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_key_ethernet {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 eth_src[ETH_ALEN];
|
|
|
|
__u8 eth_dst[ETH_ALEN];
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
struct ovs_key_mpls {
|
|
|
|
__be32 mpls_lse;
|
2014-07-10 00:33:25 +02:00
|
|
|
};
|
2016-12-12 23:55:36 +01:00
|
|
|
struct ovs_key_ipv4 {
|
2015-01-28 19:07:51 +01:00
|
|
|
__be32 ipv4_src;
|
|
|
|
__be32 ipv4_dst;
|
|
|
|
__u8 ipv4_proto;
|
2016-12-12 23:55:36 +01:00
|
|
|
__u8 ipv4_tos;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 ipv4_ttl;
|
|
|
|
__u8 ipv4_frag;
|
2014-07-10 00:33:25 +02:00
|
|
|
};
|
2016-12-12 23:55:36 +01:00
|
|
|
struct ovs_key_ipv6 {
|
2015-01-28 19:07:51 +01:00
|
|
|
__be32 ipv6_src[4];
|
|
|
|
__be32 ipv6_dst[4];
|
|
|
|
__be32 ipv6_label;
|
2016-12-12 23:55:36 +01:00
|
|
|
__u8 ipv6_proto;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 ipv6_tclass;
|
|
|
|
__u8 ipv6_hlimit;
|
|
|
|
__u8 ipv6_frag;
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_key_tcp {
|
2015-01-28 19:07:51 +01:00
|
|
|
__be16 tcp_src;
|
|
|
|
__be16 tcp_dst;
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_key_udp {
|
2015-01-28 19:07:51 +01:00
|
|
|
__be16 udp_src;
|
|
|
|
__be16 udp_dst;
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2014-07-10 00:33:25 +02:00
|
|
|
struct ovs_key_sctp {
|
2015-01-28 19:07:51 +01:00
|
|
|
__be16 sctp_src;
|
|
|
|
__be16 sctp_dst;
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_key_icmp {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 icmp_type;
|
|
|
|
__u8 icmp_code;
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_key_icmpv6 {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 icmpv6_type;
|
|
|
|
__u8 icmpv6_code;
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_key_arp {
|
2015-01-28 19:07:51 +01:00
|
|
|
__be32 arp_sip;
|
|
|
|
__be32 arp_tip;
|
2016-12-12 23:55:36 +01:00
|
|
|
__be16 arp_op;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 arp_sha[ETH_ALEN];
|
|
|
|
__u8 arp_tha[ETH_ALEN];
|
2014-07-10 00:33:25 +02:00
|
|
|
};
|
2016-12-12 23:55:36 +01:00
|
|
|
struct ovs_key_nd {
|
2016-02-04 22:16:38 +01:00
|
|
|
__be32 nd_target[4];
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 nd_sll[ETH_ALEN];
|
|
|
|
__u8 nd_tll[ETH_ALEN];
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
#define OVS_CT_LABELS_LEN 16
|
|
|
|
struct ovs_key_ct_labels {
|
|
|
|
__u8 ct_labels[OVS_CT_LABELS_LEN];
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
#define OVS_CS_F_NEW 0x01
|
|
|
|
#define OVS_CS_F_ESTABLISHED 0x02
|
|
|
|
#define OVS_CS_F_RELATED 0x04
|
2016-12-12 23:55:36 +01:00
|
|
|
#define OVS_CS_F_REPLY_DIR 0x08
|
2016-02-04 22:16:38 +01:00
|
|
|
#define OVS_CS_F_INVALID 0x10
|
|
|
|
#define OVS_CS_F_TRACKED 0x20
|
2016-08-24 21:15:38 +02:00
|
|
|
#define OVS_CS_F_SRC_NAT 0x40
|
2016-12-12 23:55:36 +01:00
|
|
|
#define OVS_CS_F_DST_NAT 0x80
|
2016-08-24 21:15:38 +02:00
|
|
|
#define OVS_CS_F_NAT_MASK (OVS_CS_F_SRC_NAT | OVS_CS_F_DST_NAT)
|
|
|
|
enum ovs_flow_attr {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_FLOW_ATTR_UNSPEC,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_FLOW_ATTR_KEY,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_FLOW_ATTR_ACTIONS,
|
|
|
|
OVS_FLOW_ATTR_STATS,
|
|
|
|
OVS_FLOW_ATTR_TCP_FLAGS,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_FLOW_ATTR_USED,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_FLOW_ATTR_CLEAR,
|
|
|
|
OVS_FLOW_ATTR_MASK,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_FLOW_ATTR_PROBE,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_FLOW_ATTR_UFID,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_FLOW_ATTR_UFID_FLAGS,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_FLOW_ATTR_PAD,
|
2015-01-28 19:07:51 +01:00
|
|
|
__OVS_FLOW_ATTR_MAX
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
#define OVS_FLOW_ATTR_MAX (__OVS_FLOW_ATTR_MAX - 1)
|
2016-02-04 22:16:38 +01:00
|
|
|
#define OVS_UFID_F_OMIT_KEY (1 << 0)
|
|
|
|
#define OVS_UFID_F_OMIT_MASK (1 << 1)
|
2016-12-12 23:55:36 +01:00
|
|
|
#define OVS_UFID_F_OMIT_ACTIONS (1 << 2)
|
2013-10-17 01:09:24 +02:00
|
|
|
enum ovs_sample_attr {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_SAMPLE_ATTR_UNSPEC,
|
|
|
|
OVS_SAMPLE_ATTR_PROBABILITY,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_SAMPLE_ATTR_ACTIONS,
|
2015-01-28 19:07:51 +01:00
|
|
|
__OVS_SAMPLE_ATTR_MAX,
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
|
|
|
#define OVS_SAMPLE_ATTR_MAX (__OVS_SAMPLE_ATTR_MAX - 1)
|
2016-12-12 23:55:36 +01:00
|
|
|
enum ovs_userspace_attr {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_USERSPACE_ATTR_UNSPEC,
|
|
|
|
OVS_USERSPACE_ATTR_PID,
|
|
|
|
OVS_USERSPACE_ATTR_USERDATA,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_USERSPACE_ATTR_EGRESS_TUN_PORT,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_USERSPACE_ATTR_ACTIONS,
|
|
|
|
__OVS_USERSPACE_ATTR_MAX
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
|
|
|
#define OVS_USERSPACE_ATTR_MAX (__OVS_USERSPACE_ATTR_MAX - 1)
|
2016-12-12 23:55:36 +01:00
|
|
|
struct ovs_action_trunc {
|
|
|
|
__u32 max_len;
|
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
struct ovs_action_push_mpls {
|
|
|
|
__be32 mpls_lse;
|
|
|
|
__be16 mpls_ethertype;
|
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ovs_action_push_vlan {
|
2015-01-28 19:07:51 +01:00
|
|
|
__be16 vlan_tpid;
|
|
|
|
__be16 vlan_tci;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2015-01-26 19:57:07 +01:00
|
|
|
enum ovs_hash_alg {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_HASH_ALG_L4,
|
2015-01-26 19:57:07 +01:00
|
|
|
};
|
|
|
|
struct ovs_action_hash {
|
2016-12-12 23:55:36 +01:00
|
|
|
__u32 hash_alg;
|
|
|
|
__u32 hash_basis;
|
2016-02-04 22:16:38 +01:00
|
|
|
};
|
|
|
|
enum ovs_ct_attr {
|
|
|
|
OVS_CT_ATTR_UNSPEC,
|
|
|
|
OVS_CT_ATTR_COMMIT,
|
|
|
|
OVS_CT_ATTR_ZONE,
|
|
|
|
OVS_CT_ATTR_MARK,
|
|
|
|
OVS_CT_ATTR_LABELS,
|
|
|
|
OVS_CT_ATTR_HELPER,
|
2016-08-24 21:15:38 +02:00
|
|
|
OVS_CT_ATTR_NAT,
|
2016-02-04 22:16:38 +01:00
|
|
|
__OVS_CT_ATTR_MAX
|
2015-01-26 19:57:07 +01:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
#define OVS_CT_ATTR_MAX (__OVS_CT_ATTR_MAX - 1)
|
2016-08-24 21:15:38 +02:00
|
|
|
enum ovs_nat_attr {
|
|
|
|
OVS_NAT_ATTR_UNSPEC,
|
|
|
|
OVS_NAT_ATTR_SRC,
|
|
|
|
OVS_NAT_ATTR_DST,
|
|
|
|
OVS_NAT_ATTR_IP_MIN,
|
|
|
|
OVS_NAT_ATTR_IP_MAX,
|
|
|
|
OVS_NAT_ATTR_PROTO_MIN,
|
|
|
|
OVS_NAT_ATTR_PROTO_MAX,
|
|
|
|
OVS_NAT_ATTR_PERSISTENT,
|
|
|
|
OVS_NAT_ATTR_PROTO_HASH,
|
|
|
|
OVS_NAT_ATTR_PROTO_RANDOM,
|
|
|
|
__OVS_NAT_ATTR_MAX,
|
|
|
|
};
|
|
|
|
#define OVS_NAT_ATTR_MAX (__OVS_NAT_ATTR_MAX - 1)
|
2017-02-21 21:35:09 +01:00
|
|
|
struct ovs_action_push_eth {
|
|
|
|
struct ovs_key_ethernet addresses;
|
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
enum ovs_action_attr {
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_ACTION_ATTR_UNSPEC,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_ACTION_ATTR_OUTPUT,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_ACTION_ATTR_USERSPACE,
|
|
|
|
OVS_ACTION_ATTR_SET,
|
|
|
|
OVS_ACTION_ATTR_PUSH_VLAN,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_ACTION_ATTR_POP_VLAN,
|
2015-01-28 19:07:51 +01:00
|
|
|
OVS_ACTION_ATTR_SAMPLE,
|
|
|
|
OVS_ACTION_ATTR_RECIRC,
|
|
|
|
OVS_ACTION_ATTR_HASH,
|
2016-02-04 22:16:38 +01:00
|
|
|
OVS_ACTION_ATTR_PUSH_MPLS,
|
|
|
|
OVS_ACTION_ATTR_POP_MPLS,
|
|
|
|
OVS_ACTION_ATTR_SET_MASKED,
|
|
|
|
OVS_ACTION_ATTR_CT,
|
2016-12-12 23:55:36 +01:00
|
|
|
OVS_ACTION_ATTR_TRUNC,
|
2017-02-21 21:35:09 +01:00
|
|
|
OVS_ACTION_ATTR_PUSH_ETH,
|
|
|
|
OVS_ACTION_ATTR_POP_ETH,
|
|
|
|
__OVS_ACTION_ATTR_MAX,
|
2016-12-12 23:55:36 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
#define OVS_ACTION_ATTR_MAX (__OVS_ACTION_ATTR_MAX - 1)
|
|
|
|
#endif
|