[ovs-dev] [bond megaflow v2 2/5] lib/flow: add dp_hash and recirc_id to struct flow

Simon Horman horms at verge.net.au
Wed Mar 19 06:52:42 UTC 2014


On Tue, Mar 11, 2014 at 04:56:18PM -0700, Andy Zhou wrote:
> Signed-off-by: Andy Zhou <azhou at nicira.com>
> 
> ---
> v1->v2:  No major changes

[snip]

> diff --git a/lib/flow.h b/lib/flow.h
> index 8165bcf..8e1349d 100644
> --- a/lib/flow.h
> +++ b/lib/flow.h
> @@ -37,7 +37,7 @@ struct pkt_metadata;
>  /* This sequence number should be incremented whenever anything involving flows
>   * or the wildcarding of flows changes.  This will cause build assertion
>   * failures in places which likely need to be updated. */
> -#define FLOW_WC_SEQ 24
> +#define FLOW_WC_SEQ 25
>  
>  #define FLOW_N_REGS 8
>  BUILD_ASSERT_DECL(FLOW_N_REGS <= NXM_NX_MAX_REGS);
> @@ -97,6 +97,11 @@ union flow_in_port {
>   * be looked at.  This enables better wildcarding for datapath flows.
>   */
>  struct flow {
> +    /* Recirculation */
> +    uint32_t dp_hash;           /* Datapth computed hash value. The exact

s/Datapth/Datapath

> +                                   computation is opaque to the user space.*/
> +    uint32_t recirc_id;         /* Must be exact match. */
> +
>      /* L1 */
>      struct flow_tnl tunnel;     /* Encapsulating tunnel parameters. */
>      ovs_be64 metadata;          /* OpenFlow Metadata. */

[snip]



More information about the dev mailing list