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
6332178d
Commit
6332178d
authored
Dec 23, 2008
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
Conflicts: drivers/net/ppp_generic.c
parents
908a7a16
739840d5
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
24 deletions
+29
-24
drivers/net/bnx2.c
drivers/net/bnx2.c
+3
-3
drivers/net/jme.h
drivers/net/jme.h
+1
-1
drivers/net/phy/mdio_bus.c
drivers/net/phy/mdio_bus.c
+3
-2
drivers/net/ppp_generic.c
drivers/net/ppp_generic.c
+13
-15
drivers/net/starfire.c
drivers/net/starfire.c
+5
-0
include/net/irda/irda_device.h
include/net/irda/irda_device.h
+3
-1
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+0
-2
net/socket.c
net/socket.c
+1
-0
No files found.
drivers/net/bnx2.c
View file @
6332178d
...
...
@@ -547,9 +547,9 @@ bnx2_free_rx_mem(struct bnx2 *bp)
for
(
j
=
0
;
j
<
bp
->
rx_max_pg_ring
;
j
++
)
{
if
(
rxr
->
rx_pg_desc_ring
[
j
])
pci_free_consistent
(
bp
->
pdev
,
RXBD_RING_SIZE
,
rxr
->
rx_pg_desc_ring
[
i
],
rxr
->
rx_pg_desc_mapping
[
i
]);
rxr
->
rx_pg_desc_ring
[
i
]
=
NULL
;
rxr
->
rx_pg_desc_ring
[
j
],
rxr
->
rx_pg_desc_mapping
[
j
]);
rxr
->
rx_pg_desc_ring
[
j
]
=
NULL
;
}
if
(
rxr
->
rx_pg_ring
)
vfree
(
rxr
->
rx_pg_ring
);
...
...
drivers/net/jme.h
View file @
6332178d
...
...
@@ -22,7 +22,7 @@
*/
#ifndef __JME_H_INCLUDED__
#define __JME_H_INCLUDE
E
__
#define __JME_H_INCLUDE
D
__
#define DRV_NAME "jme"
#define DRV_VERSION "1.0.3"
...
...
drivers/net/phy/mdio_bus.c
View file @
6332178d
...
...
@@ -105,8 +105,6 @@ int mdiobus_register(struct mii_bus *bus)
return
-
EINVAL
;
}
bus
->
state
=
MDIOBUS_REGISTERED
;
mutex_init
(
&
bus
->
mdio_lock
);
if
(
bus
->
reset
)
...
...
@@ -123,6 +121,9 @@ int mdiobus_register(struct mii_bus *bus)
}
}
if
(
!
err
)
bus
->
state
=
MDIOBUS_REGISTERED
;
pr_info
(
"%s: probed
\n
"
,
bus
->
name
);
return
err
;
...
...
drivers/net/ppp_generic.c
View file @
6332178d
...
...
@@ -117,6 +117,7 @@ struct ppp {
unsigned
long
last_xmit
;
/* jiffies when last pkt sent 9c */
unsigned
long
last_recv
;
/* jiffies when last pkt rcvd a0 */
struct
net_device
*
dev
;
/* network interface device a4 */
int
closing
;
/* is device closing down? a8 */
#ifdef CONFIG_PPP_MULTILINK
int
nxchan
;
/* next channel to send something on */
u32
nxseq
;
/* next sequence number to send */
...
...
@@ -983,7 +984,7 @@ ppp_xmit_process(struct ppp *ppp)
struct
sk_buff
*
skb
;
ppp_xmit_lock
(
ppp
);
if
(
ppp
->
dev
)
{
if
(
!
ppp
->
closing
)
{
ppp_push
(
ppp
);
while
(
!
ppp
->
xmit_pending
&&
(
skb
=
skb_dequeue
(
&
ppp
->
file
.
xq
)))
...
...
@@ -1451,8 +1452,7 @@ static inline void
ppp_do_recv
(
struct
ppp
*
ppp
,
struct
sk_buff
*
skb
,
struct
channel
*
pch
)
{
ppp_recv_lock
(
ppp
);
/* ppp->dev == 0 means interface is closing down */
if
(
ppp
->
dev
)
if
(
!
ppp
->
closing
)
ppp_receive_frame
(
ppp
,
skb
,
pch
);
else
kfree_skb
(
skb
);
...
...
@@ -2484,18 +2484,16 @@ init_ppp_file(struct ppp_file *pf, int kind)
*/
static
void
ppp_shutdown_interface
(
struct
ppp
*
ppp
)
{
struct
net_device
*
dev
;
mutex_lock
(
&
all_ppp_mutex
);
/* This will call dev_close() for us. */
ppp_lock
(
ppp
);
dev
=
ppp
->
dev
;
ppp
->
dev
=
NULL
;
if
(
!
ppp
->
closing
)
{
ppp
->
closing
=
1
;
ppp_unlock
(
ppp
);
/* This will call dev_close() for us. */
if
(
dev
)
{
unregister_netdev
(
dev
);
free_netdev
(
dev
);
}
unregister_netdev
(
ppp
->
dev
);
}
else
ppp_unlock
(
ppp
);
unit_put
(
&
ppp_units_idr
,
ppp
->
file
.
index
);
ppp
->
file
.
dead
=
1
;
ppp
->
owner
=
NULL
;
...
...
@@ -2540,7 +2538,7 @@ static void ppp_destroy_interface(struct ppp *ppp)
if
(
ppp
->
xmit_pending
)
kfree_skb
(
ppp
->
xmit_pending
);
kfree
(
ppp
);
free_netdev
(
ppp
->
dev
);
}
/*
...
...
@@ -2602,7 +2600,7 @@ ppp_connect_channel(struct channel *pch, int unit)
if
(
pch
->
file
.
hdrlen
>
ppp
->
file
.
hdrlen
)
ppp
->
file
.
hdrlen
=
pch
->
file
.
hdrlen
;
hdrlen
=
pch
->
file
.
hdrlen
+
2
;
/* for protocol bytes */
if
(
ppp
->
dev
&&
hdrlen
>
ppp
->
dev
->
hard_header_len
)
if
(
hdrlen
>
ppp
->
dev
->
hard_header_len
)
ppp
->
dev
->
hard_header_len
=
hdrlen
;
list_add_tail
(
&
pch
->
clist
,
&
ppp
->
channels
);
++
ppp
->
n_channels
;
...
...
drivers/net/starfire.c
View file @
6332178d
...
...
@@ -1503,6 +1503,11 @@ static int __netdev_rx(struct net_device *dev, int *quota)
desc
->
status
=
0
;
np
->
rx_done
=
(
np
->
rx_done
+
1
)
%
DONE_Q_SIZE
;
}
if
(
*
quota
==
0
)
{
/* out of rx quota */
retcode
=
1
;
goto
out
;
}
writew
(
np
->
rx_done
,
np
->
base
+
CompletionQConsumerIdx
);
out:
...
...
include/net/irda/irda_device.h
View file @
6332178d
...
...
@@ -136,8 +136,10 @@ struct dongle_reg {
/*
* Per-packet information we need to hide inside sk_buff
* (must not exceed 48 bytes, check with struct sk_buff)
* The default_qdisc_pad field is a temporary hack.
*/
struct
irda_skb_cb
{
unsigned
int
default_qdisc_pad
;
magic_t
magic
;
/* Be sure that we can trust the information */
__u32
next_speed
;
/* The Speed to be set *after* this frame */
__u16
mtt
;
/* Minimum turn around time */
...
...
net/bluetooth/rfcomm/core.c
View file @
6332178d
...
...
@@ -1781,8 +1781,6 @@ static inline void rfcomm_accept_connection(struct rfcomm_session *s)
if
(
err
<
0
)
return
;
__module_get
(
nsock
->
ops
->
owner
);
/* Set our callbacks */
nsock
->
sk
->
sk_data_ready
=
rfcomm_l2data_ready
;
nsock
->
sk
->
sk_state_change
=
rfcomm_l2state_change
;
...
...
net/socket.c
View file @
6332178d
...
...
@@ -2306,6 +2306,7 @@ int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
}
(
*
newsock
)
->
ops
=
sock
->
ops
;
__module_get
((
*
newsock
)
->
ops
->
owner
);
done:
return
err
;
...
...
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