Re: [ovs-dev] [PATCH 4/4] OXM: Add encoding of encode VLAN VID and VLAN PCP

2012-07-04 Thread Ben Pfaff
On Wed, Jul 04, 2012 at 05:50:44PM +0900, Simon Horman wrote: > +ovs_be16 vid_and_cfi = flow->vlan_tci & htons(VLAN_PCP_MASK | > VLAN_CFI); This cannot be right, the variable name says VID but the expression says PCP. ___ dev mailing list dev@op

[ovs-dev] [PATCH 4/4] OXM: Add encoding of encode VLAN VID and VLAN PCP

2012-07-04 Thread Simon Horman
Signed-off-by: Simon Horman --- lib/nx-match.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/lib/nx-match.c b/lib/nx-match.c index f7f3c88..dcdd0b4 100644 --- a/lib/nx-match.c +++ b/lib/nx-match.c @@ -516,10 +516,30 @@ nx_put_match(struct ofpbuf