[ovs-dev] [PATCH 2/2] [RFC] Add OXM data to mf_fields
Simon Horman
horms at verge.net.au
Tue Apr 24 05:39:31 UTC 2012
On Tue, Apr 24, 2012 at 10:32:55AM +0900, Simon Horman wrote:
> Add oxm_name and oxm_header elements to struct mf_field
> and populate those entries for fields that are present
> in both NXM and the OXM basic class.
>
> This implementation was suggested by Ben Pfaff.
>
> This does not address any possible differences in the NXM and
> OXM basic class fields, for instance different maskability.
> That may be addressed later as needed.
>
> Signed-off-by: Simon Horman <horms at verge.net.au>
> ---
> lib/meta-flow.c | 36 +++++++++++++++++++++++++++++++++---
> lib/meta-flow.h | 9 +++++++++
> 2 files changed, 42 insertions(+), 3 deletions(-)
>
> diff --git a/lib/meta-flow.c b/lib/meta-flow.c
> index 84ba88b..1a85f00 100644
> --- a/lib/meta-flow.c
> +++ b/lib/meta-flow.c
> @@ -62,6 +62,7 @@ static const struct mf_field mf_fields[MFF_N_IDS] = {
> MFP_NONE,
> false,
> NXM_OF_IN_PORT, "NXM_OF_IN_PORT",
> + OXM_OF_IN_PHY_PORT, "OXM_OF_IN_PHY_PORT",
Sorry, the above line should be:
OXM_OF_IN_PORT, "OXM_OF_IN_PORT",
I will repost.
More information about the dev
mailing list