sctp: remove the typedef sctp_lower_cwnd_t
authorXin Long <lucien.xin@gmail.com>
Sat, 5 Aug 2017 11:59:51 +0000 (19:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 04:33:41 +0000 (21:33 -0700)
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: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/constants.h
include/net/sctp/structs.h
net/sctp/transport.c

index 9b18044c551eb6b81e21d7cb3f72068ad0cff67a..761064ee3ac53ee31847a8e34a1d7a11c088c635 100644 (file)
@@ -378,12 +378,12 @@ typedef enum {
 } sctp_retransmit_reason_t;
 
 /* Reasons to lower cwnd. */
-typedef enum {
+enum sctp_lower_cwnd {
        SCTP_LOWER_CWND_T3_RTX,
        SCTP_LOWER_CWND_FAST_RTX,
        SCTP_LOWER_CWND_ECNE,
        SCTP_LOWER_CWND_INACTIVE,
-} sctp_lower_cwnd_t;
+};
 
 
 /* SCTP-AUTH Necessary constants */
index 66cd7639b9123d84103ac6739908fc9285678034..53802d8872d7b1d24576d6c3a645074572e273b0 100644 (file)
@@ -950,7 +950,8 @@ int sctp_transport_hold(struct sctp_transport *);
 void sctp_transport_put(struct sctp_transport *);
 void sctp_transport_update_rto(struct sctp_transport *, __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_reset(struct sctp_transport *);
 unsigned long sctp_transport_timeout(struct sctp_transport *);
index 80a97c8501a77be978a01ae9ec769f4c365bc14f..2d9bd3776bc8309d71048f71172149ae97a7a557 100644 (file)
@@ -490,7 +490,7 @@ void sctp_transport_raise_cwnd(struct sctp_transport *transport,
  * detected.
  */
 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;