Skip to content

Commit

Permalink
ofproto: Don't report that group chaining is supported.
Browse files Browse the repository at this point in the history
Group chaining hasn't been supported, so we shouldn't report that it is.
(This is a good demonstration of why I don't like feature bits like this.
It's too easy for even well-intentioned implementers to get them wrong.)

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
  • Loading branch information
blp committed Jun 22, 2015
1 parent e8cb1bf commit 5ea61af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ofproto/ofproto.c
Expand Up @@ -537,8 +537,7 @@ ofproto_create(const char *datapath_name, const char *datapath_type,
hmap_init(&ofproto->groups);
ovs_mutex_unlock(&ofproto_mutex);
ofproto->ogf.types = 0xf;
ofproto->ogf.capabilities = OFPGFC_CHAINING | OFPGFC_SELECT_LIVENESS |
OFPGFC_SELECT_WEIGHT;
ofproto->ogf.capabilities = OFPGFC_SELECT_LIVENESS | OFPGFC_SELECT_WEIGHT;
ofproto->ogf.max_groups[OFPGT11_ALL] = OFPG_MAX;
ofproto->ogf.max_groups[OFPGT11_SELECT] = OFPG_MAX;
ofproto->ogf.max_groups[OFPGT11_INDIRECT] = OFPG_MAX;
Expand Down
2 changes: 1 addition & 1 deletion tests/ofproto.at
Expand Up @@ -398,7 +398,7 @@ AT_CHECK([STRIP_XIDS stdout], [0], [dnl
OFPST_GROUP_FEATURES reply (OF1.2):
Group table:
Types: 0xf
Capabilities: 0x7
Capabilities: 0x3
All group :
max_groups = 0xffffff00 actions=0x03ff9801
Select group :
Expand Down

0 comments on commit 5ea61af

Please sign in to comment.