OSDN Git Service

tcp: remove dead code from tcp_set_skb_tso_segs()
authorEric Dumazet <edumazet@google.com>
Mon, 19 Feb 2018 19:56:51 +0000 (11:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2018 19:24:14 +0000 (14:24 -0500)
We no longer have skbs with skb->ip_summed == CHECKSUM_NONE
in TCP write queues.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c

index b2bca37..0196923 100644 (file)
@@ -1206,7 +1206,7 @@ static void tcp_queue_skb(struct sock *sk, struct sk_buff *skb)
 /* Initialize TSO segments for a packet. */
 static void tcp_set_skb_tso_segs(struct sk_buff *skb, unsigned int mss_now)
 {
-       if (skb->len <= mss_now || skb->ip_summed == CHECKSUM_NONE) {
+       if (skb->len <= mss_now) {
                /* Avoid the costly divide in the normal
                 * non-TSO case.
                 */