]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tcp: remove obsolete check in tcp_set_skb_tso_segs()
authorEric Dumazet <edumazet@google.com>
Thu, 11 Jun 2015 16:15:19 +0000 (09:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 23:33:11 +0000 (16:33 -0700)
commitb5e2c45783aa785cbb195e43d5f0c0c6b228bde4
tree41407a1b7f806138bed09918c3d9fe55daf0decb
parentf69ad292cfd13aa7ee00847320c6bb9ba2154e87
tcp: remove obsolete check in tcp_set_skb_tso_segs()

We had various issues in the past when TCP stack was modifying
gso_size/gso_segs while clones were in flight.

Commit c52e2421f73 ("tcp: must unclone packets before mangling them")
fixed these bugs and added a WARN_ON_ONCE(skb_cloned(skb)); in
tcp_set_skb_tso_segs()

These bugs are now fixed, and because TCP stack now only sets
shinfo->gso_size|segs on the clone itself, the check can be removed.

As a result of this change, compiler inlines tcp_set_skb_tso_segs() in
tcp_init_tso_segs()

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