X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ofproto%2Fofproto.c;h=8d22c50f75bcd6e2eb951cda3b77e7d260a18bf9;hb=13521ff59379b6a7a91be18ce8d903cd698694b3;hp=4d4c23201b42e4904b6fe3ca333c3bda22b422e7;hpb=073e2a6f2383cf7c17f78b8fa29e6e5293f60ba0;p=sliver-openvswitch.git diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 4d4c23201..8d22c50f7 100644 --- 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) {