ofproto-dpif: Remove duplicate VLAN logic.
authorBen Pfaff <blp@nicira.com>
Fri, 11 Nov 2011 23:25:49 +0000 (15:25 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Nov 2011 18:11:53 +0000 (10:11 -0800)
commit5da5ec37e45c0287ebe7e52278dfed3a485b6f2a
tree262a2c07752996c08e721ffc31fd20a78b866675
parent653fe3a3f50c74065cb5fa86dbe96b4884ece091
ofproto-dpif: Remove duplicate VLAN logic.

flow_get_vlan() duplicated the logic in input_vid_to_vlan() in an
unclear way and added some logic of its own to detect invalid
input VLANs.  This commit eliminates the duplication and makes the
code easier to understand.
ofproto/ofproto-dpif.c