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
cca9ae9b
Commit
cca9ae9b
authored
Sep 09, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6
parents
8ad19334
adf07569
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
include/net/tcp.h
include/net/tcp.h
+2
-3
net/ipv4/tcp_output.c
net/ipv4/tcp_output.c
+6
-8
No files found.
include/net/tcp.h
View file @
cca9ae9b
...
@@ -954,7 +954,6 @@ extern int tcp_write_wakeup(struct sock *);
...
@@ -954,7 +954,6 @@ extern int tcp_write_wakeup(struct sock *);
extern
void
tcp_send_fin
(
struct
sock
*
sk
);
extern
void
tcp_send_fin
(
struct
sock
*
sk
);
extern
void
tcp_send_active_reset
(
struct
sock
*
sk
,
int
priority
);
extern
void
tcp_send_active_reset
(
struct
sock
*
sk
,
int
priority
);
extern
int
tcp_send_synack
(
struct
sock
*
);
extern
int
tcp_send_synack
(
struct
sock
*
);
extern
int
tcp_transmit_skb
(
struct
sock
*
,
struct
sk_buff
*
);
extern
void
tcp_push_one
(
struct
sock
*
,
unsigned
mss_now
);
extern
void
tcp_push_one
(
struct
sock
*
,
unsigned
mss_now
);
extern
void
tcp_send_ack
(
struct
sock
*
sk
);
extern
void
tcp_send_ack
(
struct
sock
*
sk
);
extern
void
tcp_send_delayed_ack
(
struct
sock
*
sk
);
extern
void
tcp_send_delayed_ack
(
struct
sock
*
sk
);
...
@@ -1469,7 +1468,7 @@ tcp_nagle_check(struct tcp_opt *tp, struct sk_buff *skb, unsigned mss_now, int n
...
@@ -1469,7 +1468,7 @@ tcp_nagle_check(struct tcp_opt *tp, struct sk_buff *skb, unsigned mss_now, int n
tcp_minshall_check
(
tp
))));
tcp_minshall_check
(
tp
))));
}
}
extern
void
tcp_set_skb_tso_factor
(
struct
sk_buff
*
,
unsigned
int
,
unsigned
int
);
extern
void
tcp_set_skb_tso_factor
(
struct
sk_buff
*
,
unsigned
int
);
/* This checks if the data bearing packet SKB (usually sk->sk_send_head)
/* This checks if the data bearing packet SKB (usually sk->sk_send_head)
* should be put on the wire right now.
* should be put on the wire right now.
...
@@ -1480,7 +1479,7 @@ static __inline__ int tcp_snd_test(struct tcp_opt *tp, struct sk_buff *skb,
...
@@ -1480,7 +1479,7 @@ static __inline__ int tcp_snd_test(struct tcp_opt *tp, struct sk_buff *skb,
int
pkts
=
TCP_SKB_CB
(
skb
)
->
tso_factor
;
int
pkts
=
TCP_SKB_CB
(
skb
)
->
tso_factor
;
if
(
!
pkts
)
{
if
(
!
pkts
)
{
tcp_set_skb_tso_factor
(
skb
,
cur_mss
,
tp
->
mss_cache_std
);
tcp_set_skb_tso_factor
(
skb
,
tp
->
mss_cache_std
);
pkts
=
TCP_SKB_CB
(
skb
)
->
tso_factor
;
pkts
=
TCP_SKB_CB
(
skb
)
->
tso_factor
;
}
}
...
...
net/ipv4/tcp_output.c
View file @
cca9ae9b
...
@@ -257,7 +257,7 @@ static __inline__ u16 tcp_select_window(struct sock *sk)
...
@@ -257,7 +257,7 @@ static __inline__ u16 tcp_select_window(struct sock *sk)
* We are working here with either a clone of the original
* We are working here with either a clone of the original
* SKB, or a fresh unique copy made by the retransmit engine.
* SKB, or a fresh unique copy made by the retransmit engine.
*/
*/
int
tcp_transmit_skb
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
static
int
tcp_transmit_skb
(
struct
sock
*
sk
,
struct
sk_buff
*
skb
)
{
{
if
(
skb
!=
NULL
)
{
if
(
skb
!=
NULL
)
{
struct
inet_opt
*
inet
=
inet_sk
(
sk
);
struct
inet_opt
*
inet
=
inet_sk
(
sk
);
...
@@ -422,8 +422,7 @@ void tcp_push_one(struct sock *sk, unsigned cur_mss)
...
@@ -422,8 +422,7 @@ void tcp_push_one(struct sock *sk, unsigned cur_mss)
}
}
}
}
void
tcp_set_skb_tso_factor
(
struct
sk_buff
*
skb
,
unsigned
int
mss
,
void
tcp_set_skb_tso_factor
(
struct
sk_buff
*
skb
,
unsigned
int
mss_std
)
unsigned
int
mss_std
)
{
{
if
(
skb
->
len
<=
mss_std
)
{
if
(
skb
->
len
<=
mss_std
)
{
/* Avoid the costly divide in the normal
/* Avoid the costly divide in the normal
...
@@ -434,7 +433,7 @@ void tcp_set_skb_tso_factor(struct sk_buff *skb, unsigned int mss,
...
@@ -434,7 +433,7 @@ void tcp_set_skb_tso_factor(struct sk_buff *skb, unsigned int mss,
unsigned
int
factor
;
unsigned
int
factor
;
factor
=
skb
->
len
+
(
mss_std
-
1
);
factor
=
skb
->
len
+
(
mss_std
-
1
);
factor
/=
mss
;
factor
/=
mss
_std
;
TCP_SKB_CB
(
skb
)
->
tso_factor
=
factor
;
TCP_SKB_CB
(
skb
)
->
tso_factor
=
factor
;
}
}
}
}
...
@@ -501,8 +500,8 @@ static int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len)
...
@@ -501,8 +500,8 @@ static int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len)
TCP_SKB_CB
(
buff
)
->
when
=
TCP_SKB_CB
(
skb
)
->
when
;
TCP_SKB_CB
(
buff
)
->
when
=
TCP_SKB_CB
(
skb
)
->
when
;
/* Fix up tso_factor for both original and new SKB. */
/* Fix up tso_factor for both original and new SKB. */
tcp_set_skb_tso_factor
(
skb
,
tp
->
mss_cache
,
tp
->
mss_cache
_std
);
tcp_set_skb_tso_factor
(
skb
,
tp
->
mss_cache_std
);
tcp_set_skb_tso_factor
(
buff
,
tp
->
mss_cache
,
tp
->
mss_cache
_std
);
tcp_set_skb_tso_factor
(
buff
,
tp
->
mss_cache_std
);
/* Link BUFF into the send queue. */
/* Link BUFF into the send queue. */
__skb_append
(
skb
,
buff
);
__skb_append
(
skb
,
buff
);
...
@@ -1561,7 +1560,7 @@ int tcp_write_wakeup(struct sock *sk)
...
@@ -1561,7 +1560,7 @@ int tcp_write_wakeup(struct sock *sk)
tp
->
mss_cache
=
tp
->
mss_cache_std
;
tp
->
mss_cache
=
tp
->
mss_cache_std
;
}
}
}
else
if
(
!
TCP_SKB_CB
(
skb
)
->
tso_factor
)
}
else
if
(
!
TCP_SKB_CB
(
skb
)
->
tso_factor
)
tcp_set_skb_tso_factor
(
skb
,
mss
,
tp
->
mss_cache_std
);
tcp_set_skb_tso_factor
(
skb
,
tp
->
mss_cache_std
);
TCP_SKB_CB
(
skb
)
->
flags
|=
TCPCB_FLAG_PSH
;
TCP_SKB_CB
(
skb
)
->
flags
|=
TCPCB_FLAG_PSH
;
TCP_SKB_CB
(
skb
)
->
when
=
tcp_time_stamp
;
TCP_SKB_CB
(
skb
)
->
when
=
tcp_time_stamp
;
...
@@ -1624,6 +1623,5 @@ EXPORT_SYMBOL(tcp_make_synack);
...
@@ -1624,6 +1623,5 @@ EXPORT_SYMBOL(tcp_make_synack);
EXPORT_SYMBOL
(
tcp_send_synack
);
EXPORT_SYMBOL
(
tcp_send_synack
);
EXPORT_SYMBOL
(
tcp_simple_retransmit
);
EXPORT_SYMBOL
(
tcp_simple_retransmit
);
EXPORT_SYMBOL
(
tcp_sync_mss
);
EXPORT_SYMBOL
(
tcp_sync_mss
);
EXPORT_SYMBOL
(
tcp_transmit_skb
);
EXPORT_SYMBOL
(
tcp_write_wakeup
);
EXPORT_SYMBOL
(
tcp_write_wakeup
);
EXPORT_SYMBOL
(
tcp_write_xmit
);
EXPORT_SYMBOL
(
tcp_write_xmit
);
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