* [PATCH net] tcp: delete unused parameter in tcp_nagle_check()
@ 2014-03-24 6:49 Weiping Pan
2014-03-24 13:08 ` Eric Dumazet
0 siblings, 1 reply; 3+ messages in thread
From: Weiping Pan @ 2014-03-24 6:49 UTC (permalink / raw)
To: netdev; +Cc: edumazet
After commit d4589926d7a9 (tcp: refine TSO splits), tcp_nagle_check() does
not use parameter mss_now anymore.
Signed-off-by: Weiping Pan <panweiping3@gmail.com>
---
net/ipv4/tcp_output.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 17a11e6..fbf4403 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -1426,7 +1426,7 @@ static void tcp_minshall_update(struct tcp_sock *tp, unsigned int mss_now,
* With Minshall's modification: all sent small packets are ACKed.
*/
static bool tcp_nagle_check(bool partial, const struct tcp_sock *tp,
- unsigned int mss_now, int nonagle)
+ int nonagle)
{
return partial &&
((nonagle & TCP_NAGLE_CORK) ||
@@ -1458,7 +1458,7 @@ static unsigned int tcp_mss_split_point(const struct sock *sk,
* to include this last segment in this skb.
* Otherwise, we'll split the skb at last MSS boundary
*/
- if (tcp_nagle_check(partial != 0, tp, mss_now, nonagle))
+ if (tcp_nagle_check(partial != 0, tp, nonagle))
return needed - partial;
return needed;
@@ -1521,7 +1521,7 @@ static inline bool tcp_nagle_test(const struct tcp_sock *tp, const struct sk_buf
if (tcp_urg_mode(tp) || (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN))
return true;
- if (!tcp_nagle_check(skb->len < cur_mss, tp, cur_mss, nonagle))
+ if (!tcp_nagle_check(skb->len < cur_mss, tp, nonagle))
return true;
return false;
--
1.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] tcp: delete unused parameter in tcp_nagle_check()
2014-03-24 6:49 [PATCH net] tcp: delete unused parameter in tcp_nagle_check() Weiping Pan
@ 2014-03-24 13:08 ` Eric Dumazet
2014-03-26 19:43 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Eric Dumazet @ 2014-03-24 13:08 UTC (permalink / raw)
To: Weiping Pan; +Cc: netdev, edumazet
On Mon, 2014-03-24 at 14:49 +0800, Weiping Pan wrote:
> After commit d4589926d7a9 (tcp: refine TSO splits), tcp_nagle_check() does
> not use parameter mss_now anymore.
>
> Signed-off-by: Weiping Pan <panweiping3@gmail.com>
> ---
Its not a fix and should target net-next, otherwise it looks good to me.
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] tcp: delete unused parameter in tcp_nagle_check()
2014-03-24 13:08 ` Eric Dumazet
@ 2014-03-26 19:43 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2014-03-26 19:43 UTC (permalink / raw)
To: eric.dumazet; +Cc: panweiping3, netdev, edumazet
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Mon, 24 Mar 2014 06:08:47 -0700
> On Mon, 2014-03-24 at 14:49 +0800, Weiping Pan wrote:
>> After commit d4589926d7a9 (tcp: refine TSO splits), tcp_nagle_check() does
>> not use parameter mss_now anymore.
>>
>> Signed-off-by: Weiping Pan <panweiping3@gmail.com>
>> ---
>
> Its not a fix and should target net-next, otherwise it looks good to me.
Agreed, applied to net-next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-26 19:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 6:49 [PATCH net] tcp: delete unused parameter in tcp_nagle_check() Weiping Pan
2014-03-24 13:08 ` Eric Dumazet
2014-03-26 19:43 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).