tcp: Split BUG_ON() in tcp_tso_should_defer() into two assertions
authorStefano Brivio <sbrivio@redhat.com>
Thu, 4 Jan 2018 23:38:05 +0000 (00:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 19:12:26 +0000 (14:12 -0500)
commitc8c9aeb519496f403563c715616dfc2a921a7eae
treef5f87fc6fc90d5581bf5a1b2893bee30dc466491
parent54dc3e3324829d346c959ff774626d9c6c9a65b5
tcp: Split BUG_ON() in tcp_tso_should_defer() into two assertions

The two conditions triggering BUG_ON() are somewhat unrelated:
the tcp_skb_pcount() check is meant to catch TSO flaws, the
second one checks sanity of congestion window bookkeeping.

Split them into two separate BUG_ON() assertions on two lines,
so that we know which one actually triggers, when they do.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c