projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofpbuf: New function ofpbuf_use_stack().
[openvswitch]
/
datapath
/
table.h
diff --git
a/datapath/table.h
b/datapath/table.h
index 609d9b14bddfea507ce991a39fa9b7dcd29dc417..f186600b21cb3cd3d786c862a161a8bc9a1e5f62 100644
(file)
--- a/
datapath/table.h
+++ b/
datapath/table.h
@@
-34,7
+34,7
@@
struct tbl_node {
struct tbl {
struct rcu_head rcu;
unsigned int n_buckets;
struct tbl {
struct rcu_head rcu;
unsigned int n_buckets;
- struct tbl_bucket
** __rcu
*buckets;
+ struct tbl_bucket
__rcu **
*buckets;
unsigned int count;
void (*obj_destructor)(struct tbl_node *);
};
unsigned int count;
void (*obj_destructor)(struct tbl_node *);
};
@@
-47,6
+47,9
@@
struct tbl {
#define TBL_L1_SIZE (1 << TBL_L1_BITS)
#define TBL_L1_SHIFT TBL_L2_BITS
#define TBL_L1_SIZE (1 << TBL_L1_BITS)
#define TBL_L1_SHIFT TBL_L2_BITS
+/* For 4 kB pages, this is 1,024 on 32-bit or 512 on 64-bit. */
+#define TBL_MIN_BUCKETS TBL_L2_SIZE
+
/* For 4 kB pages, this is 1,048,576 on 32-bit or 262,144 on 64-bit. */
#define TBL_MAX_BUCKETS (TBL_L1_SIZE * TBL_L2_SIZE)
/* For 4 kB pages, this is 1,048,576 on 32-bit or 262,144 on 64-bit. */
#define TBL_MAX_BUCKETS (TBL_L1_SIZE * TBL_L2_SIZE)