From e283eeb6e7b33d696d75d2e7bea5840505d4f28e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 28 Mar 2008 15:30:13 -0700 Subject: [PATCH] Hide contents of sw_chain. --- switch/chain.c | 7 +++++++ switch/chain.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/switch/chain.c b/switch/chain.c index 05f74b41..ce8fe9d8 100644 --- a/switch/chain.c +++ b/switch/chain.c @@ -41,6 +41,13 @@ #define THIS_MODULE VLM_chain #include "vlog.h" +/* Set of tables chained together in sequence from cheap to expensive. */ +#define CHAIN_MAX_TABLES 4 +struct sw_chain { + int n_tables; + struct sw_table *tables[CHAIN_MAX_TABLES]; +}; + /* Attempts to append 'table' to the set of tables in 'chain'. Returns 0 or * negative error. If 'table' is null it is assumed that table creation failed * due to out-of-memory. */ diff --git a/switch/chain.h b/switch/chain.h index 5cda0fcc..cd3f205b 100644 --- a/switch/chain.h +++ b/switch/chain.h @@ -43,13 +43,6 @@ struct datapath; #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 -struct sw_chain { - int n_tables; - struct sw_table *tables[CHAIN_MAX_TABLES]; -}; - struct sw_chain *chain_create(void); struct sw_flow *chain_lookup(struct sw_chain *, const struct sw_flow_key *); int chain_insert(struct sw_chain *, struct sw_flow *); -- 2.30.2