ofproto-dpif-xlate: Correct check for MPLS LSE
authorSimon Horman <horms@verge.net.au>
Tue, 7 Jan 2014 04:48:08 +0000 (13:48 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 7 Jan 2014 17:36:52 +0000 (09:36 -0800)
commitf8b63eed48caea43506ea44c6f2d446e90b2578c
tree0cb6e4c9ddc93d719a7c0f55136c43c503628f5f
parentc4e976db1343aac88dec4b457bdf5d0277f247e6
ofproto-dpif-xlate: Correct check for MPLS LSE

zero is a valid MPLS LSE so it is not valid check against
that value for MPLS LSE presence. Instead, check against
the flow's dl_type which should be an MPLS type if an LSE is present.

This problem appears to have been introduced by
b2dd70be133bf86c ("Native Set-Field action.").

Cc: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif-xlate.c