Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6

+64 -89
+18 -20
drivers/net/Kconfig
··· 23 23 24 24 If unsure, say Y. 25 25 26 + # All the following symbols are dependent on NETDEVICES - do not repeat 27 + # that for each of the symbols. 28 + if NETDEVICES 29 + 26 30 config DUMMY 27 31 tristate "Dummy net driver support" 28 - depends on NETDEVICES 29 32 ---help--- 30 33 This is essentially a bit-bucket device (i.e. traffic you send to 31 34 this device is consigned into oblivion) with a configurable IP ··· 48 45 49 46 config BONDING 50 47 tristate "Bonding driver support" 51 - depends on NETDEVICES 52 48 depends on INET 53 49 ---help--- 54 50 Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet ··· 65 63 66 64 config EQUALIZER 67 65 tristate "EQL (serial line load balancing) support" 68 - depends on NETDEVICES 69 66 ---help--- 70 67 If you have two serial connections to some other computer (this 71 68 usually requires two modems and two telephone lines) and you use ··· 84 83 85 84 config TUN 86 85 tristate "Universal TUN/TAP device driver support" 87 - depends on NETDEVICES 88 86 select CRC32 89 87 ---help--- 90 88 TUN/TAP provides packet reception and transmission for user space ··· 107 107 108 108 config NET_SB1000 109 109 tristate "General Instruments Surfboard 1000" 110 - depends on NETDEVICES && PNP 110 + depends on PNP 111 111 ---help--- 112 112 This is a driver for the General Instrument (also known as 113 113 NextLevel) SURFboard 1000 internal ··· 129 129 130 130 If you don't have this card, of course say N. 131 131 132 - if NETDEVICES 133 132 source "drivers/net/arcnet/Kconfig" 134 - endif 135 133 136 134 # 137 135 # Ethernet 138 136 # 139 137 140 138 menu "Ethernet (10 or 100Mbit)" 141 - depends on NETDEVICES && !UML 139 + depends on !UML 142 140 143 141 config NET_ETHERNET 144 142 bool "Ethernet (10 or 100Mbit)" ··· 1135 1137 1136 1138 config IBMVETH 1137 1139 tristate "IBM LAN Virtual Ethernet support" 1138 - depends on NETDEVICES && NET_ETHERNET && PPC_PSERIES 1140 + depends on NET_ETHERNET && PPC_PSERIES 1139 1141 ---help--- 1140 1142 This driver supports virtual ethernet adapters on newer IBM iSeries 1141 1143 and pSeries systems. ··· 1758 1760 # 1759 1761 1760 1762 menu "Ethernet (1000 Mbit)" 1761 - depends on NETDEVICES && !UML 1763 + depends on !UML 1762 1764 1763 1765 config ACENIC 1764 1766 tristate "Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit support" ··· 2089 2091 # 2090 2092 2091 2093 menu "Ethernet (10000 Mbit)" 2092 - depends on NETDEVICES && !UML 2094 + depends on !UML 2093 2095 2094 2096 config IXGB 2095 2097 tristate "Intel(R) PRO/10GbE support" ··· 2184 2186 2185 2187 config ISERIES_VETH 2186 2188 tristate "iSeries Virtual Ethernet driver support" 2187 - depends on NETDEVICES && PPC_ISERIES 2189 + depends on PPC_ISERIES 2188 2190 2189 2191 config FDDI 2190 2192 bool "FDDI driver support" 2191 - depends on NETDEVICES && (PCI || EISA) 2193 + depends on (PCI || EISA) 2192 2194 help 2193 2195 Fiber Distributed Data Interface is a high speed local area network 2194 2196 design; essentially a replacement for high speed Ethernet. FDDI can ··· 2237 2239 2238 2240 config HIPPI 2239 2241 bool "HIPPI driver support (EXPERIMENTAL)" 2240 - depends on NETDEVICES && EXPERIMENTAL && INET && PCI 2242 + depends on EXPERIMENTAL && INET && PCI 2241 2243 help 2242 2244 HIgh Performance Parallel Interface (HIPPI) is a 800Mbit/sec and 2243 2245 1600Mbit/sec dual-simplex switched or point-to-point network. HIPPI ··· 2269 2271 2270 2272 config PLIP 2271 2273 tristate "PLIP (parallel port) support" 2272 - depends on NETDEVICES && PARPORT 2274 + depends on PARPORT 2273 2275 ---help--- 2274 2276 PLIP (Parallel Line Internet Protocol) is used to create a 2275 2277 reasonably fast mini network consisting of two (or, rarely, more) ··· 2305 2307 2306 2308 config PPP 2307 2309 tristate "PPP (point-to-point protocol) support" 2308 - depends on NETDEVICES 2309 2310 ---help--- 2310 2311 PPP (Point to Point Protocol) is a newer and better SLIP. It serves 2311 2312 the same purpose: sending Internet traffic over telephone (and other ··· 2440 2443 2441 2444 config SLIP 2442 2445 tristate "SLIP (serial line) support" 2443 - depends on NETDEVICES 2444 2446 ---help--- 2445 2447 Say Y if you intend to use SLIP or CSLIP (compressed SLIP) to 2446 2448 connect to your Internet service provider or to connect to some ··· 2506 2510 2507 2511 config NET_FC 2508 2512 bool "Fibre Channel driver support" 2509 - depends on NETDEVICES && SCSI && PCI 2513 + depends on SCSI && PCI 2510 2514 help 2511 2515 Fibre Channel is a high speed serial protocol mainly used to connect 2512 2516 large storage devices to the computer; it is compatible with and ··· 2519 2523 2520 2524 config SHAPER 2521 2525 tristate "Traffic Shaper (EXPERIMENTAL)" 2522 - depends on NETDEVICES && EXPERIMENTAL 2526 + depends on EXPERIMENTAL 2523 2527 ---help--- 2524 2528 The traffic shaper is a virtual network device that allows you to 2525 2529 limit the rate of outgoing data flow over some other network device. ··· 2540 2544 2541 2545 config NETCONSOLE 2542 2546 tristate "Network console logging support (EXPERIMENTAL)" 2543 - depends on NETDEVICES && INET && EXPERIMENTAL 2547 + depends on EXPERIMENTAL 2544 2548 ---help--- 2545 2549 If you want to log kernel messages over the network, enable this. 2546 2550 See <file:Documentation/networking/netconsole.txt> for details. 2551 + 2552 + endif #NETDEVICES 2547 2553 2548 2554 config NETPOLL 2549 2555 def_bool NETCONSOLE
+7 -6
net/core/sock.c
··· 206 206 */ 207 207 208 208 #ifdef SO_DONTLINGER /* Compatibility item... */ 209 - switch (optname) { 210 - case SO_DONTLINGER: 211 - sock_reset_flag(sk, SOCK_LINGER); 212 - return 0; 209 + if (optname == SO_DONTLINGER) { 210 + lock_sock(sk); 211 + sock_reset_flag(sk, SOCK_LINGER); 212 + release_sock(sk); 213 + return 0; 213 214 } 214 - #endif 215 - 215 + #endif 216 + 216 217 if(optlen<sizeof(int)) 217 218 return(-EINVAL); 218 219
+36 -1
net/core/utils.c
··· 23 23 #include <linux/percpu.h> 24 24 #include <linux/init.h> 25 25 26 + #include <asm/byteorder.h> 26 27 #include <asm/system.h> 27 28 #include <asm/uaccess.h> 28 - 29 29 30 30 /* 31 31 This is a maximally equidistributed combined Tausworthe generator ··· 153 153 EXPORT_SYMBOL(net_random); 154 154 EXPORT_SYMBOL(net_ratelimit); 155 155 EXPORT_SYMBOL(net_srandom); 156 + 157 + /* 158 + * Convert an ASCII string to binary IP. 159 + * This is outside of net/ipv4/ because various code that uses IP addresses 160 + * is otherwise not dependent on the TCP/IP stack. 161 + */ 162 + 163 + __u32 in_aton(const char *str) 164 + { 165 + unsigned long l; 166 + unsigned int val; 167 + int i; 168 + 169 + l = 0; 170 + for (i = 0; i < 4; i++) 171 + { 172 + l <<= 8; 173 + if (*str != '\0') 174 + { 175 + val = 0; 176 + while (*str != '\0' && *str != '.') 177 + { 178 + val *= 10; 179 + val += *str - '0'; 180 + str++; 181 + } 182 + l |= val; 183 + if (*str != '\0') 184 + str++; 185 + } 186 + } 187 + return(htonl(l)); 188 + } 189 + 190 + EXPORT_SYMBOL(in_aton);
+1 -1
net/ipv4/Kconfig
··· 124 124 125 125 config IP_ROUTE_MULTIPATH_CACHED 126 126 bool "IP: equal cost multipath with caching support (EXPERIMENTAL)" 127 - depends on: IP_ROUTE_MULTIPATH 127 + depends on IP_ROUTE_MULTIPATH 128 128 help 129 129 Normally, equal cost multipath routing is not supported by the 130 130 routing cache. If you say Y here, alternative routes are cached
+1 -1
net/ipv4/Makefile
··· 2 2 # Makefile for the Linux TCP/IP (INET) layer. 3 3 # 4 4 5 - obj-y := utils.o route.o inetpeer.o protocol.o \ 5 + obj-y := route.o inetpeer.o protocol.o \ 6 6 ip_input.o ip_fragment.o ip_forward.o ip_options.o \ 7 7 ip_output.o ip_sockglue.o \ 8 8 tcp.o tcp_input.o tcp_output.o tcp_timer.o tcp_ipv4.o \
+1 -1
net/ipv4/netfilter/ip_conntrack_core.c
··· 510 510 /* Welcome, Mr. Bond. We've been expecting you... */ 511 511 __set_bit(IPS_EXPECTED_BIT, &conntrack->status); 512 512 conntrack->master = exp->master; 513 - #if CONFIG_IP_NF_CONNTRACK_MARK 513 + #ifdef CONFIG_IP_NF_CONNTRACK_MARK 514 514 conntrack->mark = exp->master->mark; 515 515 #endif 516 516 nf_conntrack_get(&conntrack->master->ct_general);
-59
net/ipv4/utils.c
··· 1 - /* 2 - * INET An implementation of the TCP/IP protocol suite for the LINUX 3 - * operating system. INET is implemented using the BSD Socket 4 - * interface as the means of communication with the user level. 5 - * 6 - * Various kernel-resident INET utility functions; mainly 7 - * for format conversion and debugging output. 8 - * 9 - * Version: $Id: utils.c,v 1.8 2000/10/03 07:29:01 anton Exp $ 10 - * 11 - * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 12 - * 13 - * Fixes: 14 - * Alan Cox : verify_area check. 15 - * Alan Cox : removed old debugging. 16 - * Andi Kleen : add net_ratelimit() 17 - * 18 - * This program is free software; you can redistribute it and/or 19 - * modify it under the terms of the GNU General Public License 20 - * as published by the Free Software Foundation; either version 21 - * 2 of the License, or (at your option) any later version. 22 - */ 23 - 24 - #include <linux/module.h> 25 - #include <linux/types.h> 26 - #include <asm/byteorder.h> 27 - 28 - /* 29 - * Convert an ASCII string to binary IP. 30 - */ 31 - 32 - __u32 in_aton(const char *str) 33 - { 34 - unsigned long l; 35 - unsigned int val; 36 - int i; 37 - 38 - l = 0; 39 - for (i = 0; i < 4; i++) 40 - { 41 - l <<= 8; 42 - if (*str != '\0') 43 - { 44 - val = 0; 45 - while (*str != '\0' && *str != '.') 46 - { 47 - val *= 10; 48 - val += *str - '0'; 49 - str++; 50 - } 51 - l |= val; 52 - if (*str != '\0') 53 - str++; 54 - } 55 - } 56 - return(htonl(l)); 57 - } 58 - 59 - EXPORT_SYMBOL(in_aton);