Commit 233e7936 authored by Xin Long's avatar Xin Long Committed by David S. Miller

sctp: remove the typedef sctp_lower_cwnd_t

This patch is to remove the typedef sctp_lower_cwnd_t, and
replace with enum sctp_lower_cwnd in the places where it's
using this typedef.
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1126f470
...@@ -378,12 +378,12 @@ typedef enum { ...@@ -378,12 +378,12 @@ typedef enum {
} sctp_retransmit_reason_t; } sctp_retransmit_reason_t;
/* Reasons to lower cwnd. */ /* Reasons to lower cwnd. */
typedef enum { enum sctp_lower_cwnd {
SCTP_LOWER_CWND_T3_RTX, SCTP_LOWER_CWND_T3_RTX,
SCTP_LOWER_CWND_FAST_RTX, SCTP_LOWER_CWND_FAST_RTX,
SCTP_LOWER_CWND_ECNE, SCTP_LOWER_CWND_ECNE,
SCTP_LOWER_CWND_INACTIVE, SCTP_LOWER_CWND_INACTIVE,
} sctp_lower_cwnd_t; };
/* SCTP-AUTH Necessary constants */ /* SCTP-AUTH Necessary constants */
......
...@@ -950,7 +950,8 @@ int sctp_transport_hold(struct sctp_transport *); ...@@ -950,7 +950,8 @@ int sctp_transport_hold(struct sctp_transport *);
void sctp_transport_put(struct sctp_transport *); void sctp_transport_put(struct sctp_transport *);
void sctp_transport_update_rto(struct sctp_transport *, __u32); void sctp_transport_update_rto(struct sctp_transport *, __u32);
void sctp_transport_raise_cwnd(struct sctp_transport *, __u32, __u32); void sctp_transport_raise_cwnd(struct sctp_transport *, __u32, __u32);
void sctp_transport_lower_cwnd(struct sctp_transport *, sctp_lower_cwnd_t); void sctp_transport_lower_cwnd(struct sctp_transport *t,
enum sctp_lower_cwnd reason);
void sctp_transport_burst_limited(struct sctp_transport *); void sctp_transport_burst_limited(struct sctp_transport *);
void sctp_transport_burst_reset(struct sctp_transport *); void sctp_transport_burst_reset(struct sctp_transport *);
unsigned long sctp_transport_timeout(struct sctp_transport *); unsigned long sctp_transport_timeout(struct sctp_transport *);
......
...@@ -490,7 +490,7 @@ void sctp_transport_raise_cwnd(struct sctp_transport *transport, ...@@ -490,7 +490,7 @@ void sctp_transport_raise_cwnd(struct sctp_transport *transport,
* detected. * detected.
*/ */
void sctp_transport_lower_cwnd(struct sctp_transport *transport, void sctp_transport_lower_cwnd(struct sctp_transport *transport,
sctp_lower_cwnd_t reason) enum sctp_lower_cwnd reason)
{ {
struct sctp_association *asoc = transport->asoc; struct sctp_association *asoc = transport->asoc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment