diff options
author | Ben Pfaff <blp@nicira.com> | 2011-01-20 15:29:00 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-01-20 15:29:00 -0800 |
commit | 8368c090cab8b604818cc3db321f1ed8531f27a4 (patch) | |
tree | 54d064f1c0e2ce7a1708af851a17766d4c91f635 /lib/classifier.h | |
parent | 11e6a15bdf78f83e7c10e0f3737c159f92ed3897 (diff) |
Implement arbitrary bitwise masks for tun_id field.
This was documented to work, but not implemented.
Requested-by: Pankaj Thakkar <thakkar@nicira.com>
Diffstat (limited to 'lib/classifier.h')
-rw-r--r-- | lib/classifier.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/classifier.h b/lib/classifier.h index 453417da..7b347e7b 100644 --- a/lib/classifier.h +++ b/lib/classifier.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 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. @@ -78,6 +78,8 @@ void cls_rule_set_reg(struct cls_rule *, unsigned int reg_idx, uint32_t value); void cls_rule_set_reg_masked(struct cls_rule *, unsigned int reg_idx, uint32_t value, uint32_t mask); void cls_rule_set_tun_id(struct cls_rule *, ovs_be64 tun_id); +void cls_rule_set_tun_id_masked(struct cls_rule *, + ovs_be64 tun_id, ovs_be64 mask); void cls_rule_set_in_port(struct cls_rule *, uint16_t odp_port); void cls_rule_set_dl_type(struct cls_rule *, ovs_be16); void cls_rule_set_dl_src(struct cls_rule *, const uint8_t[6]); |