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
c34c07d6
Commit
c34c07d6
authored
Aug 05, 2006
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge gregkh@master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
parents
bce89698
558e10a5
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
23 deletions
+22
-23
include/net/red.h
include/net/red.h
+1
-1
net/bridge/br_netlink.c
net/bridge/br_netlink.c
+1
-1
net/ipv4/tcp_input.c
net/ipv4/tcp_input.c
+2
-1
net/lapb/lapb_iface.c
net/lapb/lapb_iface.c
+7
-5
net/llc/af_llc.c
net/llc/af_llc.c
+8
-12
net/llc/llc_sap.c
net/llc/llc_sap.c
+2
-2
net/sched/sch_api.c
net/sched/sch_api.c
+1
-1
No files found.
include/net/red.h
View file @
c34c07d6
...
...
@@ -212,7 +212,7 @@ static inline unsigned long red_calc_qavg_from_idle_time(struct red_parms *p)
* Seems, it is the best solution to
* problem of too coarse exponent tabulation.
*/
us_idle
=
(
p
->
qavg
*
us_idle
)
>>
p
->
Scell_log
;
us_idle
=
(
p
->
qavg
*
(
u64
)
us_idle
)
>>
p
->
Scell_log
;
if
(
us_idle
<
(
p
->
qavg
>>
1
))
return
p
->
qavg
-
us_idle
;
...
...
net/bridge/br_netlink.c
View file @
c34c07d6
...
...
@@ -85,7 +85,7 @@ void br_ifinfo_notify(int event, struct net_bridge_port *port)
goto
err_out
;
err
=
br_fill_ifinfo
(
skb
,
port
,
current
->
pid
,
0
,
event
,
0
);
if
(
err
)
if
(
err
<
0
)
goto
err_kfree
;
NETLINK_CB
(
skb
).
dst_group
=
RTNLGRP_LINK
;
...
...
net/ipv4/tcp_input.c
View file @
c34c07d6
...
...
@@ -3541,7 +3541,8 @@ void tcp_cwnd_application_limited(struct sock *sk)
if
(
inet_csk
(
sk
)
->
icsk_ca_state
==
TCP_CA_Open
&&
sk
->
sk_socket
&&
!
test_bit
(
SOCK_NOSPACE
,
&
sk
->
sk_socket
->
flags
))
{
/* Limited by application or receiver window. */
u32
win_used
=
max
(
tp
->
snd_cwnd_used
,
2U
);
u32
init_win
=
tcp_init_cwnd
(
tp
,
__sk_dst_get
(
sk
));
u32
win_used
=
max
(
tp
->
snd_cwnd_used
,
init_win
);
if
(
win_used
<
tp
->
snd_cwnd
)
{
tp
->
snd_ssthresh
=
tcp_current_ssthresh
(
sk
);
tp
->
snd_cwnd
=
(
tp
->
snd_cwnd
+
win_used
)
>>
1
;
...
...
net/lapb/lapb_iface.c
View file @
c34c07d6
...
...
@@ -238,11 +238,13 @@ int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms)
goto
out_put
;
if
(
lapb
->
state
==
LAPB_STATE_0
)
{
if
(((
parms
->
mode
&
LAPB_EXTENDED
)
&&
(
parms
->
window
<
1
||
parms
->
window
>
127
))
||
(
parms
->
window
<
1
||
parms
->
window
>
7
))
if
(
parms
->
mode
&
LAPB_EXTENDED
)
{
if
(
parms
->
window
<
1
||
parms
->
window
>
127
)
goto
out_put
;
}
else
{
if
(
parms
->
window
<
1
||
parms
->
window
>
7
)
goto
out_put
;
}
lapb
->
mode
=
parms
->
mode
;
lapb
->
window
=
parms
->
window
;
}
...
...
net/llc/af_llc.c
View file @
c34c07d6
...
...
@@ -784,24 +784,20 @@ static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock,
copied
+=
used
;
len
-=
used
;
if
(
used
+
offset
<
skb
->
len
)
continue
;
if
(
!
(
flags
&
MSG_PEEK
))
{
sk_eat_skb
(
sk
,
skb
,
0
);
*
seq
=
0
;
}
}
while
(
len
>
0
);
/*
* According to UNIX98, msg_name/msg_namelen are ignored
* on connected socket. -ANK
* But... af_llc still doesn't have separate sets of methods for
* SOCK_DGRAM and SOCK_STREAM :-( So we have to do this test, will
* eventually fix this tho :-) -acme
*/
if
(
sk
->
sk_type
==
SOCK_DGRAM
)
/* For non stream protcols we get one packet per recvmsg call */
if
(
sk
->
sk_type
!=
SOCK_STREAM
)
goto
copy_uaddr
;
/* Partial read */
if
(
used
+
offset
<
skb
->
len
)
continue
;
}
while
(
len
>
0
);
out:
release_sock
(
sk
);
return
copied
;
...
...
net/llc/llc_sap.c
View file @
c34c07d6
...
...
@@ -51,10 +51,10 @@ void llc_save_primitive(struct sock *sk, struct sk_buff* skb, u8 prim)
{
struct
sockaddr_llc
*
addr
;
if
(
skb
->
sk
->
sk_type
==
SOCK_STREAM
)
/* See UNIX98 */
return
;
/* save primitive for use by the user. */
addr
=
llc_ui_skb_cb
(
skb
);
memset
(
addr
,
0
,
sizeof
(
*
addr
));
addr
->
sllc_family
=
sk
->
sk_family
;
addr
->
sllc_arphrd
=
skb
->
dev
->
type
;
addr
->
sllc_test
=
prim
==
LLC_TEST_PRIM
;
...
...
net/sched/sch_api.c
View file @
c34c07d6
...
...
@@ -430,7 +430,7 @@ qdisc_create(struct net_device *dev, u32 handle, struct rtattr **tca, int *errp)
}
#endif
err
=
-
E
INVAL
;
err
=
-
E
NOENT
;
if
(
ops
==
NULL
)
goto
err_out
;
...
...
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