diff options
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index 8c77b87a8565..46ffecc57214 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c | |||
@@ -706,20 +706,6 @@ nodata: | |||
706 | return retval; | 706 | return retval; |
707 | } | 707 | } |
708 | 708 | ||
709 | static void sctp_set_prsctp_policy(struct sctp_chunk *chunk, | ||
710 | const struct sctp_sndrcvinfo *sinfo) | ||
711 | { | ||
712 | if (!chunk->asoc->prsctp_enable) | ||
713 | return; | ||
714 | |||
715 | if (SCTP_PR_TTL_ENABLED(sinfo->sinfo_flags)) | ||
716 | chunk->prsctp_param = | ||
717 | jiffies + msecs_to_jiffies(sinfo->sinfo_timetolive); | ||
718 | else if (SCTP_PR_RTX_ENABLED(sinfo->sinfo_flags) || | ||
719 | SCTP_PR_PRIO_ENABLED(sinfo->sinfo_flags)) | ||
720 | chunk->prsctp_param = sinfo->sinfo_timetolive; | ||
721 | } | ||
722 | |||
723 | /* Make a DATA chunk for the given association from the provided | 709 | /* Make a DATA chunk for the given association from the provided |
724 | * parameters. However, do not populate the data payload. | 710 | * parameters. However, do not populate the data payload. |
725 | */ | 711 | */ |
@@ -753,7 +739,6 @@ struct sctp_chunk *sctp_make_datafrag_empty(struct sctp_association *asoc, | |||
753 | 739 | ||
754 | retval->subh.data_hdr = sctp_addto_chunk(retval, sizeof(dp), &dp); | 740 | retval->subh.data_hdr = sctp_addto_chunk(retval, sizeof(dp), &dp); |
755 | memcpy(&retval->sinfo, sinfo, sizeof(struct sctp_sndrcvinfo)); | 741 | memcpy(&retval->sinfo, sinfo, sizeof(struct sctp_sndrcvinfo)); |
756 | sctp_set_prsctp_policy(retval, sinfo); | ||
757 | 742 | ||
758 | nodata: | 743 | nodata: |
759 | return retval; | 744 | return retval; |