Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matisse
android_kernel_samsung_matisse
Commits
d347da0d
Commit
d347da0d
authored
19 years ago
by
Linus Torvalds
Browse files
Options
Download
Plain Diff
Merge
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
parents
c6c88bbd
74cb8798
Changes
263
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
62 additions
and
49 deletions
+62
-49
Documentation/networking/ip-sysctl.txt
Documentation/networking/ip-sysctl.txt
+23
-0
drivers/char/random.c
drivers/char/random.c
+4
-6
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/infiniband/ulp/ipoib/ipoib_main.c
+2
-0
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
+2
-0
drivers/net/ns83820.c
drivers/net/ns83820.c
+1
-0
drivers/net/pppoe.c
drivers/net/pppoe.c
+6
-25
drivers/net/pppox.c
drivers/net/pppox.c
+3
-7
drivers/net/sk98lin/skge.c
drivers/net/sk98lin/skge.c
+1
-0
drivers/net/skge.c
drivers/net/skge.c
+1
-0
drivers/net/tg3.c
drivers/net/tg3.c
+2
-1
drivers/net/wireless/ipw2200.c
drivers/net/wireless/ipw2200.c
+5
-10
fs/9p/trans_sock.c
fs/9p/trans_sock.c
+1
-0
fs/nfs/callback.c
fs/nfs/callback.c
+3
-0
include/asm-alpha/bitops.h
include/asm-alpha/bitops.h
+1
-0
include/asm-arm/bitops.h
include/asm-arm/bitops.h
+2
-0
include/asm-arm26/bitops.h
include/asm-arm26/bitops.h
+1
-0
include/asm-cris/bitops.h
include/asm-cris/bitops.h
+1
-0
include/asm-frv/bitops.h
include/asm-frv/bitops.h
+1
-0
include/asm-generic/bitops.h
include/asm-generic/bitops.h
+1
-0
include/asm-h8300/bitops.h
include/asm-h8300/bitops.h
+1
-0
No files found.
Documentation/networking/ip-sysctl.txt
View file @
d347da0d
...
...
@@ -46,6 +46,29 @@ ipfrag_secret_interval - INTEGER
for the hash secret) for IP fragments.
Default: 600
ipfrag_max_dist - INTEGER
ipfrag_max_dist is a non-negative integer value which defines the
maximum "disorder" which is allowed among fragments which share a
common IP source address. Note that reordering of packets is
not unusual, but if a large number of fragments arrive from a source
IP address while a particular fragment queue remains incomplete, it
probably indicates that one or more fragments belonging to that queue
have been lost. When ipfrag_max_dist is positive, an additional check
is done on fragments before they are added to a reassembly queue - if
ipfrag_max_dist (or more) fragments have arrived from a particular IP
address between additions to any IP fragment queue using that source
address, it's presumed that one or more fragments in the queue are
lost. The existing fragment queue will be dropped, and a new one
started. An ipfrag_max_dist value of zero disables this check.
Using a very small value, e.g. 1 or 2, for ipfrag_max_dist can
result in unnecessarily dropping fragment queues when normal
reordering of packets occurs, which could lead to poor application
performance. Using a very large value, e.g. 50000, increases the
likelihood of incorrectly reassembling IP fragments that originate
from different IP datagrams, which could result in data corruption.
Default: 64
INET peer storage:
inet_peer_threshold - INTEGER
...
...
This diff is collapsed.
Click to expand it.
drivers/char/random.c
View file @
d347da0d
...
...
@@ -1554,10 +1554,8 @@ __u32 secure_tcp_sequence_number(__u32 saddr, __u32 daddr,
EXPORT_SYMBOL
(
secure_tcp_sequence_number
);
/* Generate secure starting point for ephemeral TCP port search */
u32
secure_tcp_port_ephemeral
(
__u32
saddr
,
__u32
daddr
,
__u16
dport
)
/* Generate secure starting point for ephemeral IPV4 transport port search */
u32
secure_ipv4_port_ephemeral
(
__u32
saddr
,
__u32
daddr
,
__u16
dport
)
{
struct
keydata
*
keyptr
=
get_keyptr
();
u32
hash
[
4
];
...
...
@@ -1575,7 +1573,7 @@ u32 secure_tcp_port_ephemeral(__u32 saddr, __u32 daddr, __u16 dport)
}
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
u32
secure_
tc
pv6_port_ephemeral
(
const
__u32
*
saddr
,
const
__u32
*
daddr
,
__u16
dport
)
u32
secure_
i
pv6_port_ephemeral
(
const
__u32
*
saddr
,
const
__u32
*
daddr
,
__u16
dport
)
{
struct
keydata
*
keyptr
=
get_keyptr
();
u32
hash
[
12
];
...
...
@@ -1586,7 +1584,7 @@ u32 secure_tcpv6_port_ephemeral(const __u32 *saddr, const __u32 *daddr, __u16 dp
return
twothirdsMD4Transform
(
daddr
,
hash
);
}
EXPORT_SYMBOL
(
secure_
tc
pv6_port_ephemeral
);
EXPORT_SYMBOL
(
secure_
i
pv6_port_ephemeral
);
#endif
#if defined(CONFIG_IP_DCCP) || defined(CONFIG_IP_DCCP_MODULE)
...
...
This diff is collapsed.
Click to expand it.
drivers/infiniband/ulp/ipoib/ipoib_main.c
View file @
d347da0d
...
...
@@ -47,6 +47,8 @@
#include <linux/ip.h>
#include <linux/in.h>
#include <net/dst.h>
MODULE_AUTHOR
(
"Roland Dreier"
);
MODULE_DESCRIPTION
(
"IP-over-InfiniBand net driver"
);
MODULE_LICENSE
(
"Dual BSD/GPL"
);
...
...
This diff is collapsed.
Click to expand it.
drivers/infiniband/ulp/ipoib/ipoib_multicast.c
View file @
d347da0d
...
...
@@ -43,6 +43,8 @@
#include <linux/delay.h>
#include <linux/completion.h>
#include <net/dst.h>
#include "ipoib.h"
#ifdef CONFIG_INFINIBAND_IPOIB_DEBUG
...
...
This diff is collapsed.
Click to expand it.
drivers/net/ns83820.c
View file @
d347da0d
...
...
@@ -115,6 +115,7 @@
#include <linux/ethtool.h>
#include <linux/timer.h>
#include <linux/if_vlan.h>
#include <linux/rtnetlink.h>
#include <asm/io.h>
#include <asm/uaccess.h>
...
...
This diff is collapsed.
Click to expand it.
drivers/net/pppoe.c
View file @
d347da0d
...
...
@@ -85,7 +85,7 @@ static int pppoe_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
static
int
pppoe_xmit
(
struct
ppp_channel
*
chan
,
struct
sk_buff
*
skb
);
static
int
__pppoe_xmit
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
);
static
struct
proto_ops
pppoe_ops
;
static
const
struct
proto_ops
pppoe_ops
;
static
DEFINE_RWLOCK
(
pppoe_hash_lock
);
static
struct
ppp_channel_ops
pppoe_chan_ops
;
...
...
@@ -383,8 +383,6 @@ static int pppoe_rcv(struct sk_buff *skb,
{
struct
pppoe_hdr
*
ph
;
struct
pppox_sock
*
po
;
struct
sock
*
sk
;
int
ret
;
if
(
!
pskb_may_pull
(
skb
,
sizeof
(
struct
pppoe_hdr
)))
goto
drop
;
...
...
@@ -395,24 +393,8 @@ static int pppoe_rcv(struct sk_buff *skb,
ph
=
(
struct
pppoe_hdr
*
)
skb
->
nh
.
raw
;
po
=
get_item
((
unsigned
long
)
ph
->
sid
,
eth_hdr
(
skb
)
->
h_source
);
if
(
!
po
)
goto
drop
;
sk
=
sk_pppox
(
po
);
bh_lock_sock
(
sk
);
/* Socket state is unknown, must put skb into backlog. */
if
(
sock_owned_by_user
(
sk
)
!=
0
)
{
sk_add_backlog
(
sk
,
skb
);
ret
=
NET_RX_SUCCESS
;
}
else
{
ret
=
pppoe_rcv_core
(
sk
,
skb
);
}
bh_unlock_sock
(
sk
);
sock_put
(
sk
);
return
ret
;
if
(
po
!=
NULL
)
return
sk_receive_skb
(
sk_pppox
(
po
),
skb
);
drop:
kfree_skb
(
skb
);
out:
...
...
@@ -1081,9 +1063,7 @@ static int __init pppoe_proc_init(void)
static
inline
int
pppoe_proc_init
(
void
)
{
return
0
;
}
#endif
/* CONFIG_PROC_FS */
/* ->ioctl are set at pppox_create */
static
struct
proto_ops
pppoe_ops
=
{
static
const
struct
proto_ops
pppoe_ops
=
{
.
family
=
AF_PPPOX
,
.
owner
=
THIS_MODULE
,
.
release
=
pppoe_release
,
...
...
@@ -1099,7 +1079,8 @@ static struct proto_ops pppoe_ops = {
.
getsockopt
=
sock_no_getsockopt
,
.
sendmsg
=
pppoe_sendmsg
,
.
recvmsg
=
pppoe_recvmsg
,
.
mmap
=
sock_no_mmap
.
mmap
=
sock_no_mmap
,
.
ioctl
=
pppox_ioctl
,
};
static
struct
pppox_proto
pppoe_proto
=
{
...
...
This diff is collapsed.
Click to expand it.
drivers/net/pppox.c
View file @
d347da0d
...
...
@@ -68,8 +68,7 @@ EXPORT_SYMBOL(register_pppox_proto);
EXPORT_SYMBOL
(
unregister_pppox_proto
);
EXPORT_SYMBOL
(
pppox_unbind_sock
);
static
int
pppox_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
)
int
pppox_ioctl
(
struct
socket
*
sock
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
pppox_sock
*
po
=
pppox_sk
(
sk
);
...
...
@@ -105,6 +104,7 @@ static int pppox_ioctl(struct socket* sock, unsigned int cmd,
return
rc
;
}
EXPORT_SYMBOL
(
pppox_ioctl
);
static
int
pppox_create
(
struct
socket
*
sock
,
int
protocol
)
{
...
...
@@ -119,11 +119,7 @@ static int pppox_create(struct socket *sock, int protocol)
goto
out
;
rc
=
pppox_protos
[
protocol
]
->
create
(
sock
);
if
(
!
rc
)
{
/* We get to set the ioctl handler. */
/* For everything else, pppox is just a shell. */
sock
->
ops
->
ioctl
=
pppox_ioctl
;
}
module_put
(
pppox_protos
[
protocol
]
->
owner
);
out:
return
rc
;
...
...
This diff is collapsed.
Click to expand it.
drivers/net/sk98lin/skge.c
View file @
d347da0d
...
...
@@ -107,6 +107,7 @@
#include "h/skversion.h"
#include <linux/in.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
...
...
This diff is collapsed.
Click to expand it.
drivers/net/skge.c
View file @
d347da0d
...
...
@@ -25,6 +25,7 @@
*/
#include <linux/config.h>
#include <linux/in.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
...
...
This diff is collapsed.
Click to expand it.
drivers/net/tg3.c
View file @
d347da0d
...
...
@@ -24,6 +24,7 @@
#include <linux/compiler.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/in.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/pci.h>
...
...
@@ -3650,7 +3651,7 @@ static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
TXD_FLAG_CPU_POST_DMA
);
skb
->
nh
.
iph
->
check
=
0
;
skb
->
nh
.
iph
->
tot_len
=
n
to
h
s
(
mss
+
ip_tcp_len
+
tcp_opt_len
);
skb
->
nh
.
iph
->
tot_len
=
h
to
n
s
(
mss
+
ip_tcp_len
+
tcp_opt_len
);
if
(
tp
->
tg3_flags2
&
TG3_FLG2_HW_TSO
)
{
skb
->
h
.
th
->
check
=
0
;
base_flags
&=
~
TXD_FLAG_TCPUDP_CSUM
;
...
...
This diff is collapsed.
Click to expand it.
drivers/net/wireless/ipw2200.c
View file @
d347da0d
...
...
@@ -7456,8 +7456,7 @@ static void ipw_handle_data_packet(struct ipw_priv *priv,
/* HW decrypt will not clear the WEP bit, MIC, PN, etc. */
hdr
=
(
struct
ieee80211_hdr_4addr
*
)
rxb
->
skb
->
data
;
if
(
priv
->
ieee
->
iw_mode
!=
IW_MODE_MONITOR
&&
((
is_multicast_ether_addr
(
hdr
->
addr1
)
||
is_broadcast_ether_addr
(
hdr
->
addr1
))
?
(
is_multicast_ether_addr
(
hdr
->
addr1
)
?
!
priv
->
ieee
->
host_mc_decrypt
:
!
priv
->
ieee
->
host_decrypt
))
ipw_rebuild_decrypted_skb
(
priv
,
rxb
->
skb
);
...
...
@@ -7648,8 +7647,7 @@ static inline int is_network_packet(struct ipw_priv *priv,
return
0
;
/* {broad,multi}cast packets to our BSSID go through */
if
(
is_multicast_ether_addr
(
header
->
addr1
)
||
is_broadcast_ether_addr
(
header
->
addr1
))
if
(
is_multicast_ether_addr
(
header
->
addr1
))
return
!
memcmp
(
header
->
addr3
,
priv
->
bssid
,
ETH_ALEN
);
/* packets to our adapter go through */
...
...
@@ -7662,8 +7660,7 @@ static inline int is_network_packet(struct ipw_priv *priv,
return
0
;
/* {broad,multi}cast packets to our BSS go through */
if
(
is_multicast_ether_addr
(
header
->
addr1
)
||
is_broadcast_ether_addr
(
header
->
addr1
))
if
(
is_multicast_ether_addr
(
header
->
addr1
))
return
!
memcmp
(
header
->
addr2
,
priv
->
bssid
,
ETH_ALEN
);
/* packets to our adapter go through */
...
...
@@ -9657,8 +9654,7 @@ static inline int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
switch
(
priv
->
ieee
->
iw_mode
)
{
case
IW_MODE_ADHOC
:
hdr_len
=
IEEE80211_3ADDR_LEN
;
unicast
=
!
(
is_multicast_ether_addr
(
hdr
->
addr1
)
||
is_broadcast_ether_addr
(
hdr
->
addr1
));
unicast
=
!
is_multicast_ether_addr
(
hdr
->
addr1
);
id
=
ipw_find_station
(
priv
,
hdr
->
addr1
);
if
(
id
==
IPW_INVALID_STATION
)
{
id
=
ipw_add_station
(
priv
,
hdr
->
addr1
);
...
...
@@ -9673,8 +9669,7 @@ static inline int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
case
IW_MODE_INFRA
:
default:
unicast
=
!
(
is_multicast_ether_addr
(
hdr
->
addr3
)
||
is_broadcast_ether_addr
(
hdr
->
addr3
));
unicast
=
!
is_multicast_ether_addr
(
hdr
->
addr3
);
hdr_len
=
IEEE80211_3ADDR_LEN
;
id
=
0
;
break
;
...
...
This diff is collapsed.
Click to expand it.
fs/9p/trans_sock.c
View file @
d347da0d
...
...
@@ -26,6 +26,7 @@
*/
#include <linux/config.h>
#include <linux/in.h>
#include <linux/module.h>
#include <linux/net.h>
#include <linux/ipv6.h>
...
...
This diff is collapsed.
Click to expand it.
fs/nfs/callback.c
View file @
d347da0d
...
...
@@ -14,6 +14,9 @@
#include <linux/sunrpc/svc.h>
#include <linux/sunrpc/svcsock.h>
#include <linux/nfs_fs.h>
#include <net/inet_sock.h>
#include "nfs4_fs.h"
#include "callback.h"
...
...
This diff is collapsed.
Click to expand it.
include/asm-alpha/bitops.h
View file @
d347da0d
...
...
@@ -321,6 +321,7 @@ static inline int fls(int word)
#else
#define fls generic_fls
#endif
#define fls64 generic_fls64
/* Compute powers of two for the given integer. */
static
inline
long
floor_log2
(
unsigned
long
word
)
...
...
This diff is collapsed.
Click to expand it.
include/asm-arm/bitops.h
View file @
d347da0d
...
...
@@ -332,6 +332,7 @@ static inline unsigned long __ffs(unsigned long word)
*/
#define fls(x) generic_fls(x)
#define fls64(x) generic_fls64(x)
/*
* ffs: find first bit set. This is defined the same way as
...
...
@@ -351,6 +352,7 @@ static inline unsigned long __ffs(unsigned long word)
#define fls(x) \
( __builtin_constant_p(x) ? generic_fls(x) : \
({ int __r; asm("clz\t%0, %1" : "=r"(__r) : "r"(x) : "cc"); 32-__r; }) )
#define fls64(x) generic_fls64(x)
#define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
#define __ffs(x) (ffs(x) - 1)
#define ffz(x) __ffs( ~(x) )
...
...
This diff is collapsed.
Click to expand it.
include/asm-arm26/bitops.h
View file @
d347da0d
...
...
@@ -259,6 +259,7 @@ static inline unsigned long __ffs(unsigned long word)
*/
#define fls(x) generic_fls(x)
#define fls64(x) generic_fls64(x)
/*
* ffs: find first bit set. This is defined the same way as
...
...
This diff is collapsed.
Click to expand it.
include/asm-cris/bitops.h
View file @
d347da0d
...
...
@@ -240,6 +240,7 @@ static inline int test_bit(int nr, const volatile unsigned long *addr)
*/
#define fls(x) generic_fls(x)
#define fls64(x) generic_fls64(x)
/*
* hweightN - returns the hamming weight of a N-bit word
...
...
This diff is collapsed.
Click to expand it.
include/asm-frv/bitops.h
View file @
d347da0d
...
...
@@ -228,6 +228,7 @@ found_middle:
\
bit ? 33 - bit : bit; \
})
#define fls64(x) generic_fls64(x)
/*
* Every architecture must define this function. It's the fastest
...
...
This diff is collapsed.
Click to expand it.
include/asm-generic/bitops.h
View file @
d347da0d
...
...
@@ -56,6 +56,7 @@ extern __inline__ int test_bit(int nr, const unsigned long * addr)
*/
#define fls(x) generic_fls(x)
#define fls64(x) generic_fls64(x)
#ifdef __KERNEL__
...
...
This diff is collapsed.
Click to expand it.
include/asm-h8300/bitops.h
View file @
d347da0d
...
...
@@ -406,5 +406,6 @@ found_middle:
#endif
/* __KERNEL__ */
#define fls(x) generic_fls(x)
#define fls64(x) generic_fls64(x)
#endif
/* _H8300_BITOPS_H */
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
5
…
14
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment