aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/associola.c4
-rw-r--r--net/sctp/input.c4
-rw-r--r--net/sctp/output.c4
-rw-r--r--net/sctp/outqueue.c2
-rw-r--r--net/sctp/sm_sideeffect.c4
-rw-r--r--net/sctp/sm_statefuns.c4
-rw-r--r--net/sctp/sysctl.c10
7 files changed, 13 insertions, 19 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index acd2edbc073e..5bc9ab161b37 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -1408,7 +1408,7 @@ static inline int sctp_peer_needs_update(struct sctp_association *asoc)
1408} 1408}
1409 1409
1410/* Increase asoc's rwnd by len and send any window update SACK if needed. */ 1410/* Increase asoc's rwnd by len and send any window update SACK if needed. */
1411void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned len) 1411void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned int len)
1412{ 1412{
1413 struct sctp_chunk *sack; 1413 struct sctp_chunk *sack;
1414 struct timer_list *timer; 1414 struct timer_list *timer;
@@ -1465,7 +1465,7 @@ void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned len)
1465} 1465}
1466 1466
1467/* Decrease asoc's rwnd by len. */ 1467/* Decrease asoc's rwnd by len. */
1468void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned len) 1468void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned int len)
1469{ 1469{
1470 int rx_count; 1470 int rx_count;
1471 int over = 0; 1471 int over = 0;
diff --git a/net/sctp/input.c b/net/sctp/input.c
index 80f71af71384..80564fe03024 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -342,7 +342,7 @@ int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb)
342 sctp_bh_lock_sock(sk); 342 sctp_bh_lock_sock(sk);
343 343
344 if (sock_owned_by_user(sk)) { 344 if (sock_owned_by_user(sk)) {
345 if (sk_add_backlog(sk, skb)) 345 if (sk_add_backlog(sk, skb, sk->sk_rcvbuf))
346 sctp_chunk_free(chunk); 346 sctp_chunk_free(chunk);
347 else 347 else
348 backloged = 1; 348 backloged = 1;
@@ -376,7 +376,7 @@ static int sctp_add_backlog(struct sock *sk, struct sk_buff *skb)
376 struct sctp_ep_common *rcvr = chunk->rcvr; 376 struct sctp_ep_common *rcvr = chunk->rcvr;
377 int ret; 377 int ret;
378 378
379 ret = sk_add_backlog(sk, skb); 379 ret = sk_add_backlog(sk, skb, sk->sk_rcvbuf);
380 if (!ret) { 380 if (!ret) {
381 /* Hold the assoc/ep while hanging on the backlog queue. 381 /* Hold the assoc/ep while hanging on the backlog queue.
382 * This way, we know structures we need will not disappear 382 * This way, we know structures we need will not disappear
diff --git a/net/sctp/output.c b/net/sctp/output.c
index 817174eb5f41..69534c5f8afa 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -663,8 +663,8 @@ static sctp_xmit_t sctp_packet_can_append_data(struct sctp_packet *packet,
663 */ 663 */
664 if (!sctp_sk(asoc->base.sk)->nodelay && sctp_packet_empty(packet) && 664 if (!sctp_sk(asoc->base.sk)->nodelay && sctp_packet_empty(packet) &&
665 inflight && sctp_state(asoc, ESTABLISHED)) { 665 inflight && sctp_state(asoc, ESTABLISHED)) {
666 unsigned max = transport->pathmtu - packet->overhead; 666 unsigned int max = transport->pathmtu - packet->overhead;
667 unsigned len = chunk->skb->len + q->out_qlen; 667 unsigned int len = chunk->skb->len + q->out_qlen;
668 668
669 /* Check whether this chunk and all the rest of pending 669 /* Check whether this chunk and all the rest of pending
670 * data will fit or delay in hopes of bundling a full 670 * data will fit or delay in hopes of bundling a full
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
index cfeb1d4a1ee6..a0fa19f5650c 100644
--- a/net/sctp/outqueue.c
+++ b/net/sctp/outqueue.c
@@ -1147,7 +1147,7 @@ int sctp_outq_sack(struct sctp_outq *q, struct sctp_sackhdr *sack)
1147 __u32 sack_ctsn, ctsn, tsn; 1147 __u32 sack_ctsn, ctsn, tsn;
1148 __u32 highest_tsn, highest_new_tsn; 1148 __u32 highest_tsn, highest_new_tsn;
1149 __u32 sack_a_rwnd; 1149 __u32 sack_a_rwnd;
1150 unsigned outstanding; 1150 unsigned int outstanding;
1151 struct sctp_transport *primary = asoc->peer.primary_path; 1151 struct sctp_transport *primary = asoc->peer.primary_path;
1152 int count_of_newacks = 0; 1152 int count_of_newacks = 0;
1153 int gap_ack_blocks; 1153 int gap_ack_blocks;
diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
index 1ff51c9d18d5..fbb374c65945 100644
--- a/net/sctp/sm_sideeffect.c
+++ b/net/sctp/sm_sideeffect.c
@@ -524,7 +524,7 @@ static void sctp_do_8_2_transport_strike(struct sctp_association *asoc,
524/* Worker routine to handle INIT command failure. */ 524/* Worker routine to handle INIT command failure. */
525static void sctp_cmd_init_failed(sctp_cmd_seq_t *commands, 525static void sctp_cmd_init_failed(sctp_cmd_seq_t *commands,
526 struct sctp_association *asoc, 526 struct sctp_association *asoc,
527 unsigned error) 527 unsigned int error)
528{ 528{
529 struct sctp_ulpevent *event; 529 struct sctp_ulpevent *event;
530 530
@@ -550,7 +550,7 @@ static void sctp_cmd_assoc_failed(sctp_cmd_seq_t *commands,
550 sctp_event_t event_type, 550 sctp_event_t event_type,
551 sctp_subtype_t subtype, 551 sctp_subtype_t subtype,
552 struct sctp_chunk *chunk, 552 struct sctp_chunk *chunk,
553 unsigned error) 553 unsigned int error)
554{ 554{
555 struct sctp_ulpevent *event; 555 struct sctp_ulpevent *event;
556 556
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c
index 891f5db8cc31..a147b4d307d2 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -2410,7 +2410,7 @@ static sctp_disposition_t __sctp_sf_do_9_1_abort(const struct sctp_endpoint *ep,
2410 sctp_cmd_seq_t *commands) 2410 sctp_cmd_seq_t *commands)
2411{ 2411{
2412 struct sctp_chunk *chunk = arg; 2412 struct sctp_chunk *chunk = arg;
2413 unsigned len; 2413 unsigned int len;
2414 __be16 error = SCTP_ERROR_NO_ERROR; 2414 __be16 error = SCTP_ERROR_NO_ERROR;
2415 2415
2416 /* See if we have an error cause code in the chunk. */ 2416 /* See if we have an error cause code in the chunk. */
@@ -2446,7 +2446,7 @@ sctp_disposition_t sctp_sf_cookie_wait_abort(const struct sctp_endpoint *ep,
2446 sctp_cmd_seq_t *commands) 2446 sctp_cmd_seq_t *commands)
2447{ 2447{
2448 struct sctp_chunk *chunk = arg; 2448 struct sctp_chunk *chunk = arg;
2449 unsigned len; 2449 unsigned int len;
2450 __be16 error = SCTP_ERROR_NO_ERROR; 2450 __be16 error = SCTP_ERROR_NO_ERROR;
2451 2451
2452 if (!sctp_vtag_verify_either(chunk, asoc)) 2452 if (!sctp_vtag_verify_either(chunk, asoc))
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
index 60ffbd067ff7..e5fe639c89e7 100644
--- a/net/sctp/sysctl.c
+++ b/net/sctp/sysctl.c
@@ -275,22 +275,16 @@ static ctl_table sctp_table[] = {
275 { /* sentinel */ } 275 { /* sentinel */ }
276}; 276};
277 277
278static struct ctl_path sctp_path[] = {
279 { .procname = "net", },
280 { .procname = "sctp", },
281 { }
282};
283
284static struct ctl_table_header * sctp_sysctl_header; 278static struct ctl_table_header * sctp_sysctl_header;
285 279
286/* Sysctl registration. */ 280/* Sysctl registration. */
287void sctp_sysctl_register(void) 281void sctp_sysctl_register(void)
288{ 282{
289 sctp_sysctl_header = register_sysctl_paths(sctp_path, sctp_table); 283 sctp_sysctl_header = register_net_sysctl(&init_net, "net/sctp", sctp_table);
290} 284}
291 285
292/* Sysctl deregistration. */ 286/* Sysctl deregistration. */
293void sctp_sysctl_unregister(void) 287void sctp_sysctl_unregister(void)
294{ 288{
295 unregister_sysctl_table(sctp_sysctl_header); 289 unregister_net_sysctl_table(sctp_sysctl_header);
296} 290}