X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Ftable.c;h=61118090c3fa83e1868990bc49672be47a2a7dad;hb=c6ebb8fb918f819a3c9b7161731ea0453a79137a;hp=e4561d697e5f37e8d4c63921ad92dc60516d917c;hpb=8d5ebd839b86463c72239fe972001e4f1a367a7b;p=openvswitch diff --git a/datapath/table.c b/datapath/table.c index e4561d69..61118090 100644 --- a/datapath/table.c +++ b/datapath/table.c @@ -15,30 +15,6 @@ #include #include -/** - * struct tbl - hash table - * @n_buckets: number of buckets (a power of 2 between %TBL_L1_SIZE and - * %TBL_MAX_BUCKETS) - * @buckets: pointer to @n_buckets/%TBL_L1_SIZE pointers to %TBL_L1_SIZE pointers - * to buckets - * @rcu: RCU callback structure - * @obj_destructor: Called on each element when the table is destroyed. - * - * The @buckets array is logically an array of pointers to buckets. It is - * broken into two levels to avoid the need to kmalloc() any object larger than - * a single page or to use vmalloc(). @buckets is always nonnull, as is each - * @buckets[i], but each @buckets[i][j] is nonnull only if the specified hash - * bucket is nonempty (for 0 <= i < @n_buckets/%TBL_L1_SIZE, 0 <= j < - * %TBL_L1_SIZE). - */ -struct tbl { - struct rcu_head rcu; - unsigned int n_buckets; - struct tbl_bucket ***buckets; - unsigned int count; - void (*obj_destructor)(struct tbl_node *); -}; - /** * struct tbl_bucket - single bucket within a hash table * @rcu: RCU callback structure @@ -367,7 +343,7 @@ int tbl_insert(struct tbl *table, struct tbl_node *target, u32 hash) } /** - * tbl_delete - remove object from table + * tbl_remove - remove object from table * @table: table from which to remove object * @target: tbl_node inside of object to remove *