datapath: Add get_vport_protected().
[openvswitch] / lib / nx-match.h
index d0e1c653e48e7f3296acf545b6d2ad8b4b2a8e46..bd4fea27e092b79478d7a50468fe538a2a5865b0 100644 (file)
@@ -53,6 +53,13 @@ int nxm_check_reg_load(const struct nx_action_reg_load *, const struct flow *);
 void nxm_execute_reg_move(const struct nx_action_reg_move *, struct flow *);
 void nxm_execute_reg_load(const struct nx_action_reg_load *, struct flow *);
 
+int nxm_field_bytes(uint32_t header);
+int nxm_field_bits(uint32_t header);
+
+const char *nxm_parse_field_bits(const char *s,
+                                 uint32_t *headerp, int *ofsp, int *n_bitsp);
+void nxm_format_field_bits(struct ds *, uint32_t header, int ofs, int n_bits);
+
 /* Dealing with the 'ofs_nbits' members of struct nx_action_reg_load and struct
  * nx_action_multipath. */