datapath: Hash and compare only the part of sw_flow_key actually used.
[openvswitch] / lib / ovsdb-idl.c
index e1b53f4eb3730de0aaf3ec3f1153722d20847d17..fd15ea96f3f13103431ecdfeeda55720ca26e1d9 100644 (file)
@@ -1108,6 +1108,15 @@ ovsdb_idl_get(const struct ovsdb_idl_row *row,
 
     return ovsdb_idl_read(row, column);
 }
+
+/* Returns false if 'row' was obtained from the IDL, true if it was initialized
+ * to all-zero-bits by some other entity.  If 'row' was set up some other way
+ * then the return value is indeterminate. */
+bool
+ovsdb_idl_row_is_synthetic(const struct ovsdb_idl_row *row)
+{
+    return row->table == NULL;
+}
 \f
 /* Transactions. */