X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fopenvswitch%2Fdatapath-protocol.h;h=04423d941aa8e697d2a2e44469741076bea265fd;hb=5764c0ed32dadd38308e82ce7d7a7f0b6c011e81;hp=951664a45207a42ae84e9eeb302756a2433fd128;hpb=06052e0c891c4ea0fac9164a4ff2555a1eb38e69;p=openvswitch diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h index 951664a4..04423d94 100644 --- a/include/openvswitch/datapath-protocol.h +++ b/include/openvswitch/datapath-protocol.h @@ -37,7 +37,7 @@ * ---------------------------------------------------------------------- */ -/* Protocol between secchan and datapath. */ +/* Protocol between userspace and kernel datapath. */ #ifndef OPENVSWITCH_DATAPATH_PROTOCOL_H #define OPENVSWITCH_DATAPATH_PROTOCOL_H 1 @@ -70,14 +70,12 @@ #define ODP_PORT_GROUP_GET _IOWR('O', 12, struct odp_port_group) #define ODP_FLOW_GET _IOWR('O', 13, struct odp_flow) -#define ODP_FLOW_GET_MULTIPLE _IOWR('O', 14, struct odp_flowvec) +#define ODP_FLOW_PUT _IOWR('O', 14, struct odp_flow) #define ODP_FLOW_LIST _IOWR('O', 15, struct odp_flowvec) - #define ODP_FLOW_FLUSH _IO('O', 16) -#define ODP_FLOW_PUT _IOWR('O', 17, struct odp_flow) -#define ODP_FLOW_DEL _IOWR('O', 18, struct odp_flow) +#define ODP_FLOW_DEL _IOWR('O', 17, struct odp_flow) -#define ODP_EXECUTE _IOR('O', 19, struct odp_execute) +#define ODP_EXECUTE _IOR('O', 18, struct odp_execute) struct odp_stats { /* Flows. */ @@ -149,7 +147,7 @@ struct odp_flow_stats { __u32 used_nsec; __u8 tcp_flags; __u8 ip_tos; - __u16 reserved; + __u16 error; /* Used by ODP_FLOW_GET. */ }; struct odp_flow_key { @@ -162,7 +160,8 @@ struct odp_flow_key { __be16 tp_dst; /* TCP/UDP destination port. */ __u8 dl_src[ETH_ALEN]; /* Ethernet source address. */ __u8 dl_dst[ETH_ALEN]; /* Ethernet destination address. */ - __u8 nw_proto; /* IP protocol. */ + __u8 nw_proto; /* IP protocol or lower 8 bits of + ARP opcode. */ __u8 reserved; /* Pad to 64 bits. */ };