X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto.c;fp=ofproto%2Fofproto.c;h=677da8c92792bc7df2eac96931d275583377fcb3;hb=6b83a3c5c37a07118681a3738ec776a7d8485a3f;hp=80336de90b997a5fe9d64bde4636cc55c7309989;hpb=cb25142c50cd3a92e779ca1ce6f61380ffc75927;p=sliver-openvswitch.git diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 80336de90..677da8c92 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -5786,12 +5786,12 @@ handle_group_mod(struct ofconn *ofconn, const struct ofp_header *oh) } } -enum ofp_table_config -table_get_config(const struct ofproto *ofproto, uint8_t table_id) +enum ofproto_table_config +ofproto_table_get_config(const struct ofproto *ofproto, uint8_t table_id) { unsigned int value; atomic_read(&ofproto->tables[table_id].config, &value); - return (enum ofp_table_config)value; + return (enum ofproto_table_config)value; } static enum ofperr @@ -6678,7 +6678,7 @@ oftable_init(struct oftable *table) memset(table, 0, sizeof *table); classifier_init(&table->cls, flow_segment_u32s); table->max_flows = UINT_MAX; - atomic_init(&table->config, (unsigned int)OFPTC11_TABLE_MISS_CONTROLLER); + atomic_init(&table->config, (unsigned int)OFPROTO_TABLE_MISS_DEFAULT); } /* Destroys 'table', including its classifier and eviction groups.