Finish removing references to the MAC table.
authorJustin Pettit <jpettit@nicira.com>
Tue, 15 Apr 2008 20:42:35 +0000 (13:42 -0700)
committerJustin Pettit <jpettit@nicira.com>
Tue, 15 Apr 2008 20:42:35 +0000 (13:42 -0700)
datapath/chain.h
datapath/datapath.c
include/openflow.h
lib/ofp-print.c
switch/datapath.c

index fc07f51..7669253 100644 (file)
@@ -8,8 +8,6 @@ struct datapath;
 
 #define TABLE_LINEAR_MAX_FLOWS  100
 #define TABLE_HASH_MAX_FLOWS   65536
-#define TABLE_MAC_MAX_FLOWS     1024
-#define TABLE_MAC_NUM_BUCKETS   1024
 
 /* Set of tables chained together in sequence from cheap to expensive. */
 #define CHAIN_MAX_TABLES 4
index 639a483..67c4cf4 100644 (file)
@@ -653,7 +653,6 @@ fill_features_reply(struct datapath *dp, struct ofp_switch_features *ofr)
        ofr->datapath_id    = cpu_to_be64(dp->id); 
 
        ofr->n_exact        = htonl(2 * TABLE_HASH_MAX_FLOWS);
-       ofr->n_mac_only     = htonl(TABLE_MAC_MAX_FLOWS);
        ofr->n_compression  = 0;                                           /* Not supported */
        ofr->n_general      = htonl(TABLE_LINEAR_MAX_FLOWS);
        ofr->buffer_mb      = htonl(UINT32_MAX);
index 7462b88..43fb817 100644 (file)
@@ -164,7 +164,6 @@ struct ofp_switch_features {
 
     /* Table info. */
     uint32_t n_exact;       /* Max exact-match table entries. */
-    uint32_t n_mac_only;    /* Max mac-only table entries. */
     uint32_t n_compression; /* Max entries compressed on service port.  */
     uint32_t n_general;     /* Max entries of arbitrary form. */
 
index 8b056fd..2a76991 100644 (file)
@@ -302,8 +302,8 @@ ofp_print_switch_features(struct ds *string, const void *oh, size_t len,
     int i;
 
     ds_put_format(string, "dp id:%"PRIx64"\n", ntohll(osf->datapath_id));
-    ds_put_format(string, "tables: exact:%d, mac:%d, compressed:%d, general:%d\n",
-           ntohl(osf->n_exact), ntohl(osf->n_mac_only),
+    ds_put_format(string, "tables: exact:%d, compressed:%d, general:%d\n",
+           ntohl(osf->n_exact), 
            ntohl(osf->n_compression), ntohl(osf->n_general));
     ds_put_format(string, "buffers: size:%d, number:%d\n",
            ntohl(osf->buffer_mb), ntohl(osf->n_buffers));
index 0d4ffa7..9410061 100644 (file)
@@ -572,8 +572,7 @@ dp_send_features_reply(struct datapath *dp, const struct sender *sender)
                                 sender, &buffer);
     ofr->datapath_id    = htonll(dp->id); 
     ofr->n_exact        = htonl(2 * TABLE_HASH_MAX_FLOWS);
-    ofr->n_mac_only     = htonl(TABLE_MAC_MAX_FLOWS);
-    ofr->n_compression  = 0;                                           /* Not supported */
+    ofr->n_compression  = 0;         /* Not supported */
     ofr->n_general      = htonl(TABLE_LINEAR_MAX_FLOWS);
     ofr->buffer_mb      = htonl(UINT32_MAX);
     ofr->n_buffers      = htonl(N_PKT_BUFFERS);