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: Allow ->rule_choose_table() to be NULL regardless of table count.
[sliver-openvswitch.git]
/
ofproto
/
ofproto.c
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index
4d4c232
..
8d22c50
100644
(file)
--- a/
ofproto/ofproto.c
+++ b/
ofproto/ofproto.c
@@
-2182,7
+2182,7
@@
add_flow(struct ofproto *ofproto, struct ofconn *ofconn, struct flow_mod *fm,
/* Pick table. */
if (fm->table_id == 0xff) {
uint8_t table_id;
- if (ofproto->
n_tables > 1
) {
+ if (ofproto->
ofproto_class->rule_choose_table
) {
error = ofproto->ofproto_class->rule_choose_table(ofproto, &fm->cr,
&table_id);
if (error) {