diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-08-05 07:59:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 00:33:41 -0400 |
commit | 125c29820252bfa5bf8081e75618e4ee7e9487da (patch) | |
tree | 83f2af92634ffaab1da565a9eeb177ec656d0879 | |
parent | 233e7936c84b7d7dd90c10e2ba27abb5ab42956f (diff) |
sctp: remove the typedef sctp_retransmit_reason_t
This patch is to remove the typedef sctp_retransmit_reason_t, and
replace with enum sctp_retransmit_reason in the places where it's
using this typedef.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/sctp/constants.h | 4 | ||||
-rw-r--r-- | include/net/sctp/structs.h | 4 | ||||
-rw-r--r-- | net/sctp/outqueue.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/net/sctp/constants.h b/include/net/sctp/constants.h index 761064ee3ac5..922fba5880d6 100644 --- a/include/net/sctp/constants.h +++ b/include/net/sctp/constants.h | |||
@@ -370,12 +370,12 @@ typedef enum { | |||
370 | peer */ | 370 | peer */ |
371 | 371 | ||
372 | /* Reasons to retransmit. */ | 372 | /* Reasons to retransmit. */ |
373 | typedef enum { | 373 | enum sctp_retransmit_reason { |
374 | SCTP_RTXR_T3_RTX, | 374 | SCTP_RTXR_T3_RTX, |
375 | SCTP_RTXR_FAST_RTX, | 375 | SCTP_RTXR_FAST_RTX, |
376 | SCTP_RTXR_PMTUD, | 376 | SCTP_RTXR_PMTUD, |
377 | SCTP_RTXR_T1_RTX, | 377 | SCTP_RTXR_T1_RTX, |
378 | } sctp_retransmit_reason_t; | 378 | }; |
379 | 379 | ||
380 | /* Reasons to lower cwnd. */ | 380 | /* Reasons to lower cwnd. */ |
381 | enum sctp_lower_cwnd { | 381 | enum sctp_lower_cwnd { |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 53802d8872d7..5e872acee6e3 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -1054,8 +1054,8 @@ int sctp_outq_sack(struct sctp_outq *, struct sctp_chunk *); | |||
1054 | int sctp_outq_is_empty(const struct sctp_outq *); | 1054 | int sctp_outq_is_empty(const struct sctp_outq *); |
1055 | void sctp_outq_restart(struct sctp_outq *); | 1055 | void sctp_outq_restart(struct sctp_outq *); |
1056 | 1056 | ||
1057 | void sctp_retransmit(struct sctp_outq *, struct sctp_transport *, | 1057 | void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport, |
1058 | sctp_retransmit_reason_t); | 1058 | enum sctp_retransmit_reason reason); |
1059 | void sctp_retransmit_mark(struct sctp_outq *, struct sctp_transport *, __u8); | 1059 | void sctp_retransmit_mark(struct sctp_outq *, struct sctp_transport *, __u8); |
1060 | void sctp_outq_uncork(struct sctp_outq *, gfp_t gfp); | 1060 | void sctp_outq_uncork(struct sctp_outq *, gfp_t gfp); |
1061 | void sctp_prsctp_prune(struct sctp_association *asoc, | 1061 | void sctp_prsctp_prune(struct sctp_association *asoc, |
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index d2a8adfd4a6f..08ee0ed9a0c6 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c | |||
@@ -534,7 +534,7 @@ void sctp_retransmit_mark(struct sctp_outq *q, | |||
534 | * one packet out. | 534 | * one packet out. |
535 | */ | 535 | */ |
536 | void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport, | 536 | void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport, |
537 | sctp_retransmit_reason_t reason) | 537 | enum sctp_retransmit_reason reason) |
538 | { | 538 | { |
539 | struct net *net = sock_net(q->asoc->base.sk); | 539 | struct net *net = sock_net(q->asoc->base.sk); |
540 | 540 | ||