aboutsummaryrefslogtreecommitdiff
path: root/lib/nx-match.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-09-12 12:11:50 -0700
committerBen Pfaff <blp@nicira.com>2011-09-13 11:46:09 -0700
commit6a885fd0589fdfa3b5d05ca3ff4af52b085a1816 (patch)
tree0e08601c2832a04cdecc06049e36fc60d2f85d88 /lib/nx-match.h
parent1b9d6420b95f4d0ed78e337a43d1be88b571d5fb (diff)
meta-flow: New library for working with fields by id.
OVS already has a fairly good set of functions for working with fields that are known at compile time, but support for working with fields that are known only at runtime is fairly limited (and fairly unneeded). However, with NXM identifiers becoming more and more widely used throughout Nicira extensions, it's becoming corresponding more and more common to need to refer to fields at runtime. This new library represents a first attempt at a systematic approach for doing so.
Diffstat (limited to 'lib/nx-match.h')
-rw-r--r--lib/nx-match.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nx-match.h b/lib/nx-match.h
index 04da2398..64e22c9b 100644
--- a/lib/nx-match.h
+++ b/lib/nx-match.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 Nicira Networks.
+ * Copyright (c) 2010, 2011 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -64,6 +64,7 @@ void nxm_reg_load(ovs_be32 dst, ovs_be16 ofs_nbits, uint64_t src_data,
int nxm_field_bytes(uint32_t header);
int nxm_field_bits(uint32_t header);
+const struct mf_field *nxm_field_to_mf_field(uint32_t header);
const char *nxm_parse_field_bits(const char *s,
uint32_t *headerp, int *ofsp, int *n_bitsp);