mirror of https://github.com/OpenIPC/firmware.git
16 lines
556 B
Diff
16 lines
556 B
Diff
diff -drupN a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
|
|
--- a/net/ipv4/fib_semantics.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/net/ipv4/fib_semantics.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -52,7 +52,11 @@ static struct hlist_head *fib_info_laddr
|
|
static unsigned int fib_info_hash_size;
|
|
static unsigned int fib_info_cnt;
|
|
|
|
+#if CONFIG_BASE_SMALL > 0
|
|
+#define DEVINDEX_HASHBITS 2
|
|
+#else
|
|
#define DEVINDEX_HASHBITS 8
|
|
+#endif
|
|
#define DEVINDEX_HASHSIZE (1U << DEVINDEX_HASHBITS)
|
|
static struct hlist_head fib_info_devhash[DEVINDEX_HASHSIZE];
|
|
|