diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/Kconfig | 84 | ||||
-rw-r--r-- | net/sched/Kconfig | 5 | ||||
-rw-r--r-- | net/sunrpc/xprt.c | 4 |
3 files changed, 62 insertions, 31 deletions
diff --git a/net/ipv4/Kconfig b/net/ipv4/Kconfig index 690e88ba2484..347083433120 100644 --- a/net/ipv4/Kconfig +++ b/net/ipv4/Kconfig | |||
@@ -1,32 +1,6 @@ | |||
1 | # | 1 | # |
2 | # IP configuration | 2 | # IP configuration |
3 | # | 3 | # |
4 | choice | ||
5 | prompt "Choose IP: FIB lookup" | ||
6 | depends on INET | ||
7 | default IP_FIB_HASH | ||
8 | |||
9 | config IP_FIB_HASH | ||
10 | bool "FIB_HASH" | ||
11 | ---help--- | ||
12 | Current FIB is very proven and good enough for most users. | ||
13 | |||
14 | config IP_FIB_TRIE | ||
15 | bool "FIB_TRIE" | ||
16 | ---help--- | ||
17 | Use new experimental LC-trie as FIB lookup algoritm. | ||
18 | This improves lookup performance | ||
19 | |||
20 | LC-trie is described in: | ||
21 | |||
22 | IP-address lookup using LC-tries. Stefan Nilsson and Gunnar Karlsson | ||
23 | IEEE Journal on Selected Areas in Communications, 17(6):1083-1092, June 1999 | ||
24 | An experimental study of compression methods for dynamic tries | ||
25 | Stefan Nilsson and Matti Tikkanen. Algorithmica, 33(1):19-33, 2002. | ||
26 | http://www.nada.kth.se/~snilsson/public/papers/dyntrie2/ | ||
27 | |||
28 | endchoice | ||
29 | |||
30 | config IP_MULTICAST | 4 | config IP_MULTICAST |
31 | bool "IP: multicasting" | 5 | bool "IP: multicasting" |
32 | depends on INET | 6 | depends on INET |
@@ -79,6 +53,44 @@ config IP_ADVANCED_ROUTER | |||
79 | 53 | ||
80 | If unsure, say N here. | 54 | If unsure, say N here. |
81 | 55 | ||
56 | choice | ||
57 | prompt "Choose IP: FIB lookup algorithm (choose FIB_HASH if unsure)" | ||
58 | depends on IP_ADVANCED_ROUTER | ||
59 | default IP_FIB_HASH | ||
60 | |||
61 | config IP_FIB_HASH | ||
62 | bool "FIB_HASH" | ||
63 | ---help--- | ||
64 | Current FIB is very proven and good enough for most users. | ||
65 | |||
66 | config IP_FIB_TRIE | ||
67 | bool "FIB_TRIE" | ||
68 | ---help--- | ||
69 | Use new experimental LC-trie as FIB lookup algoritm. | ||
70 | This improves lookup performance if you have a large | ||
71 | number of routes. | ||
72 | |||
73 | LC-trie is a longest matching prefix lookup algorithm which | ||
74 | performs better than FIB_HASH for large routing tables. | ||
75 | But, it consumes more memory and is more complex. | ||
76 | |||
77 | LC-trie is described in: | ||
78 | |||
79 | IP-address lookup using LC-tries. Stefan Nilsson and Gunnar Karlsson | ||
80 | IEEE Journal on Selected Areas in Communications, 17(6):1083-1092, June 1999 | ||
81 | An experimental study of compression methods for dynamic tries | ||
82 | Stefan Nilsson and Matti Tikkanen. Algorithmica, 33(1):19-33, 2002. | ||
83 | http://www.nada.kth.se/~snilsson/public/papers/dyntrie2/ | ||
84 | |||
85 | endchoice | ||
86 | |||
87 | # If the user does not enable advanced routing, he gets the safe | ||
88 | # default of the fib-hash algorithm. | ||
89 | config IP_FIB_HASH | ||
90 | bool | ||
91 | depends on !IP_ADVANCED_ROUTER | ||
92 | default y | ||
93 | |||
82 | config IP_MULTIPLE_TABLES | 94 | config IP_MULTIPLE_TABLES |
83 | bool "IP: policy routing" | 95 | bool "IP: policy routing" |
84 | depends on IP_ADVANCED_ROUTER | 96 | depends on IP_ADVANCED_ROUTER |
@@ -433,9 +445,22 @@ config IP_TCPDIAG | |||
433 | config IP_TCPDIAG_IPV6 | 445 | config IP_TCPDIAG_IPV6 |
434 | def_bool (IP_TCPDIAG=y && IPV6=y) || (IP_TCPDIAG=m && IPV6) | 446 | def_bool (IP_TCPDIAG=y && IPV6=y) || (IP_TCPDIAG=m && IPV6) |
435 | 447 | ||
448 | config TCP_CONG_ADVANCED | ||
449 | bool "TCP: advanced congestion control" | ||
450 | depends on INET | ||
451 | default y | ||
452 | ---help--- | ||
453 | Support for selection of various TCP congestion control | ||
454 | modules. | ||
455 | |||
456 | Nearly all users can safely say no here, and a safe default | ||
457 | selection will be made (BIC-TCP with new Reno as a fallback). | ||
458 | |||
459 | If unsure, say N. | ||
460 | |||
436 | # TCP Reno is builtin (required as fallback) | 461 | # TCP Reno is builtin (required as fallback) |
437 | menu "TCP congestion control" | 462 | menu "TCP congestion control" |
438 | depends on INET | 463 | depends on TCP_CONG_ADVANCED |
439 | 464 | ||
440 | config TCP_CONG_BIC | 465 | config TCP_CONG_BIC |
441 | tristate "Binary Increase Congestion (BIC) control" | 466 | tristate "Binary Increase Congestion (BIC) control" |
@@ -523,5 +548,10 @@ config TCP_CONG_SCALABLE | |||
523 | 548 | ||
524 | endmenu | 549 | endmenu |
525 | 550 | ||
551 | config TCP_CONG_BIC | ||
552 | boolean | ||
553 | depends on !TCP_CONG_ADVANCED | ||
554 | default y | ||
555 | |||
526 | source "net/ipv4/ipvs/Kconfig" | 556 | source "net/ipv4/ipvs/Kconfig" |
527 | 557 | ||
diff --git a/net/sched/Kconfig b/net/sched/Kconfig index 447b89e556b1..7bac249258e3 100644 --- a/net/sched/Kconfig +++ b/net/sched/Kconfig | |||
@@ -453,10 +453,11 @@ config NET_EMATCH_TEXT | |||
453 | tristate "Textsearch" | 453 | tristate "Textsearch" |
454 | depends on NET_EMATCH | 454 | depends on NET_EMATCH |
455 | select TEXTSEARCH | 455 | select TEXTSEARCH |
456 | select TEXTSEARCH_KMP | ||
457 | select TEXTSEARCH_FSM | ||
456 | ---help--- | 458 | ---help--- |
457 | Say Y here if you want to be ablt to classify packets based on | 459 | Say Y here if you want to be ablt to classify packets based on |
458 | textsearch comparisons. Please select the appropriate textsearch | 460 | textsearch comparisons. |
459 | algorithms in the Library section. | ||
460 | 461 | ||
461 | To compile this code as a module, choose M here: the | 462 | To compile this code as a module, choose M here: the |
462 | module will be called em_text. | 463 | module will be called em_text. |
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index eca92405948f..269f217918a3 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c | |||
@@ -970,7 +970,7 @@ tcp_read_request(struct rpc_xprt *xprt, skb_reader_t *desc) | |||
970 | goto out; | 970 | goto out; |
971 | } | 971 | } |
972 | 972 | ||
973 | dprintk("RPC: XID %08x read %u bytes\n", | 973 | dprintk("RPC: XID %08x read %Zd bytes\n", |
974 | ntohl(xprt->tcp_xid), r); | 974 | ntohl(xprt->tcp_xid), r); |
975 | dprintk("RPC: xprt = %p, tcp_copied = %lu, tcp_offset = %u, tcp_reclen = %u\n", | 975 | dprintk("RPC: xprt = %p, tcp_copied = %lu, tcp_offset = %u, tcp_reclen = %u\n", |
976 | xprt, xprt->tcp_copied, xprt->tcp_offset, xprt->tcp_reclen); | 976 | xprt, xprt->tcp_copied, xprt->tcp_offset, xprt->tcp_reclen); |
@@ -1006,7 +1006,7 @@ tcp_read_discard(struct rpc_xprt *xprt, skb_reader_t *desc) | |||
1006 | desc->count -= len; | 1006 | desc->count -= len; |
1007 | desc->offset += len; | 1007 | desc->offset += len; |
1008 | xprt->tcp_offset += len; | 1008 | xprt->tcp_offset += len; |
1009 | dprintk("RPC: discarded %u bytes\n", len); | 1009 | dprintk("RPC: discarded %Zu bytes\n", len); |
1010 | tcp_check_recm(xprt); | 1010 | tcp_check_recm(xprt); |
1011 | } | 1011 | } |
1012 | 1012 | ||