datapath: Fix validation of ODPAT_OUTPUT actions.
authorBen Pfaff <blp@nicira.com>
Tue, 18 Jan 2011 00:58:35 +0000 (16:58 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 18 Jan 2011 01:08:10 +0000 (17:08 -0800)
commit3b1fc5f33a533bc8399a987e2220359931cebe5c
tree011957ea08cffbcf6826f3806a74a27a8fdecb1e
parent84c17d988c287619e356921f60e4033fa80cd9cd
datapath: Fix validation of ODPAT_OUTPUT actions.

The missing "break" here meant that an attempt to output to any port
number that happened to include the wrong bit would fail.

Problem introduced by commit cdee00fd635 (datapath: Replace "struct
odp_action" by Netlink attributes.)

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jess@nicira.com>
Reported-by: Michael Mao <mmao@nicira.com>
Bug #4385.
datapath/datapath.c