diff options
| author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2015-11-30 09:17:06 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-12-02 23:39:46 -0500 |
| commit | 38ee8fb67c3457f36f5137073c4b8ac2436d2393 (patch) | |
| tree | cb6729ec00b0dab5d0fdb2f809f5f0c8e714301b /include/net/sctp | |
| parent | 45f6fad84cc305103b28d73482b344d7f5b76f39 (diff) | |
sctp: convert sack_needed and sack_generation to bits
They don't need to be any bigger than that and with this we start a new
bitfield for tracking association runtime stuff, like zero window
situation.
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
| -rw-r--r-- | include/net/sctp/structs.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 495c87e367b3..7bbb71081aeb 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
| @@ -775,10 +775,10 @@ struct sctp_transport { | |||
| 775 | hb_sent:1, | 775 | hb_sent:1, |
| 776 | 776 | ||
| 777 | /* Is the Path MTU update pending on this tranport */ | 777 | /* Is the Path MTU update pending on this tranport */ |
| 778 | pmtu_pending:1; | 778 | pmtu_pending:1, |
| 779 | 779 | ||
| 780 | /* Has this transport moved the ctsn since we last sacked */ | 780 | /* Has this transport moved the ctsn since we last sacked */ |
| 781 | __u32 sack_generation; | 781 | sack_generation:1; |
| 782 | u32 dst_cookie; | 782 | u32 dst_cookie; |
| 783 | 783 | ||
| 784 | struct flowi fl; | 784 | struct flowi fl; |
| @@ -1482,19 +1482,19 @@ struct sctp_association { | |||
| 1482 | prsctp_capable:1, /* Can peer do PR-SCTP? */ | 1482 | prsctp_capable:1, /* Can peer do PR-SCTP? */ |
| 1483 | auth_capable:1; /* Is peer doing SCTP-AUTH? */ | 1483 | auth_capable:1; /* Is peer doing SCTP-AUTH? */ |
| 1484 | 1484 | ||
| 1485 | /* Ack State : This flag indicates if the next received | 1485 | /* sack_needed : This flag indicates if the next received |
| 1486 | * : packet is to be responded to with a | 1486 | * : packet is to be responded to with a |
| 1487 | * : SACK. This is initializedto 0. When a packet | 1487 | * : SACK. This is initialized to 0. When a packet |
| 1488 | * : is received it is incremented. If this value | 1488 | * : is received sack_cnt is incremented. If this value |
| 1489 | * : reaches 2 or more, a SACK is sent and the | 1489 | * : reaches 2 or more, a SACK is sent and the |
| 1490 | * : value is reset to 0. Note: This is used only | 1490 | * : value is reset to 0. Note: This is used only |
| 1491 | * : when no DATA chunks are received out of | 1491 | * : when no DATA chunks are received out of |
| 1492 | * : order. When DATA chunks are out of order, | 1492 | * : order. When DATA chunks are out of order, |
| 1493 | * : SACK's are not delayed (see Section 6). | 1493 | * : SACK's are not delayed (see Section 6). |
| 1494 | */ | 1494 | */ |
| 1495 | __u8 sack_needed; /* Do we need to sack the peer? */ | 1495 | __u8 sack_needed:1, /* Do we need to sack the peer? */ |
| 1496 | sack_generation:1; | ||
| 1496 | __u32 sack_cnt; | 1497 | __u32 sack_cnt; |
| 1497 | __u32 sack_generation; | ||
| 1498 | 1498 | ||
| 1499 | __u32 adaptation_ind; /* Adaptation Code point. */ | 1499 | __u32 adaptation_ind; /* Adaptation Code point. */ |
| 1500 | 1500 | ||
