diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index e6291dde3348..9f8a80ba17bd 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -1415,6 +1415,7 @@ static int tcp_shifted_skb(struct sock *sk, struct sk_buff *prev, | |||
1415 | 1415 | ||
1416 | if (skb->len > 0) { | 1416 | if (skb->len > 0) { |
1417 | BUG_ON(!tcp_skb_pcount(skb)); | 1417 | BUG_ON(!tcp_skb_pcount(skb)); |
1418 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_SACKSHIFTED); | ||
1418 | return 0; | 1419 | return 0; |
1419 | } | 1420 | } |
1420 | 1421 | ||
@@ -1436,6 +1437,8 @@ static int tcp_shifted_skb(struct sock *sk, struct sk_buff *prev, | |||
1436 | tcp_unlink_write_queue(skb, sk); | 1437 | tcp_unlink_write_queue(skb, sk); |
1437 | sk_wmem_free_skb(sk, skb); | 1438 | sk_wmem_free_skb(sk, skb); |
1438 | 1439 | ||
1440 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_SACKMERGED); | ||
1441 | |||
1439 | return 1; | 1442 | return 1; |
1440 | } | 1443 | } |
1441 | 1444 | ||
@@ -1594,6 +1597,7 @@ noop: | |||
1594 | return skb; | 1597 | return skb; |
1595 | 1598 | ||
1596 | fallback: | 1599 | fallback: |
1600 | NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_SACKSHIFTFALLBACK); | ||
1597 | return NULL; | 1601 | return NULL; |
1598 | } | 1602 | } |
1599 | 1603 | ||