X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fopenvswitch%2Fdatapath-protocol.h;h=0078874ff891a93cf075fede0399d7ee4ab0f935;hb=693c4a01124ec5ad9253f8cfcfd99075a9d637f6;hp=d744b9f4d08587cb4e3dd10115d4a81f825ddf4b;hpb=1ba530f4b2cd5476a224dbbf87a3089a831a24b6;p=sliver-openvswitch.git diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h index d744b9f4d..0078874ff 100644 --- a/include/openvswitch/datapath-protocol.h +++ b/include/openvswitch/datapath-protocol.h @@ -88,7 +88,7 @@ #define ODP_VPORT_SET _IOR('O', 22, struct odp_vport) #define ODP_VPORT_DUMP _IOWR('O', 10, struct odp_vport) -#define ODP_FLOW_GET _IOWR('O', 13, struct odp_flowvec) +#define ODP_FLOW_GET _IOWR('O', 13, struct odp_flow) #define ODP_FLOW_PUT _IOWR('O', 14, struct odp_flow) #define ODP_FLOW_DUMP _IOWR('O', 15, struct odp_flow_dump) #define ODP_FLOW_FLUSH _IO('O', 16) @@ -100,11 +100,6 @@ #define ODP_GET_SFLOW_PROBABILITY _IOW('O', 20, int) struct odp_stats { - /* Ports. */ - uint32_t n_ports; /* Current number of ports. */ - uint32_t max_ports; /* Maximum supported number of ports. */ - - /* Lookups. */ uint64_t n_frags; /* Number of dropped IP fragments. */ uint64_t n_hit; /* Number of flow table matches. */ uint64_t n_missed; /* Number of flow table misses. */ @@ -219,7 +214,6 @@ struct odp_flow_stats { uint32_t used_nsec; uint8_t tcp_flags; uint8_t reserved; - uint16_t error; /* Used by ODP_FLOW_GET. */ }; enum odp_key_type { @@ -277,17 +271,12 @@ struct odp_key_arp { ovs_be16 arp_op; }; -/* Flags for ODP_FLOW. */ -#define ODPFF_ZERO_TCP_FLAGS (1 << 0) /* Zero the TCP flags. */ -#define ODPFF_EOF (1 << 1) /* ODP_FLOW_DUMP: end of flow table. */ - struct odp_flow { struct odp_flow_stats stats; struct nlattr *key; uint32_t key_len; struct nlattr *actions; uint32_t actions_len; - uint32_t flags; }; /* Flags for ODP_FLOW_PUT. */ @@ -301,17 +290,12 @@ struct odp_flow_put { uint32_t flags; }; -struct odp_flowvec { - struct odp_flow *flows; - uint32_t n_flows; -}; - /* ODP_FLOW_DUMP argument. * * This is used to iterate through the flow table flow-by-flow. Each - * ODP_FLOW_DUMP call either stores a new odp_flow into 'flow' or stores - * ODPFF_EOF into flow->flags to indicate that the end of the table has been - * reaches, and updates 'state' in-place. + * ODP_FLOW_DUMP call either stores a new odp_flow into 'flow' or stores 0 into + * flow->key_len to indicate that the end of the table has been reached, and + * updates 'state' in-place. * * Before the first call, zero 'state'. The format of 'state' is otherwise * unspecified.