ofproto-dpif: Fix check for 802.1Q header in commit_odp_actions().
authorBen Pfaff <blp@nicira.com>
Mon, 12 Sep 2011 17:49:55 +0000 (10:49 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 12 Sep 2011 19:16:21 +0000 (12:16 -0700)
commit2f2df2f4dafada02f022c2900f7a17628af7a0d1
treebf373317bb31d949da56a1abab9a39c3af701bf7
parentc87112ca1a90fe77cbba6c340ef7e30815b537f7
ofproto-dpif: Fix check for 802.1Q header in commit_odp_actions().

The 'vlan_tci' member of struct flow has value 0, not OFP_VLAN_NONE, when
there is no 802.1Q header.

Fixes a problem introduced in commit d9065a90b6b "datapath: VLAN actions
should use push/pop semantics."

Found by sparse.

CC: Pravin Shelar <pshelar@nicira.com>
ofproto/ofproto-dpif.c