Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f0de70f8
Commit
f0de70f8
authored
Mar 26, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
parents
bb3daa4a
cda6d377
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
3 deletions
+39
-3
drivers/net/dnet.c
drivers/net/dnet.c
+1
-0
drivers/net/phy/smsc.c
drivers/net/phy/smsc.c
+31
-0
net/bridge/br_if.c
net/bridge/br_if.c
+0
-1
net/ipv4/udp.c
net/ipv4/udp.c
+5
-1
net/netfilter/nf_conntrack_proto_tcp.c
net/netfilter/nf_conntrack_proto_tcp.c
+2
-1
No files found.
drivers/net/dnet.c
View file @
f0de70f8
...
...
@@ -9,6 +9,7 @@
* published by the Free Software Foundation.
*/
#include <linux/version.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
...
...
drivers/net/phy/smsc.c
View file @
f0de70f8
...
...
@@ -159,6 +159,30 @@ static struct phy_driver lan911x_int_driver = {
.
driver
=
{
.
owner
=
THIS_MODULE
,
}
};
static
struct
phy_driver
lan8710_driver
=
{
.
phy_id
=
0x0007c0f0
,
/* OUI=0x00800f, Model#=0x0f */
.
phy_id_mask
=
0xfffffff0
,
.
name
=
"SMSC LAN8710/LAN8720"
,
.
features
=
(
PHY_BASIC_FEATURES
|
SUPPORTED_Pause
|
SUPPORTED_Asym_Pause
),
.
flags
=
PHY_HAS_INTERRUPT
|
PHY_HAS_MAGICANEG
,
/* basic functions */
.
config_aneg
=
genphy_config_aneg
,
.
read_status
=
genphy_read_status
,
.
config_init
=
smsc_phy_config_init
,
/* IRQ related */
.
ack_interrupt
=
smsc_phy_ack_interrupt
,
.
config_intr
=
smsc_phy_config_intr
,
.
suspend
=
genphy_suspend
,
.
resume
=
genphy_resume
,
.
driver
=
{
.
owner
=
THIS_MODULE
,
}
};
static
int
__init
smsc_init
(
void
)
{
int
ret
;
...
...
@@ -179,8 +203,14 @@ static int __init smsc_init(void)
if
(
ret
)
goto
err4
;
ret
=
phy_driver_register
(
&
lan8710_driver
);
if
(
ret
)
goto
err5
;
return
0
;
err5:
phy_driver_unregister
(
&
lan911x_int_driver
);
err4:
phy_driver_unregister
(
&
lan8700_driver
);
err3:
...
...
@@ -193,6 +223,7 @@ static int __init smsc_init(void)
static
void
__exit
smsc_exit
(
void
)
{
phy_driver_unregister
(
&
lan8710_driver
);
phy_driver_unregister
(
&
lan911x_int_driver
);
phy_driver_unregister
(
&
lan8700_driver
);
phy_driver_unregister
(
&
lan8187_driver
);
...
...
net/bridge/br_if.c
View file @
f0de70f8
...
...
@@ -426,7 +426,6 @@ int br_add_if(struct net_bridge *br, struct net_device *dev)
err1:
kobject_del
(
&
p
->
kobj
);
err0:
kobject_put
(
&
p
->
kobj
);
dev_set_promiscuity
(
dev
,
-
1
);
put_back:
dev_put
(
dev
);
...
...
net/ipv4/udp.c
View file @
f0de70f8
...
...
@@ -1618,7 +1618,8 @@ static struct sock *udp_get_next(struct seq_file *seq, struct sock *sk)
}
while
(
sk
&&
(
!
net_eq
(
sock_net
(
sk
),
net
)
||
sk
->
sk_family
!=
state
->
family
));
if
(
!
sk
)
{
spin_unlock_bh
(
&
state
->
udp_table
->
hash
[
state
->
bucket
].
lock
);
if
(
state
->
bucket
<
UDP_HTABLE_SIZE
)
spin_unlock_bh
(
&
state
->
udp_table
->
hash
[
state
->
bucket
].
lock
);
return
udp_get_first
(
seq
,
state
->
bucket
+
1
);
}
return
sk
;
...
...
@@ -1636,6 +1637,9 @@ static struct sock *udp_get_idx(struct seq_file *seq, loff_t pos)
static
void
*
udp_seq_start
(
struct
seq_file
*
seq
,
loff_t
*
pos
)
{
struct
udp_iter_state
*
state
=
seq
->
private
;
state
->
bucket
=
UDP_HTABLE_SIZE
;
return
*
pos
?
udp_get_idx
(
seq
,
*
pos
-
1
)
:
SEQ_START_TOKEN
;
}
...
...
net/netfilter/nf_conntrack_proto_tcp.c
View file @
f0de70f8
...
...
@@ -15,6 +15,7 @@
#include <linux/skbuff.h>
#include <linux/ipv6.h>
#include <net/ip6_checksum.h>
#include <asm/unaligned.h>
#include <net/tcp.h>
...
...
@@ -468,7 +469,7 @@ static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff,
for
(
i
=
0
;
i
<
(
opsize
-
TCPOLEN_SACK_BASE
);
i
+=
TCPOLEN_SACK_PERBLOCK
)
{
tmp
=
ntohl
(
*
((
__be32
*
)(
ptr
+
i
)
+
1
)
);
tmp
=
get_unaligned_be32
((
__be32
*
)(
ptr
+
i
)
+
1
);
if
(
after
(
tmp
,
*
sack
))
*
sack
=
tmp
;
...
...
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