ovsdb: Always set *dbp to null on failure in ovsdb_file_open__().
[openvswitch] / lib / packets.h
index 7651495ee8bf75db40b2dda2899dd5fbaa6d0e09..7ea462bcf77ae19e68e2961c5aeb7e5aad5d19b3 100644 (file)
@@ -190,7 +190,10 @@ struct llc_snap_header {
 BUILD_ASSERT_DECL(LLC_SNAP_HEADER_LEN == sizeof(struct llc_snap_header));
 
 #define VLAN_VID_MASK 0x0fff
+#define VLAN_VID_SHIFT 0
+
 #define VLAN_PCP_MASK 0xe000
+#define VLAN_PCP_SHIFT 13
 
 #define VLAN_HEADER_LEN 4
 struct vlan_header {