ofproto: Fix number of reported tables in OFPT_FEATURES_REPLY message.
authorBen Pfaff <blp@nicira.com>
Wed, 27 Apr 2011 18:29:50 +0000 (11:29 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 11 May 2011 21:06:49 +0000 (14:06 -0700)
This has been wrong for a long time.

ofproto/ofproto.c
tests/ofproto.at

index 3d995e19fd8387b8748807cb8f1bd331e46a9472..a9f3704e77410c6f96db43076557817686d3061e 100644 (file)
@@ -1362,7 +1362,7 @@ handle_features_request(struct ofconn *ofconn, const struct ofp_header *oh)
     osf = make_openflow_xid(sizeof *osf, OFPT_FEATURES_REPLY, oh->xid, &buf);
     osf->datapath_id = htonll(ofproto->datapath_id);
     osf->n_buffers = htonl(pktbuf_capacity());
-    osf->n_tables = 2;
+    osf->n_tables = 1;
     osf->capabilities = htonl(OFPC_FLOW_STATS | OFPC_TABLE_STATS |
                               OFPC_PORT_STATS | OFPC_ARP_MATCH_IP);
     osf->actions = htonl((1u << OFPAT_OUTPUT) |
index 9587c9780a5988dfd72fdb76653704631714c405..6f785e97d517aa97b2a4f8502295d9af7540ac96 100644 (file)
@@ -11,7 +11,7 @@ OFPROTO_START
 AT_CHECK([ovs-ofctl -vANY:ANY:WARN show br0], [0], [stdout])
 AT_CHECK([STRIP_XIDS stdout], [0], [dnl
 OFPT_FEATURES_REPLY: ver:0x1, dpid:fedcba9876543210
-n_tables:2, n_buffers:256
+n_tables:1, n_buffers:256
 features: capabilities:0x87, actions:0xfff
  LOCAL(br0): addr:aa:55:aa:55:00:00, config: 0x1, state:0x1
 OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0
@@ -33,7 +33,7 @@ do
     AT_CHECK([ovs-ofctl -vANY:ANY:WARN show br0], [0], [stdout])
     AT_CHECK_UNQUOTED([STRIP_XIDS stdout], [0], [dnl
 OFPT_FEATURES_REPLY: ver:0x1, dpid:fedcba9876543210
-n_tables:2, n_buffers:256
+n_tables:1, n_buffers:256
 features: capabilities:0x87, actions:0xfff
  LOCAL(br0): addr:aa:55:aa:55:00:00, config: $config, state:$state
 OFPT_GET_CONFIG_REPLY: frags=normal miss_send_len=0