diff options
Diffstat (limited to 'net/sctp/output.c')
| -rw-r--r-- | net/sctp/output.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c index 4e90188bf489..f5200a2ad852 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c | |||
| @@ -311,6 +311,8 @@ static sctp_xmit_t __sctp_packet_append_chunk(struct sctp_packet *packet, | |||
| 311 | 311 | ||
| 312 | case SCTP_CID_SACK: | 312 | case SCTP_CID_SACK: |
| 313 | packet->has_sack = 1; | 313 | packet->has_sack = 1; |
| 314 | if (chunk->asoc) | ||
| 315 | chunk->asoc->stats.osacks++; | ||
| 314 | break; | 316 | break; |
| 315 | 317 | ||
| 316 | case SCTP_CID_AUTH: | 318 | case SCTP_CID_AUTH: |
| @@ -584,11 +586,13 @@ int sctp_packet_transmit(struct sctp_packet *packet) | |||
| 584 | */ | 586 | */ |
| 585 | 587 | ||
| 586 | /* Dump that on IP! */ | 588 | /* Dump that on IP! */ |
| 587 | if (asoc && asoc->peer.last_sent_to != tp) { | 589 | if (asoc) { |
| 588 | /* Considering the multiple CPU scenario, this is a | 590 | asoc->stats.opackets++; |
| 589 | * "correcter" place for last_sent_to. --xguo | 591 | if (asoc->peer.last_sent_to != tp) |
| 590 | */ | 592 | /* Considering the multiple CPU scenario, this is a |
| 591 | asoc->peer.last_sent_to = tp; | 593 | * "correcter" place for last_sent_to. --xguo |
| 594 | */ | ||
| 595 | asoc->peer.last_sent_to = tp; | ||
| 592 | } | 596 | } |
| 593 | 597 | ||
| 594 | if (has_data) { | 598 | if (has_data) { |
