|
|
Re: [PATCH 2/2 net-next] tcp: sk_add_backlog() is too agressive for TCP |
On Tue, 2012-04-24 at 11:40 +0300, Ilpo Järvinen wrote: > diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c > index 8bb6ade..33b87b2 100644 > --- a/net/ipv4/tcp.c > +++ b/net/ipv4/tcp.c > @@ -2820,7 +2820,11 @@ found: > flush |= (__force int)(flags & TCP_FLAG_CWR); > flush |= (__force int)((flags ^ tcp_flag_word(th2)) & > ~(TCP_FLAG_CWR | TCP_FLAG_FIN | TCP_FLAG_PSH)); > - flush |= (__force int)(th->ack_seq ^ th2->ack_seq); > + > + ackgap = skb_shinfo(p)->ack_size; > + ackdiff = th2->ack_seq - th->ack_seq; > + flush |= (ackdiff - 1) >= ackgap; > + > for (i = sizeof(*th); i < thlen; i += 4) > flush |= *(u32 *)((u8 *)th + i) ^ > *(u32 *)((u8 *)th2 + i); > See how we duplicate tcp stack in GRO layer ;) Really I have many doubts about GRO today. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Kernel Discussion] [Ethernet Bridging] [Linux Wireless Networking] [Linux Bluetooth Networking] [Linux Networking Users] [VLAN] [Git] [IETF Annouce] [Linux Assembly] [Security] [Bugtraq] [Photo] [Singles Social Networking] [Yosemite Information] [MIPS Linux] [ARM Linux Kernel] [ARM Linux] [Linux Virtualization] [Linux Security] [Linux IDE] [Linux RAID] [Linux SCSI] [Free Dating]
![]() |
![]() |