bond: Always use L4 hash for stable bonds.
[openvswitch] / lib / vlan-bitmap.h
index eca42fea9cf01c63ff730134b19265bc9c30fff0..6d74d4008b30c2a115b90d7b5f168a2bc444ee3f 100644 (file)
@@ -37,4 +37,11 @@ vlan_bitmap_contains(const unsigned long *vlans, uint16_t vid)
     return !vlans || bitmap_is_set(vlans, vid);
 }
 
+/* Returns a new copy of 'vlans'. */
+static inline unsigned long *
+vlan_bitmap_clone(const unsigned long *vlans)
+{
+    return vlans ? bitmap_clone(vlans, 4096) : NULL;
+}
+
 #endif /* lib/vlan-bitmap.h */