Signed-off-by: Joe Stringer <joestrin...@nicira.com>
---
 lib/odp-util.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/odp-util.c b/lib/odp-util.c
index 962b84b..e402888 100644
--- a/lib/odp-util.c
+++ b/lib/odp-util.c
@@ -2714,6 +2714,17 @@ static int
 parse_odp_key_mask_attr(const char *s, const struct simap *port_names,
                         struct ofpbuf *key, struct ofpbuf *mask)
 {
+    if (!strncmp(s, "ufid:", 5)) {
+        const char *start = s;
+
+        /* Skip UFID. */
+        s += 5;
+        s += strspn(s, "0123456789abcdef");
+        s += strspn(s, delimiters);
+
+        return s - start;
+    }
+
     SCAN_SINGLE("skb_priority(", uint32_t, u32, OVS_KEY_ATTR_PRIORITY);
     SCAN_SINGLE("skb_mark(", uint32_t, u32, OVS_KEY_ATTR_SKB_MARK);
     SCAN_SINGLE_FULLY_MASKED("recirc_id(", uint32_t, u32,
-- 
2.1.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to