git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Support OF version-specific table-miss behaviours
[sliver-openvswitch.git]
/
ofproto
/
ofproto.c
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
80336de
..
677da8c
100644
(file)
--- 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 ofp
roto
_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);
{
unsigned int value;
atomic_read(&ofproto->tables[table_id].config, &value);
- return (enum ofp_table_config)value;
+ return (enum ofp
roto
_table_config)value;
}
static enum ofperr
}
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;
memset(table, 0, sizeof *table);
classifier_init(&table->cls, flow_segment_u32s);
table->max_flows = UINT_MAX;
- atomic_init(&table->config, (unsigned int)OFP
TC11_TABLE_MISS_CONTROLLER
);
+ atomic_init(&table->config, (unsigned int)OFP
ROTO_TABLE_MISS_DEFAULT
);
}
/* Destroys 'table', including its classifier and eviction groups.
}
/* Destroys 'table', including its classifier and eviction groups.