Skip to content

Commit 125c298

Browse files
lxindavem330
authored andcommitted
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>
1 parent 233e793 commit 125c298

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎include/net/sctp/constants.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,12 @@ typedef enum {
370370
peer */
371371

372372
/* Reasons to retransmit. */
373-
typedef enum {
373+
enum sctp_retransmit_reason {
374374
SCTP_RTXR_T3_RTX,
375375
SCTP_RTXR_FAST_RTX,
376376
SCTP_RTXR_PMTUD,
377377
SCTP_RTXR_T1_RTX,
378-
} sctp_retransmit_reason_t;
378+
};
379379

380380
/* Reasons to lower cwnd. */
381381
enum sctp_lower_cwnd {

‎include/net/sctp/structs.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,8 +1054,8 @@ int sctp_outq_sack(struct sctp_outq *, struct sctp_chunk *);
10541054
int sctp_outq_is_empty(const struct sctp_outq *);
10551055
void sctp_outq_restart(struct sctp_outq *);
10561056

1057-
void sctp_retransmit(struct sctp_outq *, struct sctp_transport *,
1058-
sctp_retransmit_reason_t);
1057+
void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport,
1058+
enum sctp_retransmit_reason reason);
10591059
void sctp_retransmit_mark(struct sctp_outq *, struct sctp_transport *, __u8);
10601060
void sctp_outq_uncork(struct sctp_outq *, gfp_t gfp);
10611061
void sctp_prsctp_prune(struct sctp_association *asoc,

‎net/sctp/outqueue.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ void sctp_retransmit_mark(struct sctp_outq *q,
534534
* one packet out.
535535
*/
536536
void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport,
537-
sctp_retransmit_reason_t reason)
537+
enum sctp_retransmit_reason reason)
538538
{
539539
struct net *net = sock_net(q->asoc->base.sk);
540540

0 commit comments

Comments
 (0)