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)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 9 Apr 2014 20:03:18 +0000 (13:03 -0700)
commit211f364ae8449634369b2e9e65df02fb74081f7b
tree27aa33a89580ad4d86885d03ab64a71bc705dfb4
parent276b850335ae736957ad38d3eec8463185b1247d
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